-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
104 lines (102 loc) · 4.69 KB
/
tailwind.config.js
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
const { fontFamily } = require('tailwindcss/defaultTheme')
const { stone, white } = require('tailwindcss/colors')
const hexToRgb = hex => {
hex = hex.replace('#', '')
hex = hex.length === 3 ? hex.replace(/./g, '$&$&') : hex
const r = parseInt(hex.substring(0, 2), 16)
const g = parseInt(hex.substring(2, 4), 16)
const b = parseInt(hex.substring(4, 6), 16)
return `${r} ${g} ${b}`
}
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./app/**/*.{js,jsx}', './components/**/*.{js,jsx}', './pages/**/*.{js,jsx}', './content/**/*.{md,mdx}'],
darkMode: ['class'],
theme: {
extend: {
fontFamily: {
sans: ['var(--my-font)']
},
typography: ({ theme }) => ({
pink: {
css: {
'--tw-prose-body': theme('colors.pink[800]'),
'--tw-prose-headings': theme('colors.pink[900]'),
'--tw-prose-lead': theme('colors.pink[700]'),
'--tw-prose-links': theme('colors.pink[900]'),
'--tw-prose-bold': theme('colors.pink[900]'),
'--tw-prose-counters': theme('colors.pink[600]'),
'--tw-prose-bullets': theme('colors.pink[400]'),
'--tw-prose-hr': theme('colors.pink[300]'),
'--tw-prose-quotes': theme('colors.pink[900]'),
'--tw-prose-quote-borders': theme('colors.pink[300]'),
'--tw-prose-captions': theme('colors.pink[700]'),
'--tw-prose-code': theme('colors.pink[900]'),
'--tw-prose-pre-code': theme('colors.pink[100]'),
'--tw-prose-pre-bg': theme('colors.pink[900]'),
'--tw-prose-th-borders': theme('colors.pink[300]'),
'--tw-prose-td-borders': theme('colors.pink[200]'),
'--tw-prose-invert-body': theme('colors.pink[200]'),
'--tw-prose-invert-headings': theme('white'),
'--tw-prose-invert-lead': theme('colors.pink[300]'),
'--tw-prose-invert-links': theme('white'),
'--tw-prose-invert-bold': theme('white'),
'--tw-prose-invert-counters': theme('colors.pink[400]'),
'--tw-prose-invert-bullets': theme('colors.pink[600]'),
'--tw-prose-invert-hr': theme('colors.pink[700]'),
'--tw-prose-invert-quotes': theme('colors.pink[100]'),
'--tw-prose-invert-quote-borders': theme('colors.pink[700]'),
'--tw-prose-invert-captions': theme('colors.pink[400]'),
'--tw-prose-invert-code': theme('white'),
'--tw-prose-invert-pre-code': theme('colors.pink[300]'),
'--tw-prose-invert-pre-bg': 'rgb(0 0 0 / 50%)',
'--tw-prose-invert-th-borders': theme('colors.pink[600]'),
'--tw-prose-invert-td-borders': theme('colors.pink[700]')
},
stone: {
css: {
'--tw-prose-body': stone[700],
'--tw-prose-headings': stone[900],
'--tw-prose-lead': stone[600],
'--tw-prose-links': stone[900],
'--tw-prose-bold': stone[900],
'--tw-prose-counters': stone[500],
'--tw-prose-bullets': stone[300],
'--tw-prose-hr': stone[200],
'--tw-prose-quotes': stone[900],
'--tw-prose-quote-borders': stone[200],
'--tw-prose-captions': stone[500],
'--tw-prose-kbd': stone[900],
'--tw-prose-kbd-shadows': hexToRgb(stone[900]),
'--tw-prose-code': stone[900],
'--tw-prose-pre-code': stone[200],
'--tw-prose-pre-bg': stone[800],
'--tw-prose-th-borders': stone[300],
'--tw-prose-td-borders': stone[200],
'--tw-prose-invert-body': stone[300],
'--tw-prose-invert-headings': white,
'--tw-prose-invert-lead': stone[400],
'--tw-prose-invert-links': white,
'--tw-prose-invert-bold': white,
'--tw-prose-invert-counters': stone[400],
'--tw-prose-invert-bullets': stone[600],
'--tw-prose-invert-hr': white[900],
'--tw-prose-invert-quotes': stone[100],
'--tw-prose-invert-quote-borders': stone[700],
'--tw-prose-invert-captions': stone[400],
'--tw-prose-invert-kbd': white,
'--tw-prose-invert-kbd-shadows': hexToRgb(white),
'--tw-prose-invert-code': white,
'--tw-prose-invert-pre-code': stone[300],
'--tw-prose-invert-pre-bg': 'rgb(0 0 0 / 50%)',
'--tw-prose-invert-th-borders': stone[600],
'--tw-prose-invert-td-borders': stone[700],
'--tw-ring-color': stone[700]
}
}
}
})
}
},
plugins: [require('@tailwindcss/typography')]
}