-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
tailwind.config.js
126 lines (125 loc) · 2.99 KB
/
tailwind.config.js
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
const defaultTheme = require('tailwindcss/defaultTheme');
const withOpacity = require('./tailwind/with-opacity');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/**/*.{html,ts}',
'./projects/elements/**/*.{html,ts}',
'./projects/demos/**/*.{html,ts}',
'./content/**/*.md',
],
darkMode: 'class',
theme: {
extend: {
colors: {
primary: {
light: withOpacity('primary-light'),
DEFAULT: withOpacity('primary'),
dark: withOpacity('primary-dark'),
},
gray: {
100: '#f7fafc',
200: '#edf2f7',
300: '#e2e8f0',
400: '#cbd5e0',
500: '#a0aec0',
600: '#718096',
700: '#4a5568',
800: '#2d3748',
900: '#1a202c',
950: '#141922',
},
color: 'var(--text)',
'color-light': 'var(--text-light)',
'color-shade': 'var(--text-shade)',
canvas: {
light: 'var(--canvas-light)',
DEFAULT: 'var(--canvas)',
shade: 'var(--canvas-shade)',
opac: 'var(--canvas-opac)',
},
},
fontFamily: {
sans: ['Muli', ...defaultTheme.fontFamily.sans],
},
backgroundImage: (theme) => ({
'gradient-145': 'linear-gradient(145deg, var(--tw-gradient-stops))',
'gradient-primary': `linear-gradient(145deg, ${theme(
'colors.primary.light'
)}, ${theme('colors.primary.DEFAULT')}, ${theme(
'colors.primary.dark'
)})`,
'gradient-primary-inverse': `linear-gradient(-145deg, ${theme(
'colors.primary.light'
)}, ${theme('colors.primary.DEFAULT')}, ${theme(
'colors.primary.dark'
)})`,
}),
inset: {
4: '1rem',
8: '2rem',
12: '3rem',
16: '4rem',
24: '6rem',
32: '8rem',
},
maxHeight: {
248: '248px',
384: '384px',
524: '524px',
669: '669px',
},
transformOrigin: {
0: '0%',
},
zIndex: {
'-1': '-1',
},
borderRadius: {
xl: '22px',
},
minHeight: {
18: '4.5rem',
24: '6rem',
80: '20rem',
},
screens: {
xs: '256px',
sm: '576px',
md: '768px',
lg: '992px',
xl: '1200px',
},
minWidth: {
xxs: '16rem',
xs: '20rem',
sm: '24rem',
md: '28rem',
lg: '32rem',
xl: '36rem',
'2xl': '42rem',
'3xl': '48rem',
},
width: {
xxs: '16rem',
xs: '20rem',
sm: '24rem',
md: '28rem',
lg: '32rem',
xl: '36rem',
'2xl': '42rem',
'3xl': '48rem',
},
},
},
corePlugins: {
container: false,
},
plugins: [
require('@tailwindcss/line-clamp'),
require('./tailwind/container'),
require('./tailwind/min-w-container'),
require('./tailwind/buttons'),
require('./tailwind/chips'),
],
};