Repository navigation
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
169 lines (168 loc) · 5.39 KB
/
Copy pathtailwind.config.ts
File metadata and controls
169 lines (168 loc) · 5.39 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
import { PRODUCTS, productColorTokens } from './src/sitemap/product-metadata';
import defaultTheme from "tailwindcss/defaultTheme";
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./src/**/*.{astro,ts,tsx,jsx,js,mdx,md}",
"./node_modules/@rivet-gg/components/src/**/*.{ts,tsx}",
],
safelist: [
'learn-container',
'texture-overlay',
'font-display',
'font-serif',
'font-mono',
'narrative-drop-cap',
// Sonner toast classes
'bg-card',
'text-foreground',
'border-border',
'shadow-lg',
'border',
'rounded-md',
'text-muted-foreground',
'bg-primary',
'text-primary-foreground',
'bg-muted',
],
theme: {
extend: {
colors: {
'background': '#000000',
'text-primary': '#FAFAFA',
'text-secondary': '#A0A0A0',
'border': '#252525',
'accent': '#CB5A33',
// Porcelain editorial palette. Marketing pages are light: a cool
// porcelain field with warm ink, warm mats, and forest green
// structure. Orange remains the single CTA spark per page.
'paper': 'rgb(var(--site-paper, 239 239 239) / <alpha-value>)',
'paper-deep': 'rgb(var(--site-paper-deep, 220 220 222) / <alpha-value>)',
'paper-mid': 'rgb(var(--site-paper-mid, 227 227 229) / <alpha-value>)',
'mat': '#EFE9DC',
'ink': 'rgb(var(--site-ink, 27 25 22) / <alpha-value>)',
'ink-soft': 'rgb(var(--site-ink-soft, 86 82 74) / <alpha-value>)',
'ink-faint': 'rgb(var(--site-ink-faint, 138 132 120) / <alpha-value>)',
'cream': '#F4F1E7',
'pine': 'rgb(var(--site-pine, 46 64 52) / <alpha-value>)',
'olive': '#5C6B4F',
'sage': '#93A286',
'accent-deep': '#AB451F',
// The diagram accent for marketing figures, per theme; see theme.css.
'highlight': 'rgb(var(--runtime-highlight, 183 75 35) / <alpha-value>)',
'code-keyword': '#c084fc',
'code-function': '#60a5fa',
'code-string': '#4ade80',
'code-comment': '#737373',
// Per-product accents. Defined once in src/lib/product-colors.mjs.
...productColorTokens(),
},
backgroundColor: {
// Ink panels use the dark card surface; brand pine stays fixed.
ink: 'rgb(var(--site-solid, 27 25 22) / <alpha-value>)',
pine: '#2E4034',
white: 'rgb(var(--site-surface, 255 255 255) / <alpha-value>)',
},
textColor: Object.fromEntries(PRODUCTS.map(({ id, color }) => [
`product-${id}`,
`color-mix(in srgb, ${color}, white var(--site-product-lighten, 0%))`,
])),
fontFamily: {
sans: ["Manrope", ...defaultTheme.fontFamily.sans],
'heading': ['Manrope', 'sans-serif'],
'mono': ['"JetBrains Mono"', 'monospace'],
},
gridTemplateColumns: {
docs: "20rem 1fr",
"docs-no-sidebar": "1fr",
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
// Light (non-inverted) prose palette for porcelain
// surfaces. Dark shells use prose-invert, which reads
// the --tw-prose-invert-* values below instead.
"--tw-prose-body": "#56524A",
"--tw-prose-headings": "#1B1916",
"--tw-prose-lead": "#56524A",
"--tw-prose-links": "#2E4034",
"--tw-prose-bold": "#1B1916",
"--tw-prose-counters": "#8A8478",
"--tw-prose-bullets": "#8A8478",
"--tw-prose-hr": "rgba(27, 25, 22, 0.1)",
"--tw-prose-quotes": "#56524A",
"--tw-prose-quote-borders": "#2E4034",
"--tw-prose-captions": "#8A8478",
"--tw-prose-code": "#1B1916",
"--tw-prose-pre-code": "#1B1916",
"--tw-prose-pre-bg": "#FFFFFF",
"--tw-prose-th-borders": "rgba(27, 25, 22, 0.15)",
"--tw-prose-td-borders": "rgba(27, 25, 22, 0.1)",
"--tw-prose-invert-body":
"hsl(var(--muted-foreground))",
"--tw-prose-invert-headings": "hsl(var(--foreground))",
"--tw-prose-invert-lead": "hsl(var(--foreground))",
"--tw-prose-invert-links": "hsl(var(--foreground))",
"--tw-prose-invert-bold": "hsl(var(--foreground))",
"--tw-prose-invert-counters": "hsl(var(--foreground))",
"--tw-prose-invert-bullets": "hsl(var(--foreground))",
"--tw-prose-invert-hr": "hsl(var(--border))",
"--tw-prose-invert-quotes": "hsl(var(--foreground))",
"--tw-prose-invert-quote-borders": "hsl(var(--border))",
"--tw-prose-invert-captions": "hsl(var(--foreground))",
"--tw-prose-invert-code": "hsl(var(--foreground))",
"--tw-prose-invert-pre-code": "hsl(var(--foreground))",
"--tw-prose-invert-pre-bg": "rgb(0 0 0 / 50%)",
"--tw-prose-invert-th-borders": "hsl(var(--border))",
"--tw-prose-invert-td-borders": "hsl(var(--border))",
h1: {
fontWeight: "600",
},
h2: {
fontWeight: "600",
},
h3: {
fontWeight: "600",
},
h4: {
fontWeight: "600",
},
h5: {
fontWeight: "600",
},
h6: {
fontWeight: "600",
},
code: {
fontSize: "inherit",
fontWeight: "inherit",
},
"code::before": {
content: "none",
},
"code::after": {
content: "none",
},
},
},
}),
spacing: {
header: "var(--header-height, 3.5rem)",
},
top: {
header: "var(--header-height, 3.5rem)",
},
scrollMargin: {
header: "calc(var(--header-height, 3.5rem) + 1rem)",
},
maxHeight: {
content: "calc(100vh - var(--header-height, 3.5rem))",
},
maxWidth: {
'prose-docs': '58rem',
},
},
},
presets: [require("@rivet-gg/components/tailwind-base").default],
plugins: [require("@tailwindcss/typography")],
};