Typewriter is a shadcn/ui theme built around a light red primary color (#f0b0ad) with light teal accents (#adedf0). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the light red primary (#f0b0ad) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #040101black |
| Foreground | #100505black | #fcf8f8snow |
| Card | #fdf7f7snow | #040101black |
| Card foreground | #100505black | #fcf8f8snow |
| Popover | #fdf7f7snow | #040101black |
| Popover foreground | #100505black | #fcf8f8snow |
| Primary | #f0b0adlightpink | #f0b0adlightpink |
| Primary foreground | #5b1410maroon | #5b1410maroon |
| Secondary | #adedf0paleturquoise | #adedf0paleturquoise |
| Secondary foreground | #10575bdarkslategray | #10575bdarkslategray |
| Muted | #f1f4f4whitesmoke | #0b0e0eblack |
| Muted foreground | #445455darkslategray | #aababbsilver |
| Accent | #adedf0paleturquoise | #adedf0paleturquoise |
| Accent foreground | #10575bdarkslategray | #10575bdarkslategray |
| Destructive | #d5300bfirebrick | #f33f16orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f0b0adlightpink | #f0b0adlightpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.95:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 6.36:1 | AA |
| Muted text | 7.16:1 | AAA |
| Accent | 6.36:1 | AA |
| Destructive | 4.92:1 | AA |
| Text on background | 19.69:1 | AAA |
| Text on card | 19.69:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 6.36:1 | AA |
| Muted text | 9.63:1 | AAA |
| Accent | 6.36:1 | AA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Typewriter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 20.973);
--foreground: oklch(0.135 0.021 24.638);
--muted: oklch(0.964 0.003 200.847);
--muted-foreground: oklch(0.433 0.02 200.382);
--popover: oklch(0.981 0.006 20.973);
--popover-foreground: oklch(0.135 0.021 24.638);
--card: oklch(0.981 0.006 20.973);
--card-foreground: oklch(0.135 0.021 24.638);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.816 0.076 22.273);
--primary-foreground: oklch(0.314 0.104 27.821);
--secondary: oklch(0.904 0.065 200.169);
--secondary-foreground: oklch(0.419 0.066 200.386);
--accent: oklch(0.904 0.065 200.169);
--accent-foreground: oklch(0.419 0.066 200.386);
--destructive: oklch(0.57 0.205 32.92);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.816 0.076 22.273);
--chart-1: oklch(0.816 0.076 22.273);
--chart-2: oklch(0.904 0.065 200.169);
--chart-3: oklch(0.904 0.065 200.169);
--chart-4: oklch(0.919 0.055 200.258);
--chart-5: oklch(0.815 0.079 22.348);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.011 24.26);
--foreground: oklch(0.983 0.004 20.936);
--muted: oklch(0.161 0.005 200.526);
--muted-foreground: oklch(0.777 0.018 200.622);
--popover: oklch(0.085 0.011 24.26);
--popover-foreground: oklch(0.983 0.004 20.936);
--card: oklch(0.085 0.011 24.26);
--card-foreground: oklch(0.983 0.004 20.936);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.816 0.076 22.273);
--primary-foreground: oklch(0.314 0.104 27.821);
--secondary: oklch(0.904 0.065 200.169);
--secondary-foreground: oklch(0.419 0.066 200.386);
--accent: oklch(0.904 0.065 200.169);
--accent-foreground: oklch(0.419 0.066 200.386);
--destructive: oklch(0.635 0.221 33.318);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.816 0.076 22.273);
--chart-1: oklch(0.816 0.076 22.273);
--chart-2: oklch(0.904 0.065 200.169);
--chart-3: oklch(0.904 0.065 200.169);
--chart-4: oklch(0.919 0.055 200.258);
--chart-5: oklch(0.815 0.079 22.348);
}