Concentration is a shadcn/ui theme built around a light red primary color (#fbf5f3) with light yellow accents (#fbf9f3). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light red primary (#fbf5f3) on a red-tinted background (#0a0605).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0a0605black |
| Foreground | #090301black | #faf6f5whitesmoke |
| Card | #fdf8f7snow | #0e0807black |
| Card foreground | #040201black | #fbf9f8snow |
| Popover | #fefcfbsnow | #0a0605black |
| Popover foreground | #090301black | #faf6f5whitesmoke |
| Primary | #fbf5f3whitesmoke | #fbf5f3whitesmoke |
| Primary foreground | #90442csienna | #90442csienna |
| Secondary | #fbf3f5lavenderblush | #fbf3f5lavenderblush |
| Secondary foreground | #902c47brown | #902c47brown |
| Muted | #ecdadfgainsboro | #251318black |
| Muted foreground | #423d3fdarkslategray | #c2bdbesilver |
| Accent | #fbf9f3floralwhite | #fbf9f3floralwhite |
| Accent foreground | #423614darkolivegreen | #423614darkolivegreen |
| Destructive | #7d2b03saddlebrown | #fb6e28tomato |
| Destructive foreground | #fdcdb4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbf5f3whitesmoke | #fbf5f3whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 6.39:1 | AA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 7.95:1 | AAA |
| Accent | 11.30:1 | AAA |
| Destructive | 6.55:1 | AA |
| Text on background | 18.76:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 6.39:1 | AA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 9.53:1 | AAA |
| Accent | 11.30:1 | AAA |
| Destructive | 7.35:1 | AAA |
Paste this into your globals.css to use Concentration in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 37.729);
--foreground: oklch(0.11 0.018 47.912);
--muted: oklch(0.904 0.02 359.408);
--muted-foreground: oklch(0.366 0.007 359.351);
--popover: oklch(0.992 0.003 37.729);
--popover-foreground: oklch(0.11 0.018 47.912);
--card: oklch(0.983 0.005 37.715);
--card-foreground: oklch(0.087 0.014 47.912);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.975 0.007 37.707);
--primary-foreground: oklch(0.479 0.11 37.609);
--secondary: oklch(0.972 0.009 359.051);
--secondary-foreground: oklch(0.453 0.135 8.309);
--accent: oklch(0.983 0.008 90.183);
--accent-foreground: oklch(0.338 0.053 89.337);
--destructive: oklch(0.407 0.122 41.351);
--destructive-foreground: oklch(0.883 0.065 47.967);
--ring: oklch(0.975 0.007 37.707);
--chart-1: oklch(0.975 0.007 37.707);
--chart-2: oklch(0.972 0.009 359.051);
--chart-3: oklch(0.983 0.008 90.183);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.975 0.008 37.705);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.009 41.648);
--foreground: oklch(0.976 0.004 37.721);
--muted: oklch(0.214 0.03 2.576);
--muted-foreground: oklch(0.802 0.006 358.997);
--popover: oklch(0.13 0.009 41.648);
--popover-foreground: oklch(0.976 0.004 37.721);
--card: oklch(0.143 0.011 40.396);
--card-foreground: oklch(0.984 0.003 37.728);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.975 0.007 37.707);
--primary-foreground: oklch(0.479 0.11 37.609);
--secondary: oklch(0.972 0.009 359.051);
--secondary-foreground: oklch(0.453 0.135 8.309);
--accent: oklch(0.983 0.008 90.183);
--accent-foreground: oklch(0.338 0.053 89.337);
--destructive: oklch(0.701 0.189 43.285);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.975 0.007 37.707);
--chart-1: oklch(0.975 0.007 37.707);
--chart-2: oklch(0.972 0.009 359.051);
--chart-3: oklch(0.983 0.008 90.183);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.975 0.008 37.705);
}