Skip to content

Commit 8879bb2

Browse files
authored
Fix admonition contrasts (#374)
1 parent 9c75e85 commit 8879bb2

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

src/css/custom.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ html[data-theme="dark"] .anchored:target {
108108
@apply text-note;
109109
}
110110
& .admonition-content {
111-
@apply text-note-content;
111+
@apply text-note-content dark:text-note-content-dark;
112112
}
113113
}
114114

@@ -119,7 +119,7 @@ html[data-theme="dark"] .anchored:target {
119119
@apply text-tip;
120120
}
121121
& .admonition-content {
122-
@apply text-tip-content;
122+
@apply text-tip-content dark:text-tip-content-dark;
123123
}
124124
}
125125

@@ -130,7 +130,7 @@ html[data-theme="dark"] .anchored:target {
130130
@apply text-info;
131131
}
132132
& .admonition-content {
133-
@apply text-info-content;
133+
@apply text-info-content dark:text-info-content-dark;
134134
}
135135
}
136136

@@ -141,7 +141,7 @@ html[data-theme="dark"] .anchored:target {
141141
@apply text-warning;
142142
}
143143
& .admonition-content {
144-
@apply text-warning-content;
144+
@apply text-warning-content dark:text-warning-content-dark;
145145
}
146146
}
147147

@@ -153,7 +153,7 @@ html[data-theme="dark"] .anchored:target {
153153
@apply text-caution;
154154
}
155155
& .admonition-content {
156-
@apply text-caution-content;
156+
@apply text-caution-content dark:text-caution-content-dark;
157157
}
158158
}
159159

tailwind.config.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,20 @@ module.exports = {
2424
pink: colors.pink,
2525
// Admonitions colors
2626
note: colors.coolGray[600],
27-
"note-content": colors.coolGray[500],
28-
tip: colors.emerald[600],
29-
"tip-content": colors.emerald[600],
30-
info: colors.sky[500],
27+
"note-content": colors.coolGray[600],
28+
"note-content-dark": colors.coolGray[400],
29+
tip: colors.emerald[700],
30+
"tip-content": colors.emerald[700],
31+
"tip-content-dark": colors.emerald[500],
32+
info: colors.sky[600],
3133
"info-content": colors.sky[700],
32-
warning: colors.orange[500],
34+
"info-content-dark": colors.sky[500],
35+
warning: colors.orange[600],
3336
"warning-content": colors.orange[700],
34-
caution: colors.red[600],
35-
"caution-content": colors.red[500],
37+
"warning-content-dark": colors.orange[500],
38+
caution: colors.red[500],
39+
"caution-content": colors.red[700],
40+
"caution-content-dark": colors.red[400],
3641
},
3742
},
3843
},

0 commit comments

Comments
 (0)