-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.cjs
More file actions
33 lines (33 loc) · 906 Bytes
/
tailwind.config.cjs
File metadata and controls
33 lines (33 loc) · 906 Bytes
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
const colors = require('tailwindcss/colors');
function columns(number) {
const arr = [...Array(number).keys()];
return arr.map(i => `cfb-col-span-${i + 1} des:cfb-col-span-${i + 1}`);
}
/** @type {import('tailwindcss').Config} */
module.exports = {
prefix: 'cfb-',
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
safelist: [...columns(12)],
theme: {
colors: {
main: colors.sky,
danger: colors.red,
success: colors.green,
valid: colors.sky,
warning: colors.yellow,
white: colors.white,
black: colors.black,
gray: colors.gray,
},
screens: {
mob: '640px',
tab: '768px',
des: '1024px',
},
},
plugins: [
function ({ addVariant }) {
addVariant('children', '& > *');
},
],
};