From 167dfc38478292c3b49c8f35302ce21ad9601b16 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Fri, 24 Feb 2023 18:28:39 +0530 Subject: [PATCH] chore: add fonts to ui package [skip ci] --- packages/hoppscotch-ui/vite.config.ts | 10 ++++++++++ packages/hoppscotch-ui/windi.config.ts | 1 + 2 files changed, 11 insertions(+) diff --git a/packages/hoppscotch-ui/vite.config.ts b/packages/hoppscotch-ui/vite.config.ts index cd5a15099..86ff5fb15 100644 --- a/packages/hoppscotch-ui/vite.config.ts +++ b/packages/hoppscotch-ui/vite.config.ts @@ -4,6 +4,7 @@ import path from "path" import Icons from "unplugin-icons/vite" import { defineConfig } from "vite" import WindiCSS from "vite-plugin-windicss" +import { VitePluginFonts } from "vite-plugin-fonts" export default defineConfig({ plugins: [ @@ -19,6 +20,15 @@ export default defineConfig({ Icons({ compiler: "vue3" }), + VitePluginFonts({ + google: { + families: [ + "Inter:wght@400;500;600;700;800", + "Roboto+Mono:wght@400;500", + "Material+Icons", + ], + }, + }), ], // to process SFC build: { sourcemap: true, diff --git a/packages/hoppscotch-ui/windi.config.ts b/packages/hoppscotch-ui/windi.config.ts index 8e391aecb..34716006a 100644 --- a/packages/hoppscotch-ui/windi.config.ts +++ b/packages/hoppscotch-ui/windi.config.ts @@ -20,6 +20,7 @@ export default defineConfig({ lowerSecondaryStickyFold: "var(--lower-secondary-sticky-fold)", lowerTertiaryStickyFold: "var(--lower-tertiary-sticky-fold)", sidebarPrimaryStickyFold: "var(--sidebar-primary-sticky-fold)", + sidebarSecondaryStickyFold: "var(--line-height-body)", }, colors: { primary: "var(--primary-color)",