-
Notifications
You must be signed in to change notification settings - Fork 13
/
tailwind.config.js
46 lines (44 loc) · 1.04 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
44
45
46
const defaultTheme = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
module.exports = {
content: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
theme: {
container: {
center: true,
padding: "1rem",
},
extend: {
fontFamily: {
heading: [
'"Red Hat Display"',
'"Poppins"',
...defaultTheme.fontFamily.sans,
],
sans: ['"Poppins"', ...defaultTheme.fontFamily.sans],
},
},
},
corePlugins: {
accessibility: false,
},
variants: {},
plugins: [
require("@tailwindcss/typography"),
plugin(({addUtilities}) => {
addUtilities({
'.sr-only': {
border: '0',
padding: '0',
margin: '0',
position: 'absolute !important',
height: '1px',
width: '1px',
overflow: 'hidden',
clip: 'rect(1px 1px 1px 1px)',
'clip-path': 'inset(50%)',
'white-space': 'nowrap'
}
})
})
],
};