-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.js
111 lines (106 loc) · 2.71 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
const colors = require('tailwindcss/colors')
const defaultTheme = require('tailwindcss/defaultTheme')
/** @type {import("tailwindcss").Config} */
module.exports = {
content: ['./src/pages/**/*.{js,ts,jsx,tsx}', './src/components/**/*.{js,ts,jsx,tsx}'],
theme: {
container: {
center: true,
},
colors: {
// tw colors
inherit: 'inherit',
transparent: 'transparent',
current: 'currentColor',
red: colors.red,
green: colors.green,
amber: colors.amber,
// form plugin colors
blue: colors.teal,
// semantic colors
gray: {
...colors.neutral,
850: '#202020',
1000: '#101010',
},
alt: { ...colors.gray, 850: '#18212F', 1000: '#090C14' },
accent: colors.teal,
mana: '#2ba9d8',
attack: colors.amber[400],
health: colors.red[600],
danger: colors.red[600],
// faction
lyonar: '#e5c56d',
songhai: '#db4460',
vetruvian: '#db8e2b',
abyssian: '#bf20e1',
magmar: '#3db586',
vanar: '#2ba3db',
// rarity
neutral: colors.neutral['100'],
common: colors.neutral['100'],
basic: colors.neutral['300'],
rare: '#396cfd',
epic: '#bf20e1',
legendary: '#e39f28',
},
/* prettier-ignore */
extend: {
fontFamily: {
mono: ['Roboto Mono', ...defaultTheme.fontFamily.mono],
},
boxShadow: {
'nav': `12px 1px 16px 4px rgba(16,16,16,0.5)`,
'header': `1px 1px 16px 4px rgba(16,16,16,0.5)`,
},
borderWidth:{
'3': '3px',
},
gridTemplateAreas: {
desktop: [
'logo header header',
'nav main aside',
],
mobile: [
'logo header header',
'nav nav nav',
'main main aside',
]
},
gridTemplateColumns: {
desktop: 'auto minmax(0, 1fr) auto',
mobile: 'auto minmax(0, 1fr) auto',
},
gridTemplateRows: {
desktop: `min-content
minmax(0, 1fr)
auto`,
mobile: `min-content
0
minmax(0, 1fr)`
},
scale: {
'101': '1.01',
'130': '1.3',
'135': '1.35',
'200': '2',
}
},
},
plugins: [
require('@tailwindcss/forms'),
require('tailwindcss-animate'),
require('@savvywombat/tailwindcss-grid-areas'),
require('@headlessui/tailwindcss')({ prefix: 'ui' }),
],
safelist: [
{
pattern: /!?(text|bg|border)-(lyonar|songhai|vetruvian|abyssian|magmar|vanar|neutral)/,
variants: ['hover', 'group-hover'],
},
{
pattern: /!?(text)-(common|basic|rare|epic|legendary)/,
variants: ['hover'],
},
],
}