8000 fix: move font settings to Editor component · composify-js/composify@ac394eb · GitHub
[go: up one dir, main page]

Skip to content

Commit ac394eb

Browse files
committed
fix: move font settings to Editor component
1 parent 024b668 commit ac394eb

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

packages/react/src/editor/Editor/Editor.module.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
flex: 1;
33
display: flex;
44
height: 100vh;
5+
6+
font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue;
7+
line-height: 1.4;
8+
9+
font-synthesis: none;
10+
text-rendering: optimizeLegibility;
11+
-webkit-font-smoothing: antialiased;
12+
-moz-osx-font-smoothing: grayscale;
513
}
614

715
.Editor-Divider {

packages/react/src/editor/Theme/Theme.module.css

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,3 @@
4242
--composify-palette-surface-bright: rgb(249, 249, 255);
4343
--composify-palette-surface-container-lowest: rgb(255, 255, 255);
4444
}
45-
46-
* {
47-
font-family:
48-
system-ui,
49-
-apple-system,
50-
BlinkMacSystemFont,
51-
Segoe UI,
52-
Roboto,
53-
Noto Sans,
54-
Ubuntu,
55-
Cantarell,
56-
Helvetica Neue;
57-
line-height: 1.4;
58-
59-
font-synthesis: none;
60-
text-rendering: optimizeLegibility;
61-
-webkit-font-smoothing: antialiased;
62-
-moz-osx-font-smoothing: grayscale;
63-
}

0 commit comments

Comments
 (0)
0