mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-23 23:10:17 +05:30
feat(monospace): add --font-mono-active / --font-mono-feature tokens
Body classes (.mono-fira, .mono-ligatures-on) flip the tokens for live switching without re-rendering.
This commit is contained in:
@@ -982,3 +982,20 @@ body.theme-concrete-warm .line-numbers {
|
|||||||
background: #f0ebe4;
|
background: #f0ebe4;
|
||||||
color: #9a9696;
|
color: #9a9696;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Monospace font + ligature toggles — driven by body classes from renderer */
|
||||||
|
body.mono-jetbrains {
|
||||||
|
--font-mono-active: 'JetBrains Mono', monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.mono-fira {
|
||||||
|
--font-mono-active: 'Fira Code', monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.mono-ligatures-on {
|
||||||
|
--font-mono-feature: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.mono-ligatures-off {
|
||||||
|
--font-mono-feature: 'liga' 0, 'calt' 0, 'dlig' 0;
|
||||||
|
}
|
||||||
|
|||||||
@@ -95,6 +95,8 @@
|
|||||||
|
|
||||||
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||||
--font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Courier New', monospace;
|
--font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Courier New', monospace;
|
||||||
|
--font-mono-active: 'JetBrains Mono', monospace;
|
||||||
|
--font-mono-feature: 'liga' 0, 'calt' 0, 'dlig' 0;
|
||||||
|
|
||||||
--text-xs: 0.75rem;
|
--text-xs: 0.75rem;
|
||||||
--text-sm: 0.875rem;
|
--text-sm: 0.875rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user