forked from vhaudiquet/rhema-together
feat(web): bundle Fira Code Nerd Font for the terminal
Use Fira Code Nerd Font Mono in the monospace UI, including the terminal. The font carries Nerd Font glyphs for prompts and tools, and Fira Code's contextual ligatures apply in xterm's DOM renderer because it groups same-style cells into spans. The terminal waits for the regular and bold faces before opening so xterm measures cell widths with the final font.
This commit is contained in:
1 parent
05660a244b
commit
e579653f75
6 files changed
+155
-3
No files matched your search
@@ -1,3 +1,19 @@
|
||||
@font-face {
|
||||
font-family: "FiraCode Nerd Font Mono";
|
||||
src: url("../fonts/FiraCodeNerdFontMono-Regular.woff2") format("woff2");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "FiraCode Nerd Font Mono";
|
||||
src: url("../fonts/FiraCodeNerdFontMono-Bold.woff2") format("woff2");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
--bg: #f7f6f3;
|
||||
@@ -26,7 +42,7 @@
|
||||
--member-8: #5a6a3f;
|
||||
|
||||
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
||||
--font-mono: "FiraCode Nerd Font Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
||||
|
||||
--fs-small: 12px;
|
||||
--fs-meta: 13px;
|
||||
@@ -534,6 +550,16 @@ button {
|
||||
tab-size: 2;
|
||||
}
|
||||
|
||||
.code-block,
|
||||
.viewer-code,
|
||||
.git-strip pre,
|
||||
.tool-args,
|
||||
.tool-name,
|
||||
.terminal-host .xterm-rows {
|
||||
font-variant-ligatures: contextual common-ligatures;
|
||||
font-feature-settings: "calt" 1, "liga" 1;
|
||||
}
|
||||
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
|
||||
Reference in new issue
Block a user