Skip to content

Commit

Permalink
Add font
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Aug 11, 2024
1 parent 7dd980c commit 6b5abf0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const buildmap = {
},
loader: {
".svg": "dataurl",
".woff2": "file",
},
plugins: [
createRebuildLoggerPlugin("shinylive and Editor"),
Expand Down
14 changes: 11 additions & 3 deletions src/Components/App.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
@font-face {
font-family: "Source Sans Pro";
src: url("../fonts/SourceSansPro-Regular.otf.woff2") format("woff2");
font-weight: normal;
font-style: normal;
}

:root {
--colors-grey: grey;
--colors-blue: #007BC2;
--colors-blue: #007bc2;
--colors-blue-dark: hsl(207, 69%, 35%);
--colors-red: #C10000;
--colors-red: #c10000;
--colors-white: white;
--colors-bg: white;
--colors-fg: #333;

--font-face: "Source Sans Pro", Arial, Helvetica, sans-serif;
--font-size: 14px;
--font-mono-face: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
--font-mono-face: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
monospace;
--font-mono-size: 12px;

--panel-roundness: 5px;
Expand Down
Binary file added src/fonts/SourceSansPro-Regular.otf.woff2
Binary file not shown.

0 comments on commit 6b5abf0

Please sign in to comment.