Logic is a shadcn/ui theme built around a near-black primary color (#030202) with near-black accents (#020303). The light mode uses a neutral background (#fefbfc). Dark mode keeps the near-black primary (#030202) on a red-tinted background (#0c0305).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0c0305black |
| Foreground | #040102black | #faf9fasnow |
| Card | #fefbfcsnow | #0c0305black |
| Card foreground | #040102black | #faf9fasnow |
| Popover | #fefbfcsnow | #0c0305black |
| Popover foreground | #040102black | #faf9fasnow |
| Primary | #030202black | #030202black |
| Primary foreground | #a0989adarkgray | #a0989adarkgray |
| Secondary | #020303black | #020303black |
| Secondary foreground | #98a09edarkgray | #98a09edarkgray |
| Muted | #d6e1degainsboro | #1e2927darkslategray |
| Muted foreground | #526f68dimgray | #90ada5darkgray |
| Accent | #020303black | #020303black |
| Accent foreground | #98a09edarkgray | #98a09edarkgray |
| Destructive | #b31c05firebrick | #f92706orangered |
| Destructive foreground | #feeeeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030202black | #030202black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 4.09:1 | AA Large |
| Accent | 7.73:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 6.18:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Logic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 359.965);
--foreground: oklch(0.084 0.014 359.794);
--muted: oklch(0.9 0.013 179.455);
--muted-foreground: oklch(0.518 0.036 177.719);
--popover: oklch(0.99 0.003 359.965);
--popover-foreground: oklch(0.084 0.014 359.794);
--card: oklch(0.99 0.003 359.965);
--card-foreground: oklch(0.084 0.014 359.794);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.091 0.001 359.862);
--primary-foreground: oklch(0.686 0.01 0.265);
--secondary: oklch(0.092 0.001 179.87);
--secondary-foreground: oklch(0.697 0.01 179.472);
--accent: oklch(0.092 0.001 179.87);
--accent-foreground: oklch(0.697 0.01 179.472);
--destructive: oklch(0.493 0.187 31.273);
--destructive-foreground: oklch(0.961 0.019 28.04);
--ring: oklch(0.091 0.001 359.862);
--chart-1: oklch(0.091 0.001 359.862);
--chart-2: oklch(0.092 0.001 179.87);
--chart-3: oklch(0.092 0.001 179.87);
--chart-4: oklch(0.147 0.001 179.564);
--chart-5: oklch(0.091 0.002 359.858);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.022 0.027);
--foreground: oklch(0.984 0.001 359.902);
--muted: oklch(0.271 0.017 177.978);
--muted-foreground: oklch(0.722 0.034 178.469);
--popover: oklch(0.12 0.022 0.027);
--popover-foreground: oklch(0.984 0.001 359.902);
--card: oklch(0.12 0.022 0.027);
--card-foreground: oklch(0.984 0.001 359.902);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.091 0.001 359.862);
--primary-foreground: oklch(0.686 0.01 0.265);
--secondary: oklch(0.092 0.001 179.87);
--secondary-foreground: oklch(0.697 0.01 179.472);
--accent: oklch(0.092 0.001 179.87);
--accent-foreground: oklch(0.697 0.01 179.472);
--destructive: oklch(0.628 0.242 31.011);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.091 0.001 359.862);
--chart-1: oklch(0.091 0.001 359.862);
--chart-2: oklch(0.092 0.001 179.87);
--chart-3: oklch(0.092 0.001 179.87);
--chart-4: oklch(0.147 0.001 179.564);
--chart-5: oklch(0.091 0.002 359.858);
}