Getting started
Theming
Every colour, face, size and space of the kit is a custom property of the identity, read by name.
The kit's components use roles, never values: --ks-color-text-primary, not a colour. The light and dark themes give each role its value; the switch sets data-theme on the root element, and without a choice the system's setting decides.
Colour roles
| Property | Light | Dark |
|---|---|---|
--ks-color-bg-default | #FFFFFF | #0B0B0C |
--ks-color-bg-subtle | #E6E6E9 | #3A3A40 |
--ks-color-text-primary | #0B0B0C | #FFFFFF |
--ks-color-text-secondary | #3A3A40 | #E6E6E9 |
--ks-color-text-accent | #6D4AFF | #8B6EFF |
--ks-color-text-on-accent | #FFFFFF | #FFFFFF |
--ks-color-accent-default | #6D4AFF | #6D4AFF |
--ks-color-border-default | #E6E6E9 | #3A3A40 |
--ks-color-border-strong | #3A3A40 | #E6E6E9 |
--ks-color-mark-ink | #0B0B0C | #FFFFFF |
--ks-color-mark-square | #6D4AFF | #6D4AFF |
Type, space and shape
The same in both themes.
| Property | Value |
|---|---|
--ks-font-family-display | "Space Grotesk", ui-sans-serif, system-ui, sans-serif |
--ks-font-family-text | "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif |
--ks-font-family-mono | "IBM Plex Mono", ui-monospace, monospace |
--ks-font-weight-regular | 400 |
--ks-font-weight-medium | 500 |
--ks-font-weight-semibold | 600 |
--ks-font-weight-bold | 700 |
--ks-font-line-height-tight | 1.05 |
--ks-font-line-height-heading | 1.2 |
--ks-font-line-height-body | 1.5 |
--ks-font-size-xs | 12px |
--ks-font-size-sm | 14px |
--ks-font-size-md | 16px |
--ks-font-size-lg | 18px |
--ks-font-size-xl | 20px |
--ks-font-size-2xl | 24px |
--ks-font-size-3xl | 32px |
--ks-font-size-4xl | 40px |
--ks-font-size-5xl | 56px |
--ks-font-size-6xl | 80px |
--ks-font-size-display | 120px |
--ks-space-0 | 0px |
--ks-space-1 | 4px |
--ks-space-2 | 8px |
--ks-space-3 | 12px |
--ks-space-4 | 16px |
--ks-space-5 | 24px |
--ks-space-6 | 32px |
--ks-space-7 | 48px |
--ks-space-8 | 64px |
--ks-space-9 | 96px |
--ks-space-10 | 128px |
--ks-radius-none | 0px |
--ks-radius-sm | 2px |
--ks-radius-md | 4px |
--ks-radius-lg | 8px |
--ks-radius-full | 9999px |
--ks-grid-desktop-columns | 12 |
--ks-grid-desktop-margin | 80px |
--ks-grid-desktop-gutter | 24px |
--ks-grid-desktop-max-width | 1440px |
--ks-grid-phone-columns | 4 |
--ks-grid-phone-margin | 20px |
--ks-grid-phone-gutter | 16px |
--ks-grid-phone-max-width | 767px |