forked from TheOdinProject/theodinproject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
93 lines (93 loc) · 2.21 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
module.exports = {
content: [
'./app/**/*.html.erb',
'./app/**/*.turbo_stream.erb',
'./app/components/**/*',
'./app/components/*.rb',
'./app/javascript/**/*.js',
'./app/javascript/components/**/*.jsx',
'app/assets/images/icons/*.svg',
'./config/utility_classes.yml',
'./app/components/**/*.yml',
'./app/builders/**/*.rb',
],
safelist: [
'lesson-note',
'lesson-note--tip',
'lesson-note--warning',
'lesson-note--critical',
'lesson-content__panel',
'anchor-link',
'toc-item-active',
'inline-img'
],
darkMode: 'class',
theme: {
extend: {
typography: (theme) => ({
DEFAULT: {
css: {
code: {
'&:before': {
display: 'none',
},
'&:after': {
display: 'none',
},
},
h3: {
width: 'fit-content',
a: {
color: theme('colors.gray.800'),
'text-decoration': 'none',
'font-weight': '600',
'&:hover': {
color: theme('colors.gray.800'),
}
},
},
details: {
summary: {
'font-size': '1.25rem',
'margin-bottom': '1.25rem',
'font-weight': '600',
'cursor': 'pointer',
},
}
},
},
gray: {
css: {
'--tw-prose-code': theme('colors.pink.700'),
'--tw-prose-invert-code': theme('colors.pink.400'),
},
},
}),
colors: {
transitionProperty: {
'stroke-dashoffset': 'stroke-dashoffset'
},
'gold': {
DEFAULT: '#CE973E',
'50': '#F3E6D0',
'100': '#EFDDC0',
'200': '#E7CCA0',
'300': '#DFBA7F',
'400': '#D6A95F',
'500': '#CE973E',
'600': '#A9792B',
'700': '#7C5920',
'800': '#503914',
'900': '#231909'
},
},
},
},
corePlugins: {
container: false,
},
plugins: [
require('@tailwindcss/typography'),
require("@tailwindcss/forms"),
],
}