This repository was archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
77 lines (74 loc) · 1.85 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
const theme = require('tailwindcss/defaultTheme');
const plugin = require('tailwindcss/plugin');
module.exports = {
purge: ['index.html', 'src/**/*.tsx'],
mode: 'jit',
theme: {
extend: {
inset: {
unset: 'unset',
},
width: {
'fit-content': 'fit-content',
},
keyframes: {
'slide-x-reveal': {
'0%': { opacity: '0', transform: 'translateX(10%)' },
'100%': { opacity: '1', transform: 'translateX(0%)' },
},
},
boxShadow: {
'creator-card-img': '0px 34.4728px 57.9769px rgba(0, 0, 0, 0.15)',
'2xl-light': '0 25px 50px -12px rgba(0, 0, 0, 0.08)',
},
animation: {
'slide-x-reveal': 'slide-x-reveal 300ms ease-in-out',
},
transitionProperty: {
composite: 'transform, opacity',
},
zIndex: {
1: 1,
negative: -1,
},
fontSize: {
xxs: '.55rem',
},
screens: {
'pointer-fine': {
raw: '(pointer: fine)',
},
},
colors: {
iris: '#6C42C5',
'deep-purple': '#210631',
sunglow: '#FACD2E',
persimmon: '#FF7346',
'sky-blue': '#81D2FF',
'cornflower-purple': '#A8A5F5',
'sunset-red': '#FF4E4E',
lime: '#44C030',
'off-white': '#EFF4F5',
},
},
},
variants: {
extend: {
backgroundColor: ['group-hover'],
},
},
plugins: [
plugin(function ({ addUtilities }) {
const values = ['50', '56', '300', '496'];
const newUtilities = {};
values.forEach((value) => {
newUtilities[`.w-fit-parent-${value}px`] = {
width: `calc(100% + ${value}px)`,
'margin-left': `-${Math.floor(value / 2)}px`,
};
});
addUtilities(newUtilities);
}),
],
// plugins: [require('@savvywombat/tailwindcss-grid-areas')],
};