Discipline is a shadcn/ui theme built around a red primary color (#e2405b) with teal accents (#40e2c7). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#e2405b) on a red-tinted background (#100507).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #100507black |
| Foreground | #150407black | #fdfcfcsnow |
| Card | #fefbfbsnow | #100507black |
| Card foreground | #150407black | #fdfcfcsnow |
| Popover | #fefbfbsnow | #100507black |
| Popover foreground | #150407black | #fdfcfcsnow |
| Primary | #e2405bindianred | #e2405bindianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #40e2c7turquoise | #40e2c7turquoise |
| Secondary foreground | #0b4b41darkslategray | #0b4b41darkslategray |
| Muted | #e2eeeclavender | #111d1bblack |
| Muted foreground | #587470dimgray | #8ba7a3darkseagreen |
| Accent | #40e2c7turquoise | #40e2c7turquoise |
| Accent foreground | #0b4b41darkslategray | #0b4b41darkslategray |
| Destructive | #d04d11chocolate | #ed6526chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e2405bindianred | #e2405bindianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 4.08:1 | AA Large |
| Secondary button | 6.18:1 | AA |
| Muted text | 4.25:1 | AA Large |
| Accent | 6.18:1 | AA |
| Destructive | 4.42:1 | AA Large |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 4.08:1 | AA Large |
| Secondary button | 6.18:1 | AA |
| Muted text | 6.72:1 | AA |
| Accent | 6.18:1 | AA |
| Destructive | 6.50:1 | AA |
Paste this into your globals.css to use Discipline in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 5.531);
--foreground: oklch(0.144 0.034 8.914);
--muted: oklch(0.939 0.012 185.101);
--muted-foreground: oklch(0.536 0.034 183.691);
--popover: oklch(0.99 0.003 5.531);
--popover-foreground: oklch(0.144 0.034 8.914);
--card: oklch(0.99 0.003 5.531);
--card-foreground: oklch(0.144 0.034 8.914);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.616 0.198 15.917);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.826 0.136 178.904);
--secondary-foreground: oklch(0.373 0.064 178.328);
--accent: oklch(0.826 0.136 178.904);
--accent-foreground: oklch(0.373 0.064 178.328);
--destructive: oklch(0.591 0.177 40.41);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.616 0.198 15.917);
--chart-1: oklch(0.616 0.198 15.917);
--chart-2: oklch(0.826 0.136 178.904);
--chart-3: oklch(0.826 0.136 178.904);
--chart-4: oklch(0.835 0.131 179.573);
--chart-5: oklch(0.618 0.204 16.451);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.023 7.105);
--foreground: oklch(0.992 0.001 5.478);
--muted: oklch(0.218 0.017 183.26);
--muted-foreground: oklch(0.706 0.032 184.209);
--popover: oklch(0.134 0.023 7.105);
--popover-foreground: oklch(0.992 0.001 5.478);
--card: oklch(0.134 0.023 7.105);
--card-foreground: oklch(0.992 0.001 5.478);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.616 0.198 15.917);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.826 0.136 178.904);
--secondary-foreground: oklch(0.373 0.064 178.328);
--accent: oklch(0.826 0.136 178.904);
--accent-foreground: oklch(0.373 0.064 178.328);
--destructive: oklch(0.669 0.183 42.067);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.616 0.198 15.917);
--chart-1: oklch(0.616 0.198 15.917);
--chart-2: oklch(0.826 0.136 178.904);
--chart-3: oklch(0.826 0.136 178.904);
--chart-4: oklch(0.835 0.131 179.573);
--chart-5: oklch(0.618 0.204 16.451);
}