5

Colors

Every color is a CSS custom property. Override the seed colors and every scale below is regenerated from them.

Primary scale

Buttons, focus rings, anything interactive. The whole scale comes from --ui-primary, which takes a light-dark() value if you want a different tone in light and dark mode.

50
100
200
300
400
500
600
700
800
900
950

Neutral scale

Text, borders, and backgrounds. Override --ui-neutral to shift them warmer or cooler.

50
100
200
300
400
500
600
700
800
900
950

Constructive scale

Success and confirmation states. Override --ui-constructive.

50
100
200
300
400
500
600
700
800
900
950

Destructive scale

Errors and destructive actions. Override --ui-destructive.

50
100
200
300
400
500
600
700
800
900
950

Color scales

Six accents for whatever else needs a color. Override --ui-color1 through --ui-color6.

50
100
200
300
400
500
600
700
800
900
950
50
100
200
300
400
500
600
700
800
900
950
50
100
200
300
400
500
600
700
800
900
950
50
100
200
300
400
500
600
700
800
900
950
50
100
200
300
400
500
600
700
800
900
950
50
100
200
300
400
500
600
700
800
900
950

Customizing

Override seed colors on :root after importing the stylesheet. Use light-dark() on --ui-primary for per-mode control:

:root {
  /* Same primary in light and dark */
  --ui-primary: #6366f1;

  /* Or tune per mode with light-dark() */
  --ui-primary: light-dark(#4f46e5, #818cf8);

  --ui-neutral: #6b7280;
}

Dark mode

@erikt/ui follows prefers-color-scheme: dark on its own. To pin a mode, set color-scheme on any element:

<html style="color-scheme: light">
  ...
</html>
<html style="color-scheme: dark">
  ...
</html>

Search 5021 icons

Type a name to find icons from the Tabler icon set.

      Move Open Esc Close