-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
98 lines (94 loc) · 2.46 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
const tinycolor = require('tinycolor2')
const defaultTheme = require('tailwindcss/defaultTheme')
function alphaVariants(color) {
let c = color;
let tc = tinycolor(c);
function alphaVariants(prefix) {
let r = {}
r[prefix + '0.2'] = tc.setAlpha(0.2).toRgbString()
r[prefix + '0.4'] = tc.setAlpha(0.4).toRgbString()
r[prefix + '0.6'] = tc.setAlpha(0.6).toRgbString()
r[prefix + '0.8'] = tc.setAlpha(0.8).toRgbString()
return r;
}
return {
default: c,
...alphaVariants('')
}
}
module.exports = {
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true,
},
purge: [ "./src/**/*.svelte", "./src/**/*.html" ],
theme: {
fontFamily: {
main: [
...defaultTheme.fontFamily.sans
],
brand: [
'Audiowide',
...defaultTheme.fontFamily.sans
],
mono: [
...defaultTheme.fontFamily.mono
]
},
palete: {
black: '#000000',
white: '#FFFFFF',
dark: '#2E3A59',
'dark-lest': '#DEE8F6',
'dark-less': '#91A5CD',
'dark-more': '#172040',
'dark-most': '#080E2A',
light: '#ffd666',
'light-lest': '#7A5313',
'light-less': '#B78C33',
'light-more': '#FFEBA3',
'light-most': '#FFFAE0',
},
colors: theme => ({
black: theme('palete.black'),
white: alphaVariants(theme('palete.white')),
dark: alphaVariants(theme('palete.dark')),
// 'dark-lest': alphaVariants(theme('palete.dark-lest')),
// 'dark-less': alphaVariants(theme('palete.dark-less')),
// 'dark-more': alphaVariants(theme('palete.dark-more')),
// 'dark-most': alphaVariants(theme('palete.dark-most')),
light: alphaVariants(theme('palete.light')),
// 'light-lest': alphaVariants(theme('palete.light-lest')),
// 'light-less': alphaVariants(theme('palete.light-less')),
// 'light-more': alphaVariants(theme('palete.light-more')),
// 'light-most': alphaVariants(theme('palete.light-most')),
transparent: 'rgba(0, 0, 0, 0)',
}),
flexGrow: {
default: 1,
'0.2': 0.2,
'0.4': 0.4,
'0.6': 0.6,
'0.8': 0.8,
'2': 2,
'3': 3,
'4': 4,
},
minHeight: theme => theme('height'),
extend: {
minHeight: {
'2px': '2px',
},
width: {
'slide': '1200px'
},
height: {
'slide': '900px'
}
},
},
variants: {},
plugins: [
require('@tailwindcss/typography'),
],
}