aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaster4385 <[email protected]>2024-02-21 23:18:49 +0530
committerBlaster4385 <[email protected]>2024-04-30 11:10:37 +0530
commit2c980043fef1f0ff2f5cd50cb3e79ab1ba8044a4 (patch)
treef1f71f8102eaf10a26bf982ba8f9942c6b22d146
parent3fb5eeea185fc033dbd145efab5093b5ccb10d3b (diff)
feat: switch editor font to jetbrains mono
-rw-r--r--client/index.html2
-rw-r--r--client/src/components/Editor/Editor.module.css2
-rw-r--r--client/src/components/prism-themes/prism-gruvbox-dark.css1
-rw-r--r--client/src/components/prism-themes/prism-line-numbers.css2
4 files changed, 3 insertions, 4 deletions
diff --git a/client/index.html b/client/index.html
index cbf9e2d..f3f58ca 100644
--- a/client/index.html
+++ b/client/index.html
@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Minibin</title>
</head>
diff --git a/client/src/components/Editor/Editor.module.css b/client/src/components/Editor/Editor.module.css
index 992f67f..702847d 100644
--- a/client/src/components/Editor/Editor.module.css
+++ b/client/src/components/Editor/Editor.module.css
@@ -32,7 +32,7 @@
width: calc(100% - 60.8px);
height: 100%;
font-size: 1rem;
- font-family: "Roboto Mono", monospace;
+ font-family: "JetBrains Mono", monospace;
line-height: 1.5rem;
resize: none;
border: none;
diff --git a/client/src/components/prism-themes/prism-gruvbox-dark.css b/client/src/components/prism-themes/prism-gruvbox-dark.css
index 05804ef..bfdd903 100644
--- a/client/src/components/prism-themes/prism-gruvbox-dark.css
+++ b/client/src/components/prism-themes/prism-gruvbox-dark.css
@@ -11,7 +11,6 @@
code[class*="language-"],
pre[class*="language-"] {
color: #ebdbb2; /* fg1 / fg */
- font-family: Consolas, Monaco, "Andale Mono", monospace;
direction: ltr;
text-align: left;
white-space: pre;
diff --git a/client/src/components/prism-themes/prism-line-numbers.css b/client/src/components/prism-themes/prism-line-numbers.css
index 4537d9d..4532b29 100644
--- a/client/src/components/prism-themes/prism-line-numbers.css
+++ b/client/src/components/prism-themes/prism-line-numbers.css
@@ -15,7 +15,7 @@ pre[class*="language-"],
code[class*="language-"] {
/* there might be some slight offsets,
depending on what font you select */
- font-family: "Roboto Mono", monospace;
+ font-family: "JetBrains Mono", monospace;
}
/* from Prism */