Skip to content

Commit

Permalink
fix: declare css variable for font in excalidraw so its available in …
Browse files Browse the repository at this point in the history
…host (excalidraw#6160)

declar css variable for font in excalidraw so its available in host
  • Loading branch information
ad1992 authored Jan 25, 2023
1 parent 1db078a commit cf38c0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@
body,
html {
margin: 0;
--ui-font: Assistant, system-ui, BlinkMacSystemFont, -apple-system,
Segoe UI, Roboto, Helvetica, Arial, sans-serif;
font-family: var(--ui-font);
-webkit-text-size-adjust: 100%;

width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions src/css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
}

.excalidraw {
--ui-font: Assistant, system-ui, BlinkMacSystemFont, -apple-system, Segoe UI,
Roboto, Helvetica, Arial, sans-serif;
font-family: var(--ui-font);

position: relative;
overflow: hidden;
color: var(--text-primary-color);
Expand Down

0 comments on commit cf38c0f

Please sign in to comment.