-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
46 lines (44 loc) · 1.52 KB
/
Copy pathtailwind.config.ts
File metadata and controls
46 lines (44 loc) · 1.52 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
import type { Config } from 'tailwindcss';
import defaultTheme from 'tailwindcss/defaultTheme';
const config: Config = {
content: ['./src/**/*.{ts,tsx,mdx}'],
theme: {
extend: {
colors: {
page: 'rgb(var(--page) / <alpha-value>)',
pageSoft: 'rgb(var(--page-soft) / <alpha-value>)',
panel: 'rgb(var(--panel) / <alpha-value>)',
panelStrong: 'rgb(var(--panel-strong) / <alpha-value>)',
ink: 'rgb(var(--ink) / <alpha-value>)',
muted: 'rgb(var(--muted) / <alpha-value>)',
brand: 'rgb(var(--brand) / <alpha-value>)',
brandStrong: 'rgb(var(--brand-strong) / <alpha-value>)',
line: 'rgb(var(--line) / <alpha-value>)',
glow: 'rgb(var(--glow) / <alpha-value>)',
codebg: 'rgb(var(--code-bg) / <alpha-value>)',
},
boxShadow: {
soft: '0 12px 26px -16px rgba(0, 20, 45, 0.45)',
},
fontFamily: {
sans: ['var(--font-sans)', ...defaultTheme.fontFamily.sans],
display: ['var(--font-display)', ...defaultTheme.fontFamily.sans],
mono: ['var(--font-mono)', ...defaultTheme.fontFamily.mono],
},
maxWidth: {
docs: '1520px',
},
keyframes: {
rise: {
'0%': { opacity: '0', transform: 'translateY(16px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
},
animation: {
rise: 'rise 540ms cubic-bezier(0.22, 1, 0.36, 1) both',
},
},
},
plugins: [require('@tailwindcss/typography')],
};
export default config;