-
Notifications
You must be signed in to change notification settings - Fork 18
/
tailwind.config.cjs
107 lines (106 loc) · 2.85 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
const defaultConfig = require('tailwindcss/defaultConfig')
const colors = require('tailwindcss/colors')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
colors: {
cg: '#449388',
cy: '#E1AD6A',
cb: '#3C7ADF',
cp: '#CE90B8',
co: '#DF5D2F',
ck: '#1C1916',
cw: '#EDE5DA',
cbr: '#635548',
},
fontFamily: {
sans: [
'Basier Circle',
'Anuphan',
...defaultConfig.theme.fontFamily.sans,
],
prose: [
'Basier Circle',
'Sarabun',
...defaultConfig.theme.fontFamily.sans,
],
casual: [
['"Recursive Variable"', ...defaultConfig.theme.fontFamily.sans],
{ fontVariationSettings: '"CASL" 1, "CRSV" 1, "slnt" 0, "MONO" 0' },
],
mono: [
['"Recursive Variable"', ...defaultConfig.theme.fontFamily.mono],
{ fontVariationSettings: '"CASL" 0, "CRSV" 0, "slnt" 0, "MONO" 1' },
],
},
animation: {
loader: 'loader 0.6s infinite alternate',
},
keyframes: {
loader: {
to: {
opacity: 0.1,
transform: 'translate3d(0, -1rem, 0)',
},
},
},
typography: {
DEFAULT: {
css: {
'--tw-prose-links': colors.blue[500],
// Remove Comments for ความกระตุกจิตกระชากใจ
code: {
fontVariationSettings: '"CASL" 0, "CRSV" 0, "slnt" 0, "MONO" 1',
},
h1: {
fontWeight: 500,
marginTop: '3rem',
marginBottom: '0.5em',
},
h2: {
fontWeight: 500,
marginBottom: '0.67em',
},
'h1+h2': {
marginTop: '1em',
},
details: {
backgroundColor: colors.gray[50],
marginTop: '1.25em',
marginBottom: '1.25em',
padding: '0.5rem',
},
summary: {
backgroundColor: colors.gray[100],
margin: '-0.5rem -0.5rem 0',
padding: '0.5rem',
cursor: 'pointer',
},
strong: {
fontWeight: 500,
},
table: {
fontSize: '0.95rem',
},
li: {
fontSize: '1rem',
},
a: {
textDecoration: 'none',
fontWeight: 'inherit',
},
p: {
fontSize: '1rem',
},
'.lead > p': {
fontSize: '1.15rem',
},
},
},
},
},
},
plugins: [require('@tailwindcss/typography')],
}