#250
gdtest_navbar_color_same
OK
CONFIG
Tests navbar_color as a single string for both modes
Tests navbar_color as a plain string (steelblue) so the same color applies in both light and dark modes. APCA selects white text for steelblue's mid-tone blue.
Build Mode
● Has great-docs.yml
This package ships a pre-supplied config.
The great-docs init step is skipped and
great-docs build uses the spec-defined configuration directly.
Tests specific config options and their rendered output.
Dimensions
K46
K46navbar_color: same both modesconfig
Source Files
gdtest_navbar_color_same/
__init__.py
"""Navbar color: same for both modes."""
__version__ = "0.1.0"
__all__ = ["blend", "mix"]
def blend(color_a: str, color_b: str) -> str:
"""
Blend two colors together.
Parameters
----------
color_a
First CSS color.
color_b
Second CSS color.
Returns
-------
str
The blended result.
"""
return f"Blend({color_a}, {color_b})"
def mix(colors: list[str], weights: list[float] | None = None) -> str:
"""
Mix multiple colors with optional weights.
Parameters
----------
colors
List of CSS color strings.
weights
Optional weights for each color.
Returns
-------
str
The mixed color value.
"""
return f"Mix({', '.join(colors)})"great-docs.yml
navbar_color: steelblue display_name: Navbar Color (Same Both Modes)