Themes
Pre-configured color palettes.
Keystone UI provides a collection of base color themes to kickstart your Hugo project.
These themes are based on the original Shadcn UI palettes but have been calibrated to meet WCAG 2.2 AAA contrast requirements between paired values (background vs foreground).
While these values serve as a robust foundation, any customizations you make should be re-tested against your desired accessibility level.
(Minimum recommended: WCAG 2.2 AA).
Themes use strictly the OKLCH color space to ensure consistent color changes, allowing lightness and contrast to be adjusted predictably rather than by trial and error.
Instalation
The Keystone Starter includes five pre-installed base palettes in the assets/base/ directory:
- Neutral (default)
- Gray
- Slate
- Stone
- Zinc
To switch themes, edit your assets/css/main.css file and change the import path:
To use a different theme from the _neutral.css created in the Get Started: Manual Installation
section:
- Create a new file in
assets/base/(e.g._zinc.css). - Copy the CSS code from the list below.
- Update your
assets/main.cssimport.
Gray: Near-neutral grayscale with minimal chroma.
Slate: Subtle blue undertone. Technical and professional.
Stone: Warm, earthy feel. Ideal for blogs and portfolios.
Zinc: Versatile, cool-toned gray. Ideal for modern SaaS applications.