-
Notifications
You must be signed in to change notification settings - Fork 13
/
tailwind.config.js
93 lines (91 loc) · 2.35 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
/* eslint-disable @typescript-eslint/no-var-requires */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const plugin = require('tailwindcss/plugin');
const MyClass = plugin(function ({ addUtilities }) {
addUtilities({
'.my-rotate-y-180': {
transform: 'rotateY(180deg)'
},
'.preserve-3d': {
transformStyle: 'preserve-3d'
},
'.perspective': {
perspective: '1000px'
},
'.backface-hidden': {
backfaceVisibility: 'hidden'
},
'.border-rainbow': {
// https://stackoverflow.com/a/53037637 PAIN
border: 'double transparent',
borderRadius: '9999px',
backgroundImage:
'linear-gradient(white, white), linear-gradient(to bottom right, #FBBC05 0%, #EA4335 33%, #34A853 80%, #4285F4 100%)',
backgroundOrigin: 'border-box',
backgroundClip: 'padding-box, border-box'
}
});
});
module.exports = {
mode: 'jit',
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}'
],
theme: {
// colors: {
// 'green': '#2BAD21',
// },
// linearBorderGradients: {
// 'green': '#69c063',
// 'blue': '#00f',
// },
borderWidth: {
11: '11px'
},
screens: {
xs: '430px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px'
},
extend: {
colors: {
sky: 'var(--sky)',
bubble: 'var(--bubble)',
darkgreen: 'var(--darkgreen)',
lightgreen: 'var(--lightgreen)',
brown: 'var(--brown)',
gold: 'var(--gold)',
bluegray: 'var(--bluegray)',
gray: 'var(--gray)',
white: 'var(--white)',
darksky: 'var(--darksky)',
darkbubble: 'var(--darkbubble)',
purple: 'var(--purple)',
lightPurple: 'var(--lightPurple)',
text: 'var(--text)',
hoverPrimary: 'var(--hoverPrimary)',
goldHover: 'var(--goldHover)',
brownHover: 'var(--brownHover)',
link: 'var(--link)'
},
backgroundImage: {
clouds: 'var(--clouds)',
clouds2: 'var(--clouds2)',
schedule: 'var(--schedule)',
minsoo: 'var(--minsoo)'
},
borderWidth: {
2: '2px',
4: '4px',
6: '4px',
8: '8px',
10: '10px'
}
}
},
// plugins: [MyClass, require('tailwindcss-border-gradients')(),]
plugins: [MyClass]
};