-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
43 lines (42 loc) · 1.12 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
/* eslint-disable @typescript-eslint/no-var-requires */
const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
primaryColor: '#ee4d2d',
secondaryYellow: '#24a998'
},
animation: {
slideDown: 'slideDown 0.35s ease-out'
},
keyframes: {
slideDown: {
'0%': { transform: 'translateY(-100%)' },
'100%': { transform: 'translateY(0)' }
}
}
}
},
plugins: [
plugin(function ({ addComponents, theme }) {
addComponents({
'.container': {
maxWidth: theme('columns.7xl'),
marginLeft: 'auto',
marginRight: 'auto',
paddingLeft: theme('spacing.3'),
paddingRight: theme('spacing.3'),
'@screen sm': {
paddingLeft: theme('spacing.4'),
paddingRight: theme('spacing.4')
}
}
})
}),
require('@tailwindcss/line-clamp'),
require('tailwind-scrollbar')({ nocompatible: true })
]
}