Trifling is a shadcn/ui theme built around a pink primary color (#cf72b0) with muted pink accents (#cca8c0). The light mode uses a neutral background (#fefbfd). Dark mode keeps the pink primary (#cf72b0) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #040103black |
| Foreground | #0d0209black | #f9f5f8whitesmoke |
| Card | #fdf6fbsnow | #080306black |
| Card foreground | #090206black | #fbf9fasnow |
| Popover | #fdf6fbsnow | #080306black |
| Popover foreground | #090206black | #fbf9fasnow |
| Primary | #cf72b0palevioletred | #cf72b0palevioletred |
| Primary foreground | #0b0409black | #0b0409black |
| Secondary | #d6c7d1thistle | #241e22black |
| Secondary foreground | #3e2d38darkslategray | #c1b3bcsilver |
| Muted | #f4f1f3whitesmoke | #0e0b0dblack |
| Muted foreground | #66525fdimgray | #ad99a7darkgray |
| Accent | #cca8c0silver | #45313edarkslategray |
| Accent foreground | #2a1924black | #dbccd6lightgrey |
| Destructive | #ad1b0bfirebrick | #f13722orangered |
| Destructive foreground | #feeeecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cf72b0palevioletred | #cf72b0palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 7.90:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 7.87:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 19.21:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Trifling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 337.36);
--foreground: oklch(0.12 0.033 338.384);
--muted: oklch(0.96 0.004 337.346);
--muted-foreground: oklch(0.463 0.034 338.67);
--popover: oklch(0.981 0.009 337.457);
--popover-foreground: oklch(0.105 0.028 337.775);
--card: oklch(0.981 0.009 337.457);
--card-foreground: oklch(0.105 0.028 337.775);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.676 0.138 341.068);
--primary-foreground: oklch(0.124 0.022 337.797);
--secondary: oklch(0.845 0.022 337.786);
--secondary-foreground: oklch(0.321 0.031 339.124);
--accent: oklch(0.771 0.053 338.583);
--accent-foreground: oklch(0.239 0.034 339.922);
--destructive: oklch(0.48 0.181 30.504);
--destructive-foreground: oklch(0.96 0.018 25.149);
--ring: oklch(0.676 0.138 341.068);
--chart-1: oklch(0.676 0.138 341.068);
--chart-2: oklch(0.845 0.022 337.786);
--chart-3: oklch(0.771 0.053 338.583);
--chart-4: oklch(0.87 0.019 337.69);
--chart-5: oklch(0.676 0.146 341.291);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.015 337.603);
--foreground: oklch(0.975 0.006 337.383);
--muted: oklch(0.156 0.006 338.04);
--muted-foreground: oklch(0.705 0.03 338.108);
--popover: oklch(0.108 0.019 337.603);
--popover-foreground: oklch(0.983 0.004 337.343);
--card: oklch(0.108 0.019 337.603);
--card-foreground: oklch(0.983 0.004 337.343);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.676 0.138 341.068);
--primary-foreground: oklch(0.124 0.022 337.797);
--secondary: oklch(0.244 0.013 338.303);
--secondary-foreground: oklch(0.782 0.02 337.775);
--accent: oklch(0.34 0.036 339.273);
--accent-foreground: oklch(0.861 0.021 337.749);
--destructive: oklch(0.626 0.224 30.464);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.676 0.138 341.068);
--chart-1: oklch(0.676 0.138 341.068);
--chart-2: oklch(0.244 0.013 338.303);
--chart-3: oklch(0.34 0.036 339.273);
--chart-4: oklch(0.275 0.016 338.364);
--chart-5: oklch(0.676 0.146 341.291);
}