Operating is a shadcn/ui theme built around a muted deep red primary color (#251d1d) with muted red accents (#c8acad). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted deep red primary (#251d1d) on a red-tinted background (#0f0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0f0505black |
| Foreground | #150405black | #f9f5f5whitesmoke |
| Card | #fcf8f8snow | #130607black |
| Card foreground | #110304black | #fbf9f9snow |
| Popover | #fcf8f8snow | #130607black |
| Popover foreground | #110304black | #fbf9f9snow |
| Primary | #251d1dblack | #251d1dblack |
| Primary foreground | #c3b1b2silver | #c3b1b2silver |
| Secondary | #d9cecflightgrey | #1b1313black |
| Secondary foreground | #423434darkslategray | #bfa1a2darkgray |
| Muted | #eddedegainsboro | #211212black |
| Muted foreground | #666666dimgray | #999999darkgray |
| Accent | #c8acadsilver | #2d1a1bblack |
| Accent foreground | #281b1bblack | #cfabacsilver |
| Destructive | #b8250ffirebrick | #ee452btomato |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #251d1dblack | #251d1dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.43:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 4.40:1 | AA Large |
| Accent | 7.91:1 | AAA |
| Destructive | 6.16:1 | AA |
| Text on background | 18.57:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Operating in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 14.834);
--foreground: oklch(0.142 0.034 19.479);
--muted: oklch(0.913 0.017 15.138);
--muted-foreground: oklch(0.51 0 171.87);
--popover: oklch(0.982 0.005 14.879);
--popover-foreground: oklch(0.13 0.03 18.942);
--card: oklch(0.982 0.005 14.879);
--card-foreground: oklch(0.13 0.03 18.942);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.24 0.014 15.879);
--primary-foreground: oklch(0.776 0.021 15.293);
--secondary: oklch(0.861 0.012 15.043);
--secondary-foreground: oklch(0.339 0.02 15.952);
--accent: oklch(0.77 0.032 15.588);
--accent-foreground: oklch(0.237 0.021 16.566);
--destructive: oklch(0.509 0.185 31.52);
--destructive-foreground: oklch(0.99 0.004 27.954);
--ring: oklch(0.24 0.014 15.879);
--chart-1: oklch(0.24 0.014 15.879);
--chart-2: oklch(0.861 0.012 15.043);
--chart-3: oklch(0.77 0.032 15.588);
--chart-4: oklch(0.886 0.009 14.99);
--chart-5: oklch(0.239 0.017 16.164);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.021 17.483);
--foreground: oklch(0.974 0.004 14.875);
--muted: oklch(0.203 0.026 17.39);
--muted-foreground: oklch(0.683 0 180);
--popover: oklch(0.146 0.025 17.945);
--popover-foreground: oklch(0.983 0.003 14.846);
--card: oklch(0.146 0.025 17.945);
--card-foreground: oklch(0.983 0.003 14.846);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.24 0.014 15.879);
--primary-foreground: oklch(0.776 0.021 15.293);
--secondary: oklch(0.196 0.015 16.241);
--secondary-foreground: oklch(0.736 0.036 15.718);
--accent: oklch(0.244 0.031 17.395);
--accent-foreground: oklch(0.773 0.042 15.838);
--destructive: oklch(0.633 0.21 31.647);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.24 0.014 15.879);
--chart-1: oklch(0.24 0.014 15.879);
--chart-2: oklch(0.196 0.015 16.241);
--chart-3: oklch(0.244 0.031 17.395);
--chart-4: oklch(0.227 0.019 16.417);
--chart-5: oklch(0.239 0.017 16.164);
}