Skip to content

Commit 89f3a27

Browse files
authored
remove --theme from __reflex_style_reset.css (#6076)
This fixes font rendering of `pre` elements when tailwind is not used.
1 parent 6718679 commit 89f3a27

File tree

1 file changed

+12
-37
lines changed

1 file changed

+12
-37
lines changed

reflex/.templates/web/styles/__reflex_style_reset.css

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,12 @@
3131
line-height: 1.5; /* 1 */
3232
-webkit-text-size-adjust: 100%; /* 2 */
3333
tab-size: 4; /* 3 */
34-
font-family: --theme(
35-
--default-font-family,
36-
ui-sans-serif,
37-
system-ui,
38-
sans-serif,
39-
"Apple Color Emoji",
40-
"Segoe UI Emoji",
41-
"Segoe UI Symbol",
42-
"Noto Color Emoji"
43-
); /* 4 */
44-
font-feature-settings: --theme(
45-
--default-font-feature-settings,
46-
normal
47-
); /* 5 */
48-
font-variation-settings: --theme(
49-
--default-font-variation-settings,
50-
normal
51-
); /* 6 */
34+
font-family:
35+
--default-font-family, ui-sans-serif, system-ui, sans-serif,
36+
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
37+
"Noto Color Emoji"; /* 4 */
38+
font-feature-settings: --default-font-feature-settings, normal; /* 5 */
39+
font-variation-settings: --default-font-variation-settings, normal; /* 6 */
5240
-webkit-tap-highlight-color: transparent; /* 7 */
5341
}
5442

@@ -117,25 +105,12 @@
117105
kbd,
118106
samp,
119107
pre {
120-
font-family: --theme(
121-
--default-mono-font-family,
122-
ui-monospace,
123-
SFMono-Regular,
124-
Menlo,
125-
Monaco,
126-
Consolas,
127-
"Liberation Mono",
128-
"Courier New",
129-
monospace
130-
); /* 1 */
131-
font-feature-settings: --theme(
132-
--default-mono-font-feature-settings,
133-
normal
134-
); /* 2 */
135-
font-variation-settings: --theme(
136-
--default-mono-font-variation-settings,
137-
normal
138-
); /* 3 */
108+
font-family:
109+
--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco,
110+
Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
111+
font-feature-settings: --default-mono-font-feature-settings, normal; /* 2 */
112+
font-variation-settings:
113+
--default-mono-font-variation-settings, normal; /* 3 */
139114
font-size: 1em; /* 4 */
140115
}
141116

0 commit comments

Comments
 (0)