← GDG /

#251 gdtest_navbar_color_split

#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.
View Site → Build Log ๐Ÿงช Test Coverage

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)