← GDG /

#248 gdtest_navbar_color_light

#248 gdtest_navbar_color_light OK CONFIG
Tests navbar_color applied only to light mode
Tests navbar_color applied to light mode only. Dark mode keeps its default navbar styling. Light mode gets a deep blue-gray (#1b2838) background with APCA-chosen white text.
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

K44
K44navbar_color: light onlyconfig

Source Files

๐Ÿ“ gdtest_navbar_color_light/
๐Ÿ“„ __init__.py
"""Navbar color: light-mode only."""

__version__ = "0.1.0"
__all__ = ["paint", "shade"]


def paint(color: str) -> str:
    """
    Apply a paint color.

    Parameters
    ----------
    color
        A CSS color string.

    Returns
    -------
    str
        Confirmation message.
    """
    return f"Painted {color}"


def shade(base: str, amount: float = 0.2) -> str:
    """
    Darken a base color by a relative amount.

    Parameters
    ----------
    base
        Base CSS color.
    amount
        Fraction to darken (0โ€“1).

    Returns
    -------
    str
        The shaded color.
    """
    return f"{base} darkened by {amount}"
๐Ÿ“„ great-docs.yml
navbar_color:
  light: "#1b2838"
display_name: Navbar Color (Light Only)