forked from mswjs/mswjs.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
108 lines (106 loc) · 2.94 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
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
const defaultTheme = require('tailwindcss/defaultTheme')
const COLOR_ORANGE = '#FF6A33'
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
fontFamily: {
sans: [
[
'Inter',
'system-ui',
'-apple-system',
...defaultTheme.fontFamily.sans,
],
],
mono: [
['"Mono Lisa"', ...defaultTheme.fontFamily.mono],
{
fontFeatureSettings: '"ss03"',
},
],
},
extend: {
container: {
center: true,
padding: '1.25rem',
},
colors: {
orange: COLOR_ORANGE,
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
'--tw-prose-links': theme('colors.orange'),
color: theme('colors.neutral.200'),
'h1, h2, h3, h4': {
color: theme('colors.white'),
},
h2: {
borderTop: `1px solid ${theme('colors.neutral.800')}`,
paddingTop: '2em',
fontWeight: theme('font.bold'),
},
h4: {
fontSize: theme('fontSize.lg'),
},
a: {
color: theme('colors.orange'),
},
strong: {
color: null,
},
pre: null,
code: {
color: theme('colors.neutral.200'),
background: theme('colors.neutral.800'),
border: `1px solid ${theme('colors.neutral.700')}`,
borderRadius: theme('borderRadius.md'),
padding: `0 ${theme('padding.1')}`,
},
'code::before': null,
'code::after': null,
blockquote: {
color: theme('colors.neutral.400'),
borderColor: theme('colors.neutral.700'),
borderLeftWidth: 2,
fontStyle: 'normal',
fontWeight: theme('font.semibold'),
lineHeight: 1.5,
},
'blockquote p:first-of-type::before': null,
'blockquote p:first-of-type::after': null,
hr: {
borderColor: theme('colors.neutral.800'),
},
thead: {
borderColor: theme('colors.neutral.600'),
},
th: {
color: theme('colors.neutral.300'),
},
tr: {
borderColor: theme('colors.neutral.700'),
},
},
},
}),
transitionDuration: {
long: '5000ms',
},
keyframes: {
pingDelay: {
'0%': { transform: 'scale(1)', opacity: 1 },
'25%,100%': { transform: 'scale(2)', opacity: 0 },
},
},
animation: {
ping: 'pingDelay 4s linear infinite',
},
},
},
variants: {
animation: ['motion-safe', 'motion-reduce'],
},
plugins: [require('@tailwindcss/typography')],
}