forked from The-Balance-FFXIV/glam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
97 lines (90 loc) · 2.55 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
const plugin = require('tailwindcss/plugin');
module.exports = {
purge: ['layouts/**/*.html'],
darkMode: false, // or 'media' or 'class'
theme: {
fontFamily: {
'sans': ['Roboto', 'sans-serif'],
'head': ['Kumbh Sans', 'sans-serif']
},
extend: {
dropShadow: {
'lg': '2px 2px 3px #000000',
'lg-healers': '2px 2px 3px #256A1D',
'lg-tanks': '2px 2px 3px #1D3D6A',
'lg-melee': '2px 2px 3px #6A1D1D',
'lg-ranged': '2px 2px 3px #6A1D1D',
'lg-casters': '2px 2px 3px #6A1D1D',
'3xl': '0 100px 100px rgba(0, 0, 0, 0.75)',
},
colors: {
'line-divide-color': '#2a3641',
'link-orange': '#FF9900',
'card-lighter': '#1E1E1F',
'card-light': '#19191A',
'card-dark': '#101111',
'card-border-color' : '#3871c2',
'card-header-text-color' : '#7b8794',
'tanks': '#3A7AD6',
'healers': '#47C168',
'melee': '#D84D4D',
'ranged': '#D84D4D',
'casters': '#D84D4D',
'page': '#222528',
'gray': {
'light': '#C9C9C9',
}
},
height: {
'100': '25rem',
},
zIndex: {
'-1': '-1',
},
fontSize: {
'base': '0.9375rem',
},
},
},
variants: {
extend: {
translate: ['group-hover'],
},
},
plugins: [
// Card Plugin
plugin(({ addUtilities, theme, e }) => {
const colors = theme('colors');
const cardUtilityBorderColor = Object.keys(colors).reduce((acc, key) => {
if (typeof colors[key] === 'string') {
return {
...acc,
[`.card-${e(key)}`]: {
'--tw-border-color': colors[key],
},
};
}
const variants = Object.keys(colors[key]);
return {
...acc,
...variants.reduce((a, variant) => ({
...a,
[`.card-${e(key)}-${variant}`]: {
'--tw-border-color': colors[key][variant],
},
}), {}),
};
}, {});
const cardUtilityBase = {
background: theme('colors.card-light'),
padding: '1.25rem 1.5rem',
borderLeft: `8px solid var(--tw-border-color, ${theme('colors.gray.600')})`,
};
const cardUtilities = {
...cardUtilityBorderColor,
'.card': cardUtilityBase,
};
addUtilities(cardUtilities);
}),
],
}