#249
gdtest_navbar_color_dark
OK
CONFIG
Tests navbar_color applied only to dark mode
Tests navbar_color applied to dark mode only. Light mode keeps its default navbar styling. Dark mode gets a pale mint (#b2dfdb) background with APCA-chosen black text.
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
K45
K45navbar_color: dark onlyconfig
Source Files
gdtest_navbar_color_dark/
__init__.py
"""Navbar color: dark-mode only."""
__version__ = "0.1.0"
__all__ = ["tint", "lighten"]
def tint(color: str) -> str:
"""
Apply a tint to a color.
Parameters
----------
color
A CSS color string.
Returns
-------
str
Tinted color value.
"""
return f"Tinted {color}"
def lighten(base: str, amount: float = 0.2) -> str:
"""
Lighten a base color by a relative amount.
Parameters
----------
base
Base CSS color.
amount
Fraction to lighten (0โ1).
Returns
-------
str
The lightened color.
"""
return f"{base} lightened by {amount}"great-docs.yml
navbar_color: dark: "#b2dfdb" display_name: Navbar Color (Dark Only)