Journalism is a shadcn/ui theme built around a vivid blue primary color (#1145d4) with vivid green accents (#45d411). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid blue primary (#1145d4) on a blue-tinted background (#06080f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #06080fblack |
| Foreground | #010205black | #f8f9fcghostwhite |
| Card | #f8f9fcghostwhite | #070a12black |
| Card foreground | #000000black | #fbfcfdwhite |
| Popover | #f8f9fcghostwhite | #070a12black |
| Popover foreground | #000000black | #fbfcfdwhite |
| Primary | #1145d4royalblue | #1145d4royalblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d41145crimson | #d41145crimson |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9ced5gainsboro | #31161eblack |
| Muted foreground | #554449darkslategray | #bbaaafdarkgray |
| Accent | #45d411limegreen | #45d411limegreen |
| Accent foreground | #081802black | #081802black |
| Destructive | #970202darkred | #fd2626crimson |
| Destructive foreground | #fecdcdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1145d4royalblue | #1145d4royalblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 7.40:1 | AAA |
| Secondary button | 5.28:1 | AA |
| Muted text | 6.16:1 | AA |
| Accent | 9.37:1 | AAA |
| Destructive | 6.35:1 | AA |
| Text on background | 19.00:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 7.40:1 | AAA |
| Secondary button | 5.28:1 | AA |
| Muted text | 7.48:1 | AAA |
| Accent | 9.37:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Journalism in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 270.101);
--foreground: oklch(0.079 0.017 257.836);
--muted: oklch(0.876 0.031 359.769);
--muted-foreground: oklch(0.406 0.024 0.42);
--popover: oklch(0.982 0.005 270.081);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.005 270.081);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.467 0.224 263.941);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.557 0.217 16.262);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.764 0.242 140.077);
--accent-foreground: oklch(0.186 0.049 136.416);
--destructive: oklch(0.426 0.174 29.112);
--destructive-foreground: oklch(0.89 0.057 18.274);
--ring: oklch(0.467 0.224 263.941);
--chart-1: oklch(0.467 0.224 263.941);
--chart-2: oklch(0.557 0.217 16.262);
--chart-3: oklch(0.764 0.242 140.077);
--chart-4: oklch(0.585 0.228 16.403);
--chart-5: oklch(0.467 0.231 263.869);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.015 265.885);
--foreground: oklch(0.982 0.004 270.086);
--muted: oklch(0.243 0.044 3.782);
--muted-foreground: oklch(0.754 0.02 359.542);
--popover: oklch(0.147 0.018 267.491);
--popover-foreground: oklch(0.991 0.002 270.104);
--card: oklch(0.147 0.018 267.491);
--card-foreground: oklch(0.991 0.002 270.104);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.467 0.224 263.941);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.557 0.217 16.262);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.764 0.242 140.077);
--accent-foreground: oklch(0.186 0.049 136.416);
--destructive: oklch(0.636 0.243 27.79);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.467 0.224 263.941);
--chart-1: oklch(0.467 0.224 263.941);
--chart-2: oklch(0.557 0.217 16.262);
--chart-3: oklch(0.764 0.242 140.077);
--chart-4: oklch(0.585 0.228 16.403);
--chart-5: oklch(0.467 0.231 263.869);
}