use different fonts
This commit is contained in:
@ -1,34 +1,34 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Victor Mono";
|
font-family: "IBM Plex Mono";
|
||||||
src: url("woff2/VictorMono-Regular.woff2") format("woff2"),
|
src: url("woff2/IBMPlexMono-Regular.woff2") format("woff2"),
|
||||||
url("woff/VictorMono-Regular.woff") format("woff");
|
url("woff/IBMPlexMono-Regular.woff") format("woff");
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Victor Mono";
|
font-family: "IBM PLex Mono";
|
||||||
src: url("woff2/VictorMono-Italic.woff2") format("woff2"),
|
src: url("woff2/IBMPlexMono-Italic.woff2") format("woff2"),
|
||||||
url("woff/VictorMono-Italic.woff") format("woff");
|
url("woff/IBMPlexMono-Italic.woff") format("woff");
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Victor Mono";
|
font-family: "IBM PLex Mono";
|
||||||
src: url("woff2/VictorMono-Bold.woff2") format("woff2"),
|
src: url("woff2/IBMPlexMono-Bold.woff2") format("woff2"),
|
||||||
url("woff/VictorMono-Bold.woff") format("woff");
|
url("woff/IBMPlexMono-Bold.woff") format("woff");
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Victor Mono";
|
font-family: "IBM Plex Mono";
|
||||||
src: url("woff2/VictorMono-BoldItalic.woff2") format("woff2"),
|
src: url("woff2/IBMPlexMono-BoldItalic.woff2") format("woff2"),
|
||||||
url("woff/VictorMono-BoldItalic.woff") format("woff");
|
url("woff/IBMPlexMono-BoldItalic.woff") format("woff");
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
|||||||
BIN
fonts/woff/IBMPlexMono-Bold.woff
Normal file
BIN
fonts/woff/IBMPlexMono-Bold.woff
Normal file
Binary file not shown.
BIN
fonts/woff/IBMPlexMono-BoldItalic.woff
Normal file
BIN
fonts/woff/IBMPlexMono-BoldItalic.woff
Normal file
Binary file not shown.
BIN
fonts/woff/IBMPlexMono-Italic.woff
Normal file
BIN
fonts/woff/IBMPlexMono-Italic.woff
Normal file
Binary file not shown.
BIN
fonts/woff/IBMPlexMono-Regular.woff
Normal file
BIN
fonts/woff/IBMPlexMono-Regular.woff
Normal file
Binary file not shown.
BIN
fonts/woff2/IBMPlexMono-Bold.woff2
Normal file
BIN
fonts/woff2/IBMPlexMono-Bold.woff2
Normal file
Binary file not shown.
BIN
fonts/woff2/IBMPlexMono-BoldItalic.woff2
Normal file
BIN
fonts/woff2/IBMPlexMono-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
fonts/woff2/IBMPlexMono-Italic.woff2
Normal file
BIN
fonts/woff2/IBMPlexMono-Italic.woff2
Normal file
Binary file not shown.
BIN
fonts/woff2/IBMPlexMono-Regular.woff2
Normal file
BIN
fonts/woff2/IBMPlexMono-Regular.woff2
Normal file
Binary file not shown.
@ -12,7 +12,7 @@
|
|||||||
<style>
|
<style>
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Victor Mono";
|
font-family: "Arial";
|
||||||
background-color: #111827;
|
background-color: #111827;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { tags as t } from "@lezer/highlight";
|
|||||||
|
|
||||||
const base00 = "#262626",
|
const base00 = "#262626",
|
||||||
base01 = "#3B4252",
|
base01 = "#3B4252",
|
||||||
base02 = "#FEFEFE",
|
base02 = "#BBBBBB",
|
||||||
base03 = "#4C566A",
|
base03 = "#4C566A",
|
||||||
base04 = "#D8DEE9",
|
base04 = "#D8DEE9",
|
||||||
base05 = "#E5E9F0",
|
base05 = "#E5E9F0",
|
||||||
@ -13,9 +13,9 @@ const base00 = "#262626",
|
|||||||
base_red = "#BF616A",
|
base_red = "#BF616A",
|
||||||
base_deeporange = "#D08770",
|
base_deeporange = "#D08770",
|
||||||
base_pink = "#B48EAD",
|
base_pink = "#B48EAD",
|
||||||
base_yellow = "#EBCB8B",
|
base_cyan = "#FBCF8B",
|
||||||
|
base_yellow = "#88C0D0",
|
||||||
base_orange = "#D08770",
|
base_orange = "#D08770",
|
||||||
base_cyan = "#88C0D0",
|
|
||||||
base_indigo = "#5E81AC",
|
base_indigo = "#5E81AC",
|
||||||
base_purple = "#B48EAD",
|
base_purple = "#B48EAD",
|
||||||
base_green = "#A3BE8C",
|
base_green = "#A3BE8C",
|
||||||
@ -23,7 +23,7 @@ const base00 = "#262626",
|
|||||||
|
|
||||||
const invalid = base_red,
|
const invalid = base_red,
|
||||||
darkBackground = "#fdf6e3",
|
darkBackground = "#fdf6e3",
|
||||||
highlightBackground = "#454545",
|
highlightBackground = "#252525",
|
||||||
// background = base00,
|
// background = base00,
|
||||||
tooltipBackground = base01,
|
tooltipBackground = base01,
|
||||||
cursor = base04;
|
cursor = base04;
|
||||||
@ -36,23 +36,24 @@ export const toposDarkTheme = EditorView.theme(
|
|||||||
// backgroundColor: background,
|
// backgroundColor: background,
|
||||||
backgroundColor: "transparent",
|
backgroundColor: "transparent",
|
||||||
fontSize: "24px",
|
fontSize: "24px",
|
||||||
fontFamily: "'Victor Mono', monospace",
|
fontFamily: "IBM Plex Mono",
|
||||||
},
|
},
|
||||||
".cm-content": {
|
".cm-content": {
|
||||||
caretColor: cursor,
|
caretColor: cursor,
|
||||||
fontFamily: "'Victor Mono', monospace",
|
fontFamily: "IBM Plex Mono",
|
||||||
|
},
|
||||||
|
".cm-cursor, .cm-dropCursor": {
|
||||||
|
borderLeftColor: cursor,
|
||||||
|
},
|
||||||
|
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":
|
||||||
|
{
|
||||||
|
backgroundColor: base00,
|
||||||
|
border: `0.5px solid ${base00}`,
|
||||||
|
},
|
||||||
|
".cm-panels": {
|
||||||
|
backgroundColor: darkBackground,
|
||||||
|
color: base05,
|
||||||
},
|
},
|
||||||
".cm-cursor, .cm-dropCursor": {
|
|
||||||
borderLeftColor: cursor,
|
|
||||||
},
|
|
||||||
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": {
|
|
||||||
backgroundColor: base00,
|
|
||||||
border: `0.5px solid ${base00}`,
|
|
||||||
},
|
|
||||||
".cm-panels": {
|
|
||||||
backgroundColor: darkBackground,
|
|
||||||
color: base05,
|
|
||||||
},
|
|
||||||
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
|
".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
|
||||||
".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
|
".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
|
||||||
".cm-searchMatch": {
|
".cm-searchMatch": {
|
||||||
@ -72,7 +73,7 @@ export const toposDarkTheme = EditorView.theme(
|
|||||||
|
|
||||||
"&.cm-focused .cm-matchingBracket": {
|
"&.cm-focused .cm-matchingBracket": {
|
||||||
color: base02,
|
color: base02,
|
||||||
outline: `1px solid ${base02}`,
|
// outline: `1px solid ${base02}`,
|
||||||
},
|
},
|
||||||
|
|
||||||
"&.cm-focused .cm-nonmatchingBracket": {
|
"&.cm-focused .cm-nonmatchingBracket": {
|
||||||
|
|||||||
Reference in New Issue
Block a user