-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
74 lines (71 loc) · 1.83 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
/**
* @path /tailwind.config.js
*
* @project videonote
* @file tailwind.config.js
*
* @author Josh Mu <[email protected]>
* @created Monday, 14th September 2020
* @modified Sunday, 23rd January 2022 5:45:03 pm
* @copyright © 2020 - 2020 MU
*/
const defaultTheme = require('tailwindcss/defaultTheme')
const plugin = require('tailwindcss/plugin')
const plugins = [
plugin(function ({ addUtilities }) {
const extendLineThrough = {
'.line-through': {
textDecoration: 'line-through',
textDecorationColor: 'var(--accent)',
},
}
addUtilities(extendLineThrough)
}),
]
const devOnlyPlugins = [require('tailwindcss-debug-screens')]
module.exports = {
content: [
'./pages/**/*.{ts,tsx, js,jsx}',
'./src/components/**/*.{ts,tsx,js,jsx}',
],
// we use our own theme toggle setup
media: false,
theme: {
extend: {
fontFamily: {
serif: ['Playfair Display', ...defaultTheme.fontFamily.serif],
sans: ['Roboto', ...defaultTheme.fontFamily.sans],
},
colors: {
themeText: 'var(--text)',
themeText2: 'var(--text2)',
themeBg: 'var(--bg)',
themeBg2: 'var(--bg2)',
themeBgOpacity: 'rgba(var(--bgNum), var(--tw-bg-opacity))',
themeAccent: 'var(--accent)',
themeAccent2: 'var(--accent2)',
themeSelect: 'var(--select)',
themeSelectOpacity: 'rgba(var(--selectNum), var(--tw-bg-opacity))',
},
opacity: {
10: '0.10',
90: '0.90',
},
maxHeight: {
'80vh': '80vh',
},
minHeight: {
screenVh: 'calc(var(--vh) * 100)',
},
height: {
'1/12': '8.33333%',
screenVh: 'calc(var(--vh) * 100)',
},
},
},
variants: {},
plugins:
process.env.NODE_ENV === 'production'
? plugins
: [...plugins, ...devOnlyPlugins],
}