summaryrefslogtreecommitdiff
path: root/llama.cpp/tools/server/webui/src/styles/katex-custom.scss
diff options
context:
space:
mode:
Diffstat (limited to 'llama.cpp/tools/server/webui/src/styles/katex-custom.scss')
-rw-r--r--llama.cpp/tools/server/webui/src/styles/katex-custom.scss13
1 files changed, 13 insertions, 0 deletions
diff --git a/llama.cpp/tools/server/webui/src/styles/katex-custom.scss b/llama.cpp/tools/server/webui/src/styles/katex-custom.scss
new file mode 100644
index 0000000..9c8b96e
--- /dev/null
+++ b/llama.cpp/tools/server/webui/src/styles/katex-custom.scss
@@ -0,0 +1,13 @@
+// Override KaTeX SCSS variables to disable ttf and woff fonts
+// Only use woff2 format which is embedded in the bundle
+$use-woff2: true;
+$use-woff: false;
+$use-ttf: false;
+
+// Use Vite alias for font folder
+$font-folder: 'katex-fonts';
+
+// Import KaTeX SCSS with overridden variables
+// Note: @import is deprecated but required because KaTeX uses @import internally
+// The deprecation warnings are from KaTeX's code and cannot be avoided
+@import 'katex/src/styles/katex.scss';