Ysgrifennwr is a shadcn/ui theme built around a neutral gray primary color (#424242) with muted light yellow accents (#ded9c4). The light mode uses a yellow-tinted background (#faf9f5). Dark mode keeps the neutral gray primary (#424242) on a yellow-tinted background (#faf9f5).
| Token | Light | Dark |
|---|---|---|
| Background | #faf9f5whitesmoke | #faf9f5whitesmoke |
| Foreground | #424242darkslategray | #424242darkslategray |
| Card | #f6f4efwhitesmoke | #f6f4efwhitesmoke |
| Card foreground | #363636darkslategray | #363636darkslategray |
| Popover | #f4f2eblinen | #f4f2eblinen |
| Popover foreground | #292929darkslategray | #292929darkslategray |
| Primary | #424242darkslategray | #424242darkslategray |
| Primary foreground | #dbdbdbgainsboro | #dbdbdbgainsboro |
| Secondary | #bfbfbfsilver | #bfbfbfsilver |
| Secondary foreground | #262626darkslategray | #262626darkslategray |
| Muted | #e9e7e2gainsboro | #e9e7e2gainsboro |
| Muted foreground | #565243darkolivegreen | #565243darkolivegreen |
| Accent | #ded9c4lightgrey | #ded9c4lightgrey |
| Accent foreground | #484228darkolivegreen | #484228darkolivegreen |
| Destructive | #721709maroon | #721709maroon |
| Destructive foreground | #f9bcb3lightpink | #f9bcb3lightpink |
| Border | #eeede7linen | #eeede7linen |
| Input | #e8e6degainsboro | #e8e6degainsboro |
| Ring | #424242darkslategray | #424242darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.51:1 | AAA |
| Text on card | 11.02:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.34:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 7.00:1 | AAA |
| Text on background | 9.51:1 | AAA |
| Text on card | 11.02:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.34:1 | AA |
| Accent | 7.11:1 | AAA |
| Destructive | 7.00:1 | AAA |
Paste this into your globals.css to use Ysgrifennwr in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 95.091);
--foreground: oklch(0.38 0 180);
--muted: oklch(0.929 0.007 95.118);
--muted-foreground: oklch(0.438 0.024 95.572);
--popover: oklch(0.962 0.01 95.15);
--popover-foreground: oklch(0.28 0 180);
--card: oklch(0.968 0.008 95.13);
--card-foreground: oklch(0.331 0 180);
--border: oklch(0.945 0.008 95.138);
--input: oklch(0.925 0.012 95.179);
--primary: oklch(0.38 0 180);
--primary-foreground: oklch(0.892 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.884 0.029 95.39);
--accent-foreground: oklch(0.378 0.042 95.788);
--destructive: oklch(0.362 0.127 31.647);
--destructive-foreground: oklch(0.849 0.072 28.604);
--ring: oklch(0.38 0 180);
--chart-1: oklch(0.38 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.884 0.029 95.39);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.377 0.005 17.398);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.981 0.005 95.091);
--foreground: oklch(0.38 0 180);
--muted: oklch(0.929 0.007 95.118);
--muted-foreground: oklch(0.438 0.024 95.572);
--popover: oklch(0.962 0.01 95.15);
--popover-foreground: oklch(0.28 0 180);
--card: oklch(0.968 0.008 95.13);
--card-foreground: oklch(0.331 0 180);
--border: oklch(0.945 0.008 95.138);
--input: oklch(0.925 0.012 95.179);
--primary: oklch(0.38 0 180);
--primary-foreground: oklch(0.892 0 180);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.884 0.029 95.39);
--accent-foreground: oklch(0.378 0.042 95.788);
--destructive: oklch(0.362 0.127 31.647);
--destructive-foreground: oklch(0.849 0.072 28.604);
--ring: oklch(0.38 0 180);
--chart-1: oklch(0.38 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.884 0.029 95.39);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.377 0.005 17.398);
}