-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.cjs
47 lines (42 loc) · 1.24 KB
/
tailwind.config.cjs
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
const radixColors = require('@radix-ui/colors');
const { fontFamily } = require('tailwindcss/defaultTheme');
const colors = Object.fromEntries(
Object.keys(radixColors)
.filter((color) => color.includes('Dark') && !color.includes('A'))
.map((color) => {
const colorName = color.replace('Dark', '');
const scales = Object.keys(radixColors[color]).map((scale) => {
const [step] = scale.match(/\d+/);
return [step, radixColors[color][scale]];
});
return [[colorName], Object.fromEntries(scales)];
})
);
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{ts,tsx}', './contentlayer.config.ts'],
theme: {
extend: {
fontFamily: {
sans: ['var(--font-karla)', ...fontFamily.sans],
},
animation: {
'tooltip-open-top': 'tooltip-open-top 200ms ease-in-out forwards',
'tooltip-close-top': 'tooltip-close-top 200ms ease-in-out forwards',
'tooltip-open-bottom': 'tooltip-open-bottom 200ms ease-in-out forwards',
'tooltip-close-bottom':
'tooltip-close-bottom 200ms ease-in-out forwards',
},
},
colors: {
...colors,
transparent: {
DEFAULT: 'transparent',
},
spotify: {
DEFAULT: '#1ED760',
},
},
},
plugins: [require('tailwindcss-radix')()],
};