-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtailwind.config.js
More file actions
38 lines (38 loc) · 1.23 KB
/
tailwind.config.js
File metadata and controls
38 lines (38 loc) · 1.23 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: {
files: ["*.html", "./src/**/*.rs"],
transform: {
rs: (content) => content.replace(/(?:^|\s)class:/g, ' '),
},
},
darkMode: 'media', // or 'class' if you prefer manual control
theme: {
extend: {
fontFamily: {
Geist: ['Geist', 'sans-serif', 'mono'],
},
// Brand surface colors. Each surface has a light + dark token so the
// .background_* / .header_background utilities can express the dark-mode
// pair as `bg-surface-N dark:bg-surface-N-dark`. Keeping the literal
// pairs in style/tailwind.css would force every future palette tweak
// to chase nine hex codes through CSS; centralizing here makes the
// palette one edit and exposes the tokens to devtools.
colors: {
surface: {
primary: '#FFFFFF',
'primary-dark': '#171717',
secondary: '#F1F1F1',
'secondary-dark': '#3B3B3B',
tertiary: '#E2E2E2',
'tertiary-dark': '#595959',
quaternary: '#CACACA',
'quaternary-dark': '#797979',
announcement: '#FEEED6',
'announcement-dark': '#FEEED6',
},
},
},
},
plugins: [],
}