forked from AutomaApp/automa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
43 lines (40 loc) · 1 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
/* eslint-disable global-require */
const colors = require('tailwindcss/colors');
function withOpacityValue(variable) {
return ({ opacityValue }) => {
if (opacityValue === undefined) {
return `rgb(var(${variable}))`;
}
return `rgb(var(${variable}) / ${opacityValue})`;
};
}
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx,vue}'],
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {
colors: {
primary: withOpacityValue('--color-primary'),
secondary: withOpacityValue('--color-secondary'),
accent: withOpacityValue('--color-accent'),
gray: colors.zinc,
orange: colors.orange,
},
fontFamily: {
sans: ['Poppins', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
},
container: {
center: true,
padding: {
DEFAULT: '1rem',
sm: '2rem',
},
},
},
},
variants: {
extend: {},
},
plugins: [require('@tailwindcss/typography')],
};