-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.cjs
70 lines (68 loc) · 1.97 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
import { spacing } from 'tailwindcss/defaultTheme';
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
colors: {
primary: '#313233',
selection: '#95a5ac40',
background: '#fcfcfc',
divider: '#5d676a',
'link-hover': 'rgb(93 103 106 / 0.7)',
},
animation: {
'ticker-loop': '20s infinite linear ticker-loop',
},
keyframes: {
'ticker-loop': {
'0%': {
transform: 'translatex(0)',
},
'100%': {
transform: 'translatex(-100%)',
},
},
},
typography: (theme) => ({
DEFAULT: {
css: {
color: '#313233',
a: {
color: theme('colors.divider'),
'text-decoration-color': 'rgb(93 103 106 / 0.6)',
' text-underline-offset': '2px',
'&:hover': {
opacity: 0.7,
},
code: { color: theme('colors.divider') },
},
'h2,h3,h4': {
'font-weight': '700',
'margin-top': '2em',
'margin-bottom': '1em',
'line-height': '1.3333',
'letter-spacing': '-.02em',
'font-variation-settings': "'wght' 700",
'scroll-margin-top': spacing[32],
},
li: {
'margin-top': '0.5em',
'margin-bottom': '0.5em',
},
thead: {
borderBottomColor: theme('colors.gray.200'),
},
code: { color: theme('colors.pink.500') },
'blockquote p:first-of-type::before': false,
'blockquote p:last-of-type::after': false,
strong: {
'font-variation-settings': "'wght' 600",
},
},
},
}),
},
},
plugins: [require('@tailwindcss/typography')],
};