-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
117 lines (117 loc) · 4.15 KB
/
tailwind.config.mjs
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: false, // or 'media' or 'class'
theme: {
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1680px'
},
fontSize: {
xs: ['0.75rem', { lineHeight: '1rem' }], // 12px
sm: ['0.875rem', { lineHeight: '1.25rem' }], // 14px
base: ['1rem', { lineHeight: '1.5rem' }], // 16px
lg: ['1.125rem', { lineHeight: '1.75rem' }], // 18px
xl: ['1.25rem', { lineHeight: '1.75rem' }], // 20px
'2xl': ['1.5rem', { lineHeight: '2rem' }], // 24px
'3xl': ['1.75rem', { lineHeight: '2.25rem' }], // 28px
'4xl': ['2.25rem', { lineHeight: '1' }], // 36px
'5xl': ['3rem', { lineHeight: '1' }], // 48px
'6xl': ['4rem', { lineHeight: '1' }], // 64px
'7xl': ['5rem', { lineHeight: '1' }], // 80px
'8xl': ['6rem', { lineHeight: '1' }], // 96px
'9xl': ['8rem', { lineHeight: '1' }] // 128px
},
extend: {
fontFamily: {
sans: [
'new-atten',
'ui-sans-serif',
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'"Noto Sans"',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"'
],
serif: [
'ivyora-text',
'ui-serif',
'Georgia',
'Cambria',
'"Times New Roman"',
'Times',
'serif'
]
},
lineHeight: {
condensed: '0.8'
},
colors: ({ colors }) => ({
cobalt: '#354168',
midnight: '#1b2531',
pewter: '#ccd0d9',
periwinkle: '#e0e6ff',
cornflower: '#839cff',
paleyellow: '#fbf7f0'
}),
typography: ({ theme }) => ({
midnight: {
css: {
'--tw-prose-body': theme('colors.midnight'),
'--tw-prose-headings': theme('colors.midnight'),
'--tw-prose-lead': theme('colors.midnight'),
'--tw-prose-links': theme('colors.midnight'),
'--tw-prose-bold': theme('colors.midnight'),
'--tw-prose-counters': theme('colors.midnight'),
'--tw-prose-bullets': theme('colors.midnight'),
'--tw-prose-hr': theme('colors.midnight'),
'--tw-prose-quotes': theme('colors.midnight'),
'--tw-prose-quote-borders': theme('colors.midnight'),
'--tw-prose-captions': theme('colors.midnight'),
'--tw-prose-code': theme('colors.midnight'),
'--tw-prose-pre-code': theme('colors.midnight'),
'--tw-prose-pre-bg': theme('colors.midnight'),
'--tw-prose-th-borders': theme('colors.midnight'),
'--tw-prose-td-borders': theme('colors.midnight'),
'--tw-prose-invert-body': theme('colors.midnight'),
'--tw-prose-invert-headings': theme('colors.midnight'),
'--tw-prose-invert-lead': theme('colors.midnight'),
'--tw-prose-invert-links': theme('colors.midnight'),
'--tw-prose-invert-bold': theme('colors.midnight'),
'--tw-prose-invert-counters': theme('colors.midnight'),
'--tw-prose-invert-bullets': theme('colors.midnight'),
'--tw-prose-invert-hr': theme('colors.midnight'),
'--tw-prose-invert-quotes': theme('colors.midnight'),
'--tw-prose-invert-quote-borders': theme('colors.midnight'),
'--tw-prose-invert-captions': theme('colors.midnight'),
'--tw-prose-invert-code': theme('colors.midnight'),
'--tw-prose-invert-pre-code': theme('colors.midnight'),
'--tw-prose-invert-pre-bg': 'rgb(0 0 0 / 50%)',
'--tw-prose-invert-th-borders': theme('colors.midnight'),
'--tw-prose-invert-td-borders': theme('colors.midnight')
}
}
}),
spacing: {
18: '4.5rem'
}
}
},
variants: {
extend: {}
},
plugins: [
require('@tailwindcss/typography')
]
}