Repository navigation
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
125 lines (123 loc) · 4.14 KB
/
Copy pathtailwind.config.ts
File metadata and controls
125 lines (123 loc) · 4.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import type { Config } from "tailwindcss";
/**
* THE CREST DESIGN SYSTEM — LeadParrot Tailwind theme.
*
* Tokens live once as CSS variables in src/app/globals.css and are referenced
* here so utilities and raw CSS never drift. Strict geometry: sharp 0px corners
* or full pills — every legacy `rounded-*` collapses to 0, only `full`/`pill`
* survive. Legacy `ink-*` / `brand-*` scales are kept as aliases mapped onto the
* warm Crest palette so existing markup re-skins without per-element edits.
*/
const config: Config = {
content: [
"./src/app/**/*.{ts,tsx}",
"./src/components/**/*.{ts,tsx}",
"./src/lib/**/*.{ts,tsx}",
],
theme: {
// Crest allows only sharp corners or full pills — collapse the soft scale.
borderRadius: {
none: "0px",
DEFAULT: "0px",
sm: "0px",
md: "0px",
lg: "0px",
xl: "0px",
"2xl": "0px",
"3xl": "0px",
xs: "2px", // inputs / chips only
pill: "9999px",
full: "9999px",
},
extend: {
colors: {
paper: { DEFAULT: "var(--paper)", sunk: "var(--paper-sunk)" },
surface: { DEFAULT: "var(--surface)", raised: "var(--surface-2)" },
ink: {
DEFAULT: "var(--ink)",
2: "var(--ink-2)",
3: "var(--ink-3)",
4: "var(--ink-4)",
// Legacy slate scale → warm paper→ink so old `text-ink-900` stays on-brand.
50: "#F2EFE7",
100: "#ECE8DD",
200: "var(--line)",
300: "var(--line-2)",
400: "var(--ink-4)",
500: "var(--ink-3)",
600: "#5A554A",
700: "var(--ink-2)",
800: "#2A2922",
900: "var(--ink)",
},
line: { DEFAULT: "var(--line)", 2: "var(--line-2)", strong: "var(--line-strong)" },
// One owned accent — Verdigris.
accent: {
DEFAULT: "var(--accent)",
press: "var(--accent-press)",
soft: "var(--accent-soft)",
tint: "var(--accent-tint)",
line: "var(--accent-line)",
fg: "var(--on-accent)",
},
// Legacy emerald `brand` scale → Verdigris family.
brand: {
50: "var(--accent-tint)",
100: "#D8E2D6",
200: "var(--accent-line)",
300: "#A6BBA8",
400: "var(--accent-soft)",
500: "var(--accent)",
600: "var(--accent)",
700: "var(--accent-press)",
800: "#1E3D2D",
900: "#162E22",
},
// Earthy semantics — scoring tiers + status.
high: "var(--high)",
medium: "var(--medium)",
low: "var(--low)",
danger: "var(--danger)",
info: "var(--info)",
// Semantic tints — surfaces for tier wells + notices (replace bracket-hex).
"high-tint": "var(--high-tint)",
"medium-tint": "var(--medium-tint)",
"low-tint": "var(--low-tint)",
"danger-tint": "var(--danger-tint)",
"info-tint": "var(--info-tint)",
},
fontFamily: {
display: ["var(--font-display)", "Georgia", "serif"],
sans: ["var(--font-sans)", "system-ui", "sans-serif"],
mono: ["var(--font-mono)", "ui-monospace", "monospace"],
},
fontSize: {
"3xs": ["0.6875rem", { lineHeight: "1" }],
"2xs": ["0.75rem", { lineHeight: "1" }],
eyebrow: ["0.75rem", { lineHeight: "1", letterSpacing: "0.14em" }],
hero: ["4.5rem", { lineHeight: "1.02", letterSpacing: "-0.025em" }],
display: ["2.625rem", { lineHeight: "1.08", letterSpacing: "-0.02em" }],
},
letterSpacing: {
mono: "0.08em",
caps: "0.14em",
tightest: "-0.025em",
},
boxShadow: {
none: "none",
card: "none", // legacy alias — Crest carries depth on borders, not shadow
press: "inset 0 1px 2px 0 rgb(28 27 23 / 0.12)",
overlay: "0 1px 0 0 var(--line-2), 0 24px 48px -24px rgb(28 27 23 / 0.28)",
},
backgroundImage: {
grain: "var(--grain)",
},
transitionTimingFunction: {
standard: "cubic-bezier(0.2, 0, 0.1, 1)",
out: "cubic-bezier(0.16, 1, 0.3, 1)",
},
},
},
plugins: [],
};
export default config;