Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add theme support #94

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Commits on Mar 16, 2021

  1. Support color themes

    Support the full range of configurable colors in a Windows Classic
    theme. The colors are configured using CSS variables named after the
    corresponding Windows theme file property converted from PascalCase to
    kebab-case.
    
    Colors are given in rgb format to make it easier to convert and
    recognize values from a Windows theme file.
    
    The old variables are kept for backwards compatibility and are mapped
    accordingly. However, the old `--button-face`, which maps to
    `--button-light`, has not been mapped because of a name conflict with
    the new `--button-face`; this is a breaking change.
    tpenguinltg committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    a8cb812 View commit details
    Browse the repository at this point in the history
  2. Fix positioning of radio buttons and checkboxes

    Remove the radio width from the calculation for the radio dot top value.
    I'm not sure why this works, but it does.
    
    Also remove redundant precalc variables. Nested calc calls are reduced
    to a single one automatically.
    tpenguinltg committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    119b834 View commit details
    Browse the repository at this point in the history
  3. Enable docs to be themed

    tpenguinltg committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    cc99fbd View commit details
    Browse the repository at this point in the history
  4. Generate computed and non-computed assets

    The computed asset, 98.css, precomputes the values that uses CSS
    variables. The non-computed asset, 98-full.css, preserves the variables
    and uses the computed values as fallbacks for browsers without support
    for custom properties.
    tpenguinltg committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    86b6f52 View commit details
    Browse the repository at this point in the history