generated from ananyalohani/nextjs-typescript-tailwind-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
78 lines (77 loc) · 1.99 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
const colors = require('tailwindcss/colors');
module.exports = {
mode: 'jit',
purge: ['./src/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
maxWidth: {
'1/4': '25%',
'1/2': '50%',
'3/4': '75%',
},
width: {
100: '28rem',
110: '30rem',
120: '34rem',
},
colors: {
sky: colors.sky,
gray: colors.blueGray,
coolGray: colors.coolGray,
teal: colors.teal,
emerald: colors.emerald,
green: colors.green,
orange: colors.orange,
},
typography: (theme) => ({
DEFAULT: {
css: {
margin: '5rem 0',
h1: {
color: theme('colors.coolGray.800'),
},
h2: {
color: theme('colors.coolGray.800'),
},
h3: {
color: theme('colors.coolGray.800'),
},
h4: {
color: theme('colors.coolGray.800'),
},
p: {
color: theme('colors.coolGray.800'),
},
blockquote: {
'p:first-of-type::before': {
content: '"" !important',
},
'p:last-of-type::after': {
content: '"" !important',
},
color: theme('colors.gray.700'),
},
code: {
'&::before': {
content: '"" !important',
},
'&::after': {
content: '"" !important',
},
fontWeight: 500,
color: '',
},
},
},
}),
},
fontFamily: {
sans: ['Inter', 'ui-sans-serif', 'system-ui'],
body: ['Inter', 'ui-sans-serif', 'system-ui'],
display: ['Barlow', 'ui-sans-serif', 'system-ui'],
code: ['Fira Code', 'monospace'],
},
},
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms')],
};