Graffiti is a shadcn/ui theme built around a vivid blue primary color (#81cbf8) with muted light blue accents (#c8d0d5). The light mode uses a neutral background (#f6fbfd). Dark mode keeps the vivid blue primary (#81cbf8) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fbfdghostwhite | #010304black |
| Foreground | #020608black | #f9fafbghostwhite |
| Card | #f6fbfdghostwhite | #010304black |
| Card foreground | #020608black | #f9fafbghostwhite |
| Popover | #f6fbfdghostwhite | #010304black |
| Popover foreground | #020608black | #f9fafbghostwhite |
| Primary | #81cbf8lightskyblue | #81cbf8lightskyblue |
| Primary foreground | #042b44midnightblue | #042b44midnightblue |
| Secondary | #dfe1e2gainsboro | #1b1c1dblack |
| Secondary foreground | #45484adarkslategray | #b4b5b7silver |
| Muted | #dee7edlavender | #121b21black |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #c8d0d5lightgrey | #272c30darkslategray |
| Accent foreground | #2e373ddarkslategray | #bec6casilver |
| Destructive | #ca0b07firebrick | #f72522crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #81cbf8lightskyblue | #81cbf8lightskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 8.22:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 6.24:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 5.90:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 8.22:1 | AAA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 7.75:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Graffiti in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.006 234.59);
--foreground: oklch(0.115 0.013 227.279);
--muted: oklch(0.923 0.013 234.709);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.985 0.006 234.59);
--popover-foreground: oklch(0.115 0.013 227.279);
--card: oklch(0.985 0.006 234.59);
--card-foreground: oklch(0.115 0.013 227.279);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.81 0.098 237.016);
--primary-foreground: oklch(0.278 0.062 241.866);
--secondary: oklch(0.908 0.002 234.539);
--secondary-foreground: oklch(0.399 0.006 234.722);
--accent: oklch(0.853 0.012 234.704);
--accent-foreground: oklch(0.332 0.016 235.274);
--destructive: oklch(0.529 0.213 29.099);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.81 0.098 237.016);
--chart-1: oklch(0.81 0.098 237.016);
--chart-2: oklch(0.908 0.002 234.539);
--chart-3: oklch(0.853 0.012 234.704);
--chart-4: oklch(0.931 0.002 234.53);
--chart-5: oklch(0.811 0.101 237.129);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.009 228.164);
--foreground: oklch(0.985 0.001 234.525);
--muted: oklch(0.217 0.018 235.971);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.092 0.009 228.164);
--popover-foreground: oklch(0.985 0.001 234.525);
--card: oklch(0.092 0.009 228.164);
--card-foreground: oklch(0.985 0.001 234.525);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.81 0.098 237.016);
--primary-foreground: oklch(0.278 0.062 241.866);
--secondary: oklch(0.227 0.001 234.591);
--secondary-foreground: oklch(0.773 0.003 234.555);
--accent: oklch(0.291 0.01 235.011);
--accent-foreground: oklch(0.821 0.01 234.685);
--destructive: oklch(0.625 0.239 28.306);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.81 0.098 237.016);
--chart-1: oklch(0.81 0.098 237.016);
--chart-2: oklch(0.227 0.001 234.591);
--chart-3: oklch(0.291 0.01 235.011);
--chart-4: oklch(0.259 0.002 234.598);
--chart-5: oklch(0.811 0.101 237.129);
}