Tokens
These are the tokens in use in Genshi.
Color tokens
| Name | CSS property | Light mode | Dark mode |
|---|---|---|---|
| Primary | |||
| primary.surface | --gs-primary-surface | ||
| primary.text | --gs-primary-text | ||
| primary.border | --gs-primary-border | ||
| primary.muted | --gs-primary-muted | ||
| Secondary | |||
| secondary.surface | --gs-secondary-surface | ||
| secondary.text | --gs-secondary-text | ||
| secondary.border | --gs-secondary-border | ||
| secondary.muted | --gs-secondary-muted | ||
| Control | |||
| control.surface | --gs-control-surface | ||
| control.text | --gs-control-text | ||
| control.border | --gs-control-border | ||
| control.hover | --gs-control-hover | ||
| control.active | --gs-control-active | ||
| control.focus-ring | --gs-control-focus-ring | ||
| Accent | |||
| accent.surface | --gs-accent-surface | ||
| accent.text | --gs-accent-text | ||
| accent.border | --gs-accent-border | ||
| accent.fill | --gs-accent-fill | ||
| accent.hover | --gs-accent-hover | ||
| accent.active | --gs-accent-active | ||
| accent.on-fill | --gs-accent-on-fill | ||
| accent.focus-ring | --gs-accent-focus-ring | ||
| Danger | |||
| danger.surface | --gs-danger-surface | ||
| danger.text | --gs-danger-text | ||
| danger.border | --gs-danger-border | ||
| danger.fill | --gs-danger-fill | ||
| danger.active | --gs-danger-active | ||
| danger.on-fill | --gs-danger-on-fill | ||
| danger.focus-ring | --gs-danger-focus-ring | ||
| Success | |||
| success.surface | --gs-success-surface | ||
| success.text | --gs-success-text | ||
| success.border | --gs-success-border | ||
| success.fill | --gs-success-fill | ||
| success.active | --gs-success-active | ||
| success.on-fill | --gs-success-on-fill | ||
| success.focus-ring | --gs-success-focus-ring | ||
| Links | |||
| link.surface | --gs-link-surface | ||
| link.text | --gs-link-text | ||
| link.hover | --gs-link-hover | ||
| link.active | --gs-link-active | ||
| Highlights | |||
| mark.surface | --gs-mark-surface | ||
| mark.text | --gs-mark-text | ||
| Insertions | |||
| ins.surface | --gs-ins-surface | ||
| ins.text | --gs-ins-text | ||
| ins.border | --gs-ins-border | ||
| Deletions | |||
| del.surface | --gs-del-surface | ||
| del.text | --gs-del-text | ||
| del.border | --gs-del-border | ||
| Keyboard input | |||
| kbd.surface | --gs-kbd-surface | ||
| kbd.text | --gs-kbd-text | ||
| kbd.border | --gs-kbd-border | ||
Radius tokens
| Name | Token | Size | Demo |
|---|---|---|---|
| none | --gs-radius-none | none | |
| small | --gs-radius-small | 2 px | |
| medium | --gs-radius-medium | 4 px | |
| large | --gs-radius-large | 6 px | |
| xlarge | --gs-radius-xlarge | 8 px | |
| circle | --gs-radius-circle | 100% |
Gap tokens
| Name | Token | CSS class | Size | Demo |
|---|---|---|---|---|
| gap.none | --gs-gap-none | .GsGap--none | 0% | |
| gap.sm | --gs-gap-sm | .GsGap--sm | 50% | |
| gap.md | --gs-gap-md | .GsGap--md | 100% | |
| gap.lg | --gs-gap-lg | .GsGap--lg | 150% | |
| gap.xl | --gs-gap-xl | .GsGap--xl | 200% | |