-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
37 lines (32 loc) · 928 Bytes
/
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
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}'],
theme: {
extend: {
fontFamily: { sans: ['var(--font-raleway)', ...fontFamily.sans] },
transitionProperty: {
width: 'width'
}
},
colors: {
...colors,
white: '#FFFFFF',
black: '#000000'
}
},
plugins: []
};