generated from contentful/template-blog-webapp-nextjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
39 lines (36 loc) · 874 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
29
30
31
32
33
34
35
36
37
38
39
const tokens = require('@contentful/f36-tokens');
const { fontFamily } = require('tailwindcss/defaultTheme');
const colors = Object.entries(tokens).reduce((acc, [key, value]) => {
// Filter Hex colors from the f36-tokens
if (/^#[0-9A-F]{6}$/i.test(value)) {
acc[key] = value;
}
return acc;
}, {});
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: {
colors,
extend: {
maxWidth: {
'8xl': '90rem',
},
letterSpacing: {
snug: '-0.011em',
},
fontSize: {
'2xs': '0.625rem',
'3xl': '1.75rem',
'4xl': '2.5rem',
},
lineHeight: {
tighter: 1.1,
},
fontFamily: {
sans: ['var(--font-urbanist)', ...fontFamily.sans],
},
},
},
plugins: [require('@tailwindcss/typography')],
};