Line is a shadcn/ui theme built around a deep pink primary color (#5c2336) with deep blue accents (#23365c). The light mode uses a neutral background (#fefbfc). Dark mode keeps the deep pink primary (#5c2336) on a pink-tinted background (#0a0507).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0a0507black |
| Foreground | #080204black | #faf5f6whitesmoke |
| Card | #fdf7f9snow | #0e0609black |
| Card foreground | #040102black | #fcf8f9snow |
| Popover | #fdf7f9snow | #0e0609black |
| Popover foreground | #040102black | #fcf8f9snow |
| Primary | #5c2336darkslategray | #5c2336darkslategray |
| Primary foreground | #eac8d3thistle | #eac8d3thistle |
| Secondary | #365c23darkolivegreen | #365c23darkolivegreen |
| Secondary foreground | #d3eac8lightgrey | #d3eac8lightgrey |
| Muted | #eaeee7linen | #131811black |
| Muted foreground | #54604ddarkolivegreen | #a5b29fdarkgray |
| Accent | #23365cdarkslategray | #23365cdarkslategray |
| Accent foreground | #c8d3ealightgrey | #c8d3ealightgrey |
| Destructive | #c11906firebrick | #f83f2aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5c2336darkslategray | #5c2336darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 6.00:1 | AA |
| Muted text | 5.65:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.16:1 | AA |
| Text on background | 18.75:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 6.00:1 | AA |
| Muted text | 8.13:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Line in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 354.683);
--foreground: oklch(0.103 0.023 354.149);
--muted: oklch(0.944 0.01 134.879);
--muted-foreground: oklch(0.473 0.034 135.201);
--popover: oklch(0.981 0.007 354.781);
--popover-foreground: oklch(0.082 0.018 354.149);
--card: oklch(0.981 0.007 354.781);
--card-foreground: oklch(0.082 0.018 354.149);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.347 0.087 1.832);
--primary-foreground: oklch(0.864 0.042 355.935);
--secondary: oklch(0.434 0.096 136.488);
--secondary-foreground: oklch(0.911 0.052 135.121);
--accent: oklch(0.338 0.072 263.001);
--accent-foreground: oklch(0.865 0.034 264.38);
--destructive: oklch(0.517 0.201 30.429);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.347 0.087 1.832);
--chart-1: oklch(0.347 0.087 1.832);
--chart-2: oklch(0.434 0.096 136.488);
--chart-3: oklch(0.338 0.072 263.001);
--chart-4: oklch(0.469 0.106 136.528);
--chart-5: oklch(0.347 0.092 2.387);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.014 354.385);
--foreground: oklch(0.974 0.007 354.781);
--muted: oklch(0.2 0.014 135.202);
--muted-foreground: oklch(0.748 0.03 135.033);
--popover: oklch(0.138 0.016 355.573);
--popover-foreground: oklch(0.982 0.004 354.715);
--card: oklch(0.138 0.016 355.573);
--card-foreground: oklch(0.982 0.004 354.715);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.347 0.087 1.832);
--primary-foreground: oklch(0.864 0.042 355.935);
--secondary: oklch(0.434 0.096 136.488);
--secondary-foreground: oklch(0.911 0.052 135.121);
--accent: oklch(0.338 0.072 263.001);
--accent-foreground: oklch(0.865 0.034 264.38);
--destructive: oklch(0.646 0.224 30.369);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.347 0.087 1.832);
--chart-1: oklch(0.347 0.087 1.832);
--chart-2: oklch(0.434 0.096 136.488);
--chart-3: oklch(0.338 0.072 263.001);
--chart-4: oklch(0.469 0.106 136.528);
--chart-5: oklch(0.347 0.092 2.387);
}