-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
83 lines (77 loc) · 1.92 KB
/
tailwind.config.ts
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
import type { Config } from 'tailwindcss';
import defaultTheme from 'tailwindcss/defaultTheme';
import colors from 'tailwindcss/colors';
import {
colorPrimary100,
colorPrimary200,
colorPrimary300,
colorPrimary400,
colorPrimary500,
colorPrimary600,
colorPrimary700,
colorPrimary800,
colorPrimary900,
colorSecondary100,
colorSecondary200,
colorSecondary300,
colorSecondary400,
colorSecondary500,
colorSecondary600,
colorSecondary700,
colorSecondary800,
colorSecondary900,
} from './figma.vars';
const theme = {
content: ['./app/**/*.{js,jsx,ts,tsx}'],
// darkMode: "class",
theme: {
// extensions
extend: {
fontFamily: {
sans: ['DM Sans', ...defaultTheme.fontFamily.sans],
serif: ['DM Serif Display', ...defaultTheme.fontFamily.serif],
mono: ['DM Mono', ...defaultTheme.fontFamily.mono],
},
},
// overrides
colors: {
// tw defaults reduced
transparent: 'transparent',
current: 'currentColor',
black: colors.black,
white: colors.white,
gray: colors.zinc, // remap
teal: colors.teal,
orange: colors.orange,
rose: colors.rose,
violet: colors.violet,
cyan: colors.cyan,
// "arbitrary"
primary: {
100: colorPrimary100,
200: colorPrimary200,
300: colorPrimary300,
400: colorPrimary400,
500: colorPrimary500,
600: colorPrimary600,
700: colorPrimary700,
800: colorPrimary800,
900: colorPrimary900,
},
secondary: {
100: colorSecondary100,
200: colorSecondary200,
300: colorSecondary300,
400: colorSecondary400,
500: colorSecondary500,
600: colorSecondary600,
700: colorSecondary700,
800: colorSecondary800,
900: colorSecondary900,
},
// default: "#1E1E1E",
},
},
plugins: [],
} satisfies Config;
export default theme;