Skip to content

Commit 88ae949

Browse files
committed
Fix Note callout color mismatch in dark mode
Simplify the color override selectors to use structural targeting (targeting all children of the callout) instead of relying on Tailwind class names. This ensures the orange text color (light mode) and light orange text color (dark mode) are applied consistently, fixing the blue text that was appearing in dark mode.
1 parent 8cce7d3 commit 88ae949

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

style.css

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,15 @@ code {
4747
/* orange-500 at 10% opacity */
4848
}
4949

50-
/* Icon color */
51-
.callout .text-sky-500 {
52-
color: #ff8800;
53-
}
54-
55-
/* Content text color */
56-
.callout .text-sky-900 {
50+
/* Note callout text & icon colors - light mode */
51+
.callout[data-callout-type="note"],
52+
.callout[data-callout-type="note"] *:not(a) {
5753
color: rgb(124 45 18) !important;
58-
/* orange-900 */
5954
}
6055

61-
.dark\:text-sky-200:is(.dark *) {
56+
/* Note callout text & icon colors - dark mode */
57+
.dark .callout[data-callout-type="note"],
58+
.dark .callout[data-callout-type="note"] *:not(a) {
6259
color: rgb(255, 183, 102) !important;
6360
}
6461

0 commit comments

Comments
 (0)