forked from skillrecordings/egghead-next
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
92 lines (91 loc) · 2.31 KB
/
tailwind.config.js
File metadata and controls
92 lines (91 loc) · 2.31 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
module.exports = {
purge: [
'./src/**/*.js',
'./pages/**/*.js',
'./pages/**/*.tsx',
'./pages/**/*.mdx',
'./components/**/*.mdx',
'./src/**/*.tsx',
],
theme: {
colors: {
...defaultTheme.colors,
...colors,
gray: colors.blueGray,
// red: colors.red,
// blue: colors.blue,
// yellow: colors.amber,
},
extend: {
colors: {},
typography: (theme) => ({
DEFAULT: {
css: {
color: `${theme('colors.black')} !important`,
a: {
color: `${theme('colors.blue.600')} !important`,
},
'strong > a': {
color: `${theme('colors.blue.600')} !important`,
},
code: {
padding: '3px 5px',
borderRadius: 5,
background: theme('colors.gray.100'),
},
h1: {
fontSize: theme('fontSize.3xl'),
lineHeight: theme('lineHeight.tight'),
fontWeight: theme('fontWeight.bold'),
},
h2: {
fontSize: theme('fontSize.xl'),
lineHeight: theme('lineHeight.snug'),
fontWeight: theme('fontWeight.bold'),
},
h3: {
fontSize: theme('fontSize.lg'),
lineHeight: theme('lineHeight.normal'),
fontWeight: theme('fontWeight.extrabold'),
},
},
},
}),
screens: {
xs: '375px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1440px',
'3xl': '1920px',
},
fontSize: {
// Set in Major Third typescale (1.25)
base: '1em',
lg: '1.25em',
xl: '1.563em',
'2xl': '1.953em',
'3xl': '2.441em',
'4xl': '3.052em',
'5xl': '3.815em',
},
lineHeight: {
tighter: 1.1,
},
},
},
variants: {
margin: ['responsive', 'first', 'last'],
padding: ['responsive', 'first', 'last'],
scale: ['hover'],
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/ui'),
require('@tailwindcss/forms'),
require('@tailwindcss/aspect-ratio'),
],
}