-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
28 lines (27 loc) · 967 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
const withOpacity = variableName => `rgb(var(${variableName}) / <alpha-value>)`
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx,json}'],
theme: {
fontFamily: {
roboto: 'Roboto, Helvetica, Arial, sans-serif',
},
extend: {
colors: {
skin: {
primary: withOpacity('--color-primary'),
secondary: withOpacity('--color-secondary'),
tertiary: withOpacity('--color-tertiary'),
},
},
backgroundColor: {
skin: {
primary: withOpacity('--color-primary'),
secondary: withOpacity('--color-secondary'),
tertiary: withOpacity('--color-tertiary'),
},
},
},
},
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')],
}