-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
48 lines (45 loc) · 1.05 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
44
45
46
47
48
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
/** @type {(px: number) => string} */
function px(px) {
return `${px / 16}rem`
}
/** @type {import('tailwindcss').Config} */
const config = {
content: ['./config/**/*.@(json)', './src/**/*.@(css|html|js|ts|tsx)'],
plugins: [require('@tailwindcss/typography')],
theme: {
extend: {
colors: {
primary: colors.blue,
},
fontFamily: {
body: ['Inter', ...defaultTheme.fontFamily.sans],
display: ['Inter', ...defaultTheme.fontFamily.sans],
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
fontSize: {
sm: px(13),
base: px(15),
},
maxWidth: {
'65ch': '65ch',
'80ch': '80ch',
},
zIndex: {
'-10': '-10',
},
},
screens: {
'2xs': '320px',
xs: '480px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1308px',
'2xl': '1600px',
'3xl': '1920px',
},
},
}
module.exports = config