Artistic is a shadcn/ui theme built around a muted light violet primary color (#d2d0d7) with muted violet accents (#bab3cc). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted light violet primary (#d2d0d7) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #000000black |
| Foreground | #08050fblack | #fcfcfdwhite |
| Card | #fcfbfewhite | #000000black |
| Card foreground | #08050fblack | #fcfcfdwhite |
| Popover | #fcfbfewhite | #000000black |
| Popover foreground | #08050fblack | #fcfcfdwhite |
| Primary | #d2d0d7lightgrey | #d2d0d7lightgrey |
| Primary foreground | #39363fdarkslategray | #39363fdarkslategray |
| Secondary | #d6d3degainsboro | #2e2e2edarkslategray |
| Secondary foreground | #3c3749darkslategray | #c7c7c7silver |
| Muted | #e1dde9gainsboro | #221616black |
| Muted foreground | #3f3d42darkslategray | #c2bdbdsilver |
| Accent | #bab3ccsilver | #443b3bdarkslategray |
| Accent foreground | #231f2edarkslategray | #dbd6d6gainsboro |
| Destructive | #c31404firebrick | #fb3e2dtomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d2d0d7lightgrey | #d2d0d7lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.78:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 9.44:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Artistic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 299.234);
--foreground: oklch(0.127 0.026 298.154);
--muted: oklch(0.904 0.016 299.01);
--muted-foreground: oklch(0.364 0.009 298.887);
--popover: oklch(0.989 0.004 299.234);
--popover-foreground: oklch(0.127 0.026 298.154);
--card: oklch(0.989 0.004 299.234);
--card-foreground: oklch(0.127 0.026 298.154);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.862 0.01 299.111);
--primary-foreground: oklch(0.339 0.017 298.46);
--secondary: oklch(0.874 0.015 299.011);
--secondary-foreground: oklch(0.349 0.031 297.737);
--accent: oklch(0.779 0.037 298.494);
--accent-foreground: oklch(0.25 0.029 297.247);
--destructive: oklch(0.519 0.205 30.117);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.01 299.111);
--chart-1: oklch(0.862 0.01 299.111);
--chart-2: oklch(0.874 0.015 299.011);
--chart-3: oklch(0.779 0.037 298.494);
--chart-4: oklch(0.899 0.012 299.078);
--chart-5: oklch(0.859 0.013 299.038);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 299.261);
--muted: oklch(0.217 0.018 18.672);
--muted-foreground: oklch(0.802 0.006 17.276);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 299.261);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.002 299.261);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.862 0.01 299.111);
--primary-foreground: oklch(0.339 0.017 298.46);
--secondary: oklch(0.301 0 189.462);
--secondary-foreground: oklch(0.829 0 180);
--accent: oklch(0.363 0.012 17.742);
--accent-foreground: oklch(0.881 0.006 17.269);
--destructive: oklch(0.649 0.226 29.726);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.01 299.111);
--chart-1: oklch(0.862 0.01 299.111);
--chart-2: oklch(0.301 0 189.462);
--chart-3: oklch(0.363 0.012 17.742);
--chart-4: oklch(0.331 0 180);
--chart-5: oklch(0.859 0.013 299.038);
}