Skip to content

Commit b5ccd1a

Browse files
docs: Dark mode styling fix (#548)
* Fixed styles that were overwritten by Mantine globals * Removed old code
1 parent 83569c0 commit b5ccd1a

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

packages/website/docs/.vitepress/theme/components/Examples/BlockNote/ReactBlockNote.module.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,24 @@
22
background: transparent !important;
33
height: 500px;
44
}
5+
6+
/* From Vitepress base styles, to overwrite Mantine globals */
7+
body {
8+
margin: 0;
9+
width: 100%;
10+
min-width: 320px;
11+
min-height: 100vh;
12+
line-height: 24px;
13+
font-family: var(--vp-font-family-base);
14+
font-size: 16px;
15+
font-weight: 400;
16+
color: var(--vp-c-text-1);
17+
background-color: var(--vp-c-bg);
18+
direction: ltr;
19+
font-synthesis: style;
20+
text-rendering: optimizeLegibility;
21+
-webkit-font-smoothing: antialiased;
22+
-moz-osx-font-smoothing: grayscale;
23+
}
24+
25+

packages/website/docs/demoUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ export const getStyles = (isDark: Ref<boolean>): string => `body {
1414
-webkit-tap-highlight-color: transparent;
1515
-webkit-touch-callout: none;
1616
17-
background-color: ${isDark ? "#151515" : "white"};
17+
background-color: ${isDark ? "#151515" : "white"} !important;
1818
}`;

0 commit comments

Comments
 (0)