-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtailwind-preset.mjs
More file actions
189 lines (188 loc) · 5.71 KB
/
Copy pathtailwind-preset.mjs
File metadata and controls
189 lines (188 loc) · 5.71 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
import defaultTheme from "tailwindcss/defaultTheme";
/** @type {import('tailwindcss').Config} */
// Consumed as a Tailwind PRESET (`presets: [...]`) — the consumer owns `content`.
export default {
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': '#EFEFEF',
'paper-deep': '#DCDCDE',
'paper-mid': '#E3E3E5',
'mat': '#EFE9DC',
'ink': '#1B1916',
'ink-soft': '#56524A',
'ink-faint': '#8A8478',
'cream': '#F4F1E7',
'pine': '#2E4034',
'olive': '#5C6B4F',
'sage': '#93A286',
'accent-deep': '#AB451F',
'code-keyword': '#c084fc',
'code-function': '#60a5fa',
'code-string': '#4ade80',
'code-comment': '#737373',
},
fontFamily: {
sans: ["Manrope", ...defaultTheme.fontFamily.sans],
'heading': ['Manrope', 'sans-serif'],
'mono': ['"JetBrains Mono"', 'monospace'],
},
animation: {
'fade-in-up': 'fade-in-up 0.8s ease-out forwards',
'hero-line': 'hero-line 1s cubic-bezier(0.19, 1, 0.22, 1) forwards',
'hero-p': 'hero-p 0.8s ease-out 0.6s forwards',
'hero-cta': 'hero-p 0.8s ease-out 0.8s forwards',
'hero-visual': 'hero-p 0.8s ease-out 1s forwards',
'infinite-scroll': 'infinite-scroll 25s linear infinite',
'pulse-slow': 'pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
'spin-slow': 'spin 120s linear infinite',
},
keyframes: {
'fade-in-up': {
'from': { opacity: '0', transform: 'translateY(24px)' },
'to': { opacity: '1', transform: 'translateY(0)' },
},
'hero-line': {
'0%': { opacity: '0', transform: 'translateY(100%) skewY(6deg)' },
'100%': { opacity: '1', transform: 'translateY(0) skewY(0deg)' },
},
'hero-p': {
'from': { opacity: '0', transform: 'translateY(20px)' },
'to': { opacity: '1', transform: 'translateY(0)' },
},
'infinite-scroll': {
'from': { transform: 'translateX(0)' },
'to': { transform: 'translateX(-50%)' },
},
'pulse-slow': {
'50%': { opacity: '.5' },
},
},
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": "#F4F1E7",
"--tw-prose-pre-bg": "#1B1916",
"--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': '52rem',
},
},
},
presets: [require("@rivet-gg/components/tailwind-base").default],
plugins: [
require("@tailwindcss/typography"),
// The docs sidebar uses `aria-current-page:` utilities (e.g. the active
// item's left border); register the variant so those classes generate.
require("tailwindcss/plugin")(({ addVariant }) => {
addVariant("aria-current-page", '&[aria-current="page"]');
}),
],
};