Knobs
Move them
The whole change
:root {
--ff-accent-hue: 264;
--ff-accent-chroma: 0;
--ff-gray-hue-light: 247;
--ff-radius-scale: 1;
--ff-text-scale: 1;
--ff-unit: 0.25rem;
}All fifteen
| Knob | Default | Sets |
|---|---|---|
--ff-gray-hue | 262 | Hue of every dark gray |
--ff-gray-chroma | 0.008 | Its strength |
--ff-gray-hue-light | 247 | Hue of every light gray |
--ff-gray-chroma-light | 0.13 | Its strength, most in the mid grays |
--ff-black | 16.85% | The dark end, #0f0f0f |
--ff-white | 97% | The light end, #f5f5f5 |
--ff-step-light | 2.2% | Step between nested surfaces, light |
--ff-step-dark | 3.5% | Step between nested surfaces, dark |
--ff-accent-hue | 264 | Hue of the accent |
--ff-accent-chroma | 0 | Its strength; 0 is ink |
--ff-tint | 12% | How much color a tint holds |
--ff-unit | 0.25rem | One step of space |
--ff-text-scale | 1 | Every text size |
--ff-radius-scale | 1 | Every corner; 0 is square |
--ff-motion-scale | 1 | Every duration and delay |
Knob, token, part
How a corner is made
/* primitives.css */
--ff-radius-scale: 1;
/* shape.css */
--ff-radius-lg: calc(0.875rem * var(--ff-radius-scale)); /* 14 px */
/* Card.svelte */
border-radius: var(--ff-radius-lg);On any part of a page
A section with its own accent
<section data-theme style="--ff-accent-hue: 30">
<!-- every token in here is computed again -->
</section>