#251
gdtest_navbar_color_split
OK
CONFIG
Tests navbar_color with contrasting light/dark choices
Tests navbar_color with contrasting per-mode choices: dark warm brown (#3e2723, white text) in light mode and pale sky blue (#bbdefb, black text) in dark mode.
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
K47
K47navbar_color: split warm/coolconfig
Source Files
gdtest_navbar_color_split/
__init__.py
"""Navbar color: contrasting warm/cool per mode."""
__version__ = "0.1.0"
__all__ = ["warm", "cool"]
def warm(temperature: float) -> str:
"""
Create a warm color value from a temperature.
Parameters
----------
temperature
Color temperature in Kelvin (2000โ4500).
Returns
-------
str
A warm hex color.
"""
return f"Warm({temperature}K)"
def cool(temperature: float) -> str:
"""
Create a cool color value from a temperature.
Parameters
----------
temperature
Color temperature in Kelvin (5500โ10000).
Returns
-------
str
A cool hex color.
"""
return f"Cool({temperature}K)"great-docs.yml
navbar_color: light: "#3e2723" dark: "#bbdefb" display_name: Navbar Color (Split Warm/Cool)