-
Notifications
You must be signed in to change notification settings - Fork 7
/
tailwind.config.js
55 lines (54 loc) · 1.41 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
const plugin = require('tailwindcss/plugin');
module.exports = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
'./src/icons/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {
colors: {
accent: 'var(--accent-color)',
'accent-highlight': 'var(--accent-highlight-color)',
},
maxWidth: {
'8xl': '90rem',
'10xl': '110rem',
},
},
},
plugins: [
require('@tailwindcss/line-clamp'),
// require('@tailwindcss/typography'),
plugin(function ({ addUtilities }) {
addUtilities({
'.text-primary': {
color: 'var(--text-color)',
},
'.text-secondary': {
color: 'var(--text-secondary-color)',
},
'.text-tertiary': {
color: 'var(--text-tertiary-color)',
},
'.bg-primary': {
'background-color': 'var(--bg-color)',
},
'.bg-secondary': {
'background-color': 'var(--bg-secondary-color)',
},
'.bg-tertiary': {
'background-color': 'var(--bg-tertiary-color)',
},
'.bg-blur': {
'background-color': 'var(--bg-transparent-color)',
'backdrop-filter': 'saturate(180%) blur(20px)',
},
'.bg-accent': {
'background-color': 'var(--bg-accent-color)',
},
});
}),
],
};