From c53bc4ddf9808a8bb6916bbe3cb31935d33a2420 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Thu, 2 Apr 2020 10:10:10 -0700 Subject: [PATCH] Enforcing linting of LESS (#9356) * linting some LESS * enforce linting * moving font binaries out of stylesheets to fonts folder. * renaming font specimen sheet directory. --- .../fonts/FiraCode/specimen.less | 0 .../fonts/FiraCode/woff/FiraCode-Bold.woff | Bin .../fonts/FiraCode/woff/FiraCode-Light.woff | Bin .../fonts/FiraCode/woff/FiraCode-Medium.woff | Bin .../fonts/FiraCode/woff/FiraCode-Regular.woff | Bin .../fonts/FiraCode/woff/FiraCode-Retina.woff | Bin .../fonts/FiraCode/woff/FiraCode-VF.woff | Bin .../fonts/FiraCode/woff2/FiraCode-Bold.woff2 | Bin .../fonts/FiraCode/woff2/FiraCode-Light.woff2 | Bin .../FiraCode/woff2/FiraCode-Medium.woff2 | Bin .../FiraCode/woff2/FiraCode-Regular.woff2 | Bin .../FiraCode/woff2/FiraCode-Retina.woff2 | Bin .../fonts/FiraCode/woff2/FiraCode-VF.woff2 | Bin .../fonts/InterUI/Inter-Black.woff | Bin .../fonts/InterUI/Inter-Black.woff2 | Bin .../fonts/InterUI/Inter-BlackItalic.woff | Bin .../fonts/InterUI/Inter-BlackItalic.woff2 | Bin .../fonts/InterUI/Inter-Bold.woff | Bin .../fonts/InterUI/Inter-Bold.woff2 | Bin .../fonts/InterUI/Inter-BoldItalic.woff | Bin .../fonts/InterUI/Inter-BoldItalic.woff2 | Bin .../fonts/InterUI/Inter-ExtraBold.woff | Bin .../fonts/InterUI/Inter-ExtraBold.woff2 | Bin .../fonts/InterUI/Inter-ExtraBoldItalic.woff | Bin .../fonts/InterUI/Inter-ExtraBoldItalic.woff2 | Bin .../fonts/InterUI/Inter-ExtraLight.woff | Bin .../fonts/InterUI/Inter-ExtraLight.woff2 | Bin .../fonts/InterUI/Inter-ExtraLightItalic.woff | Bin .../InterUI/Inter-ExtraLightItalic.woff2 | Bin .../fonts/InterUI/Inter-Italic.woff | Bin .../fonts/InterUI/Inter-Italic.woff2 | Bin .../fonts/InterUI/Inter-Light.woff | Bin .../fonts/InterUI/Inter-Light.woff2 | Bin .../fonts/InterUI/Inter-LightItalic.woff | Bin .../fonts/InterUI/Inter-LightItalic.woff2 | Bin .../fonts/InterUI/Inter-Medium.woff | Bin .../fonts/InterUI/Inter-Medium.woff2 | Bin .../fonts/InterUI/Inter-MediumItalic.woff | Bin .../fonts/InterUI/Inter-MediumItalic.woff2 | Bin .../fonts/InterUI/Inter-Regular.woff | Bin .../fonts/InterUI/Inter-Regular.woff2 | Bin .../fonts/InterUI/Inter-SemiBold.woff | Bin .../fonts/InterUI/Inter-SemiBold.woff2 | Bin .../fonts/InterUI/Inter-SemiBoldItalic.woff | Bin .../fonts/InterUI/Inter-SemiBoldItalic.woff2 | Bin .../fonts/InterUI/Inter-Thin.woff | Bin .../fonts/InterUI/Inter-Thin.woff2 | Bin .../fonts/InterUI/Inter-ThinItalic.woff | Bin .../fonts/InterUI/Inter-ThinItalic.woff2 | Bin .../fonts/InterUI/Inter-italic.var.woff2 | Bin .../fonts/InterUI/Inter-roman.var.woff2 | Bin .../fonts/InterUI/Inter.var.woff2 | Bin superset-frontend/package.json | 2 +- .../stylesheets/fonts/InterUI/specimen.less | 210 ---------------- .../less/font_specimens/fira_code.less | 63 +++++ .../less/font_specimens/inter_ui.less | 225 ++++++++++++++++++ superset-frontend/stylesheets/less/fonts.less | 5 +- .../stylesheets/less/variables.less | 12 +- 58 files changed, 299 insertions(+), 218 deletions(-) rename superset-frontend/{stylesheets => }/fonts/FiraCode/specimen.less (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff/FiraCode-Bold.woff (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff/FiraCode-Light.woff (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff/FiraCode-Medium.woff (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff/FiraCode-Regular.woff (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff/FiraCode-Retina.woff (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff/FiraCode-VF.woff (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff2/FiraCode-Bold.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff2/FiraCode-Light.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff2/FiraCode-Medium.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff2/FiraCode-Regular.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff2/FiraCode-Retina.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/FiraCode/woff2/FiraCode-VF.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Black.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Black.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-BlackItalic.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-BlackItalic.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Bold.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Bold.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-BoldItalic.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-BoldItalic.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-ExtraBold.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-ExtraBold.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-ExtraBoldItalic.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-ExtraBoldItalic.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-ExtraLight.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-ExtraLight.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-ExtraLightItalic.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-ExtraLightItalic.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Italic.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Italic.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Light.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Light.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-LightItalic.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-LightItalic.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Medium.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Medium.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-MediumItalic.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-MediumItalic.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Regular.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Regular.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-SemiBold.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-SemiBold.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-SemiBoldItalic.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-SemiBoldItalic.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Thin.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-Thin.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-ThinItalic.woff (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-ThinItalic.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-italic.var.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter-roman.var.woff2 (100%) rename superset-frontend/{stylesheets => }/fonts/InterUI/Inter.var.woff2 (100%) delete mode 100644 superset-frontend/stylesheets/fonts/InterUI/specimen.less create mode 100644 superset-frontend/stylesheets/less/font_specimens/fira_code.less create mode 100644 superset-frontend/stylesheets/less/font_specimens/inter_ui.less diff --git a/superset-frontend/stylesheets/fonts/FiraCode/specimen.less b/superset-frontend/fonts/FiraCode/specimen.less similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/specimen.less rename to superset-frontend/fonts/FiraCode/specimen.less diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-Bold.woff b/superset-frontend/fonts/FiraCode/woff/FiraCode-Bold.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-Bold.woff rename to superset-frontend/fonts/FiraCode/woff/FiraCode-Bold.woff diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-Light.woff b/superset-frontend/fonts/FiraCode/woff/FiraCode-Light.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-Light.woff rename to superset-frontend/fonts/FiraCode/woff/FiraCode-Light.woff diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-Medium.woff b/superset-frontend/fonts/FiraCode/woff/FiraCode-Medium.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-Medium.woff rename to superset-frontend/fonts/FiraCode/woff/FiraCode-Medium.woff diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-Regular.woff b/superset-frontend/fonts/FiraCode/woff/FiraCode-Regular.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-Regular.woff rename to superset-frontend/fonts/FiraCode/woff/FiraCode-Regular.woff diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-Retina.woff b/superset-frontend/fonts/FiraCode/woff/FiraCode-Retina.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-Retina.woff rename to superset-frontend/fonts/FiraCode/woff/FiraCode-Retina.woff diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-VF.woff b/superset-frontend/fonts/FiraCode/woff/FiraCode-VF.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff/FiraCode-VF.woff rename to superset-frontend/fonts/FiraCode/woff/FiraCode-VF.woff diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-Bold.woff2 b/superset-frontend/fonts/FiraCode/woff2/FiraCode-Bold.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-Bold.woff2 rename to superset-frontend/fonts/FiraCode/woff2/FiraCode-Bold.woff2 diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-Light.woff2 b/superset-frontend/fonts/FiraCode/woff2/FiraCode-Light.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-Light.woff2 rename to superset-frontend/fonts/FiraCode/woff2/FiraCode-Light.woff2 diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-Medium.woff2 b/superset-frontend/fonts/FiraCode/woff2/FiraCode-Medium.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-Medium.woff2 rename to superset-frontend/fonts/FiraCode/woff2/FiraCode-Medium.woff2 diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-Regular.woff2 b/superset-frontend/fonts/FiraCode/woff2/FiraCode-Regular.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-Regular.woff2 rename to superset-frontend/fonts/FiraCode/woff2/FiraCode-Regular.woff2 diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-Retina.woff2 b/superset-frontend/fonts/FiraCode/woff2/FiraCode-Retina.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-Retina.woff2 rename to superset-frontend/fonts/FiraCode/woff2/FiraCode-Retina.woff2 diff --git a/superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-VF.woff2 b/superset-frontend/fonts/FiraCode/woff2/FiraCode-VF.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/FiraCode/woff2/FiraCode-VF.woff2 rename to superset-frontend/fonts/FiraCode/woff2/FiraCode-VF.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Black.woff b/superset-frontend/fonts/InterUI/Inter-Black.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Black.woff rename to superset-frontend/fonts/InterUI/Inter-Black.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Black.woff2 b/superset-frontend/fonts/InterUI/Inter-Black.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Black.woff2 rename to superset-frontend/fonts/InterUI/Inter-Black.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-BlackItalic.woff b/superset-frontend/fonts/InterUI/Inter-BlackItalic.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-BlackItalic.woff rename to superset-frontend/fonts/InterUI/Inter-BlackItalic.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-BlackItalic.woff2 b/superset-frontend/fonts/InterUI/Inter-BlackItalic.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-BlackItalic.woff2 rename to superset-frontend/fonts/InterUI/Inter-BlackItalic.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Bold.woff b/superset-frontend/fonts/InterUI/Inter-Bold.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Bold.woff rename to superset-frontend/fonts/InterUI/Inter-Bold.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Bold.woff2 b/superset-frontend/fonts/InterUI/Inter-Bold.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Bold.woff2 rename to superset-frontend/fonts/InterUI/Inter-Bold.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-BoldItalic.woff b/superset-frontend/fonts/InterUI/Inter-BoldItalic.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-BoldItalic.woff rename to superset-frontend/fonts/InterUI/Inter-BoldItalic.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-BoldItalic.woff2 b/superset-frontend/fonts/InterUI/Inter-BoldItalic.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-BoldItalic.woff2 rename to superset-frontend/fonts/InterUI/Inter-BoldItalic.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraBold.woff b/superset-frontend/fonts/InterUI/Inter-ExtraBold.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraBold.woff rename to superset-frontend/fonts/InterUI/Inter-ExtraBold.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraBold.woff2 b/superset-frontend/fonts/InterUI/Inter-ExtraBold.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraBold.woff2 rename to superset-frontend/fonts/InterUI/Inter-ExtraBold.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraBoldItalic.woff b/superset-frontend/fonts/InterUI/Inter-ExtraBoldItalic.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraBoldItalic.woff rename to superset-frontend/fonts/InterUI/Inter-ExtraBoldItalic.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraBoldItalic.woff2 b/superset-frontend/fonts/InterUI/Inter-ExtraBoldItalic.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraBoldItalic.woff2 rename to superset-frontend/fonts/InterUI/Inter-ExtraBoldItalic.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraLight.woff b/superset-frontend/fonts/InterUI/Inter-ExtraLight.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraLight.woff rename to superset-frontend/fonts/InterUI/Inter-ExtraLight.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraLight.woff2 b/superset-frontend/fonts/InterUI/Inter-ExtraLight.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraLight.woff2 rename to superset-frontend/fonts/InterUI/Inter-ExtraLight.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraLightItalic.woff b/superset-frontend/fonts/InterUI/Inter-ExtraLightItalic.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraLightItalic.woff rename to superset-frontend/fonts/InterUI/Inter-ExtraLightItalic.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraLightItalic.woff2 b/superset-frontend/fonts/InterUI/Inter-ExtraLightItalic.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-ExtraLightItalic.woff2 rename to superset-frontend/fonts/InterUI/Inter-ExtraLightItalic.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Italic.woff b/superset-frontend/fonts/InterUI/Inter-Italic.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Italic.woff rename to superset-frontend/fonts/InterUI/Inter-Italic.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Italic.woff2 b/superset-frontend/fonts/InterUI/Inter-Italic.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Italic.woff2 rename to superset-frontend/fonts/InterUI/Inter-Italic.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Light.woff b/superset-frontend/fonts/InterUI/Inter-Light.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Light.woff rename to superset-frontend/fonts/InterUI/Inter-Light.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Light.woff2 b/superset-frontend/fonts/InterUI/Inter-Light.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Light.woff2 rename to superset-frontend/fonts/InterUI/Inter-Light.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-LightItalic.woff b/superset-frontend/fonts/InterUI/Inter-LightItalic.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-LightItalic.woff rename to superset-frontend/fonts/InterUI/Inter-LightItalic.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-LightItalic.woff2 b/superset-frontend/fonts/InterUI/Inter-LightItalic.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-LightItalic.woff2 rename to superset-frontend/fonts/InterUI/Inter-LightItalic.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Medium.woff b/superset-frontend/fonts/InterUI/Inter-Medium.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Medium.woff rename to superset-frontend/fonts/InterUI/Inter-Medium.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Medium.woff2 b/superset-frontend/fonts/InterUI/Inter-Medium.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Medium.woff2 rename to superset-frontend/fonts/InterUI/Inter-Medium.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-MediumItalic.woff b/superset-frontend/fonts/InterUI/Inter-MediumItalic.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-MediumItalic.woff rename to superset-frontend/fonts/InterUI/Inter-MediumItalic.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-MediumItalic.woff2 b/superset-frontend/fonts/InterUI/Inter-MediumItalic.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-MediumItalic.woff2 rename to superset-frontend/fonts/InterUI/Inter-MediumItalic.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Regular.woff b/superset-frontend/fonts/InterUI/Inter-Regular.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Regular.woff rename to superset-frontend/fonts/InterUI/Inter-Regular.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Regular.woff2 b/superset-frontend/fonts/InterUI/Inter-Regular.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Regular.woff2 rename to superset-frontend/fonts/InterUI/Inter-Regular.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-SemiBold.woff b/superset-frontend/fonts/InterUI/Inter-SemiBold.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-SemiBold.woff rename to superset-frontend/fonts/InterUI/Inter-SemiBold.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-SemiBold.woff2 b/superset-frontend/fonts/InterUI/Inter-SemiBold.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-SemiBold.woff2 rename to superset-frontend/fonts/InterUI/Inter-SemiBold.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-SemiBoldItalic.woff b/superset-frontend/fonts/InterUI/Inter-SemiBoldItalic.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-SemiBoldItalic.woff rename to superset-frontend/fonts/InterUI/Inter-SemiBoldItalic.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-SemiBoldItalic.woff2 b/superset-frontend/fonts/InterUI/Inter-SemiBoldItalic.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-SemiBoldItalic.woff2 rename to superset-frontend/fonts/InterUI/Inter-SemiBoldItalic.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Thin.woff b/superset-frontend/fonts/InterUI/Inter-Thin.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Thin.woff rename to superset-frontend/fonts/InterUI/Inter-Thin.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-Thin.woff2 b/superset-frontend/fonts/InterUI/Inter-Thin.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-Thin.woff2 rename to superset-frontend/fonts/InterUI/Inter-Thin.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-ThinItalic.woff b/superset-frontend/fonts/InterUI/Inter-ThinItalic.woff similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-ThinItalic.woff rename to superset-frontend/fonts/InterUI/Inter-ThinItalic.woff diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-ThinItalic.woff2 b/superset-frontend/fonts/InterUI/Inter-ThinItalic.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-ThinItalic.woff2 rename to superset-frontend/fonts/InterUI/Inter-ThinItalic.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-italic.var.woff2 b/superset-frontend/fonts/InterUI/Inter-italic.var.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-italic.var.woff2 rename to superset-frontend/fonts/InterUI/Inter-italic.var.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter-roman.var.woff2 b/superset-frontend/fonts/InterUI/Inter-roman.var.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter-roman.var.woff2 rename to superset-frontend/fonts/InterUI/Inter-roman.var.woff2 diff --git a/superset-frontend/stylesheets/fonts/InterUI/Inter.var.woff2 b/superset-frontend/fonts/InterUI/Inter.var.woff2 similarity index 100% rename from superset-frontend/stylesheets/fonts/InterUI/Inter.var.woff2 rename to superset-frontend/fonts/InterUI/Inter.var.woff2 diff --git a/superset-frontend/package.json b/superset-frontend/package.json index 01597d607d628..dbc14ec624f6b 100644 --- a/superset-frontend/package.json +++ b/superset-frontend/package.json @@ -16,7 +16,7 @@ "prod": "node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --mode=production --colors --progress", "build-dev": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=development webpack --mode=development --colors --progress", "build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors --progress", - "lint": "eslint --ignore-path=.eslintignore --ext .js,.jsx,.ts,.tsx .", + "lint": "eslint --ignore-path=.eslintignore --ext .js,.jsx,.ts,.tsx . && prettier --check '{src,stylesheets}/**/*.{css,less,sass,scss}'", "lint-fix": "eslint --fix --ignore-path=.eslintignore --ext .js,.jsx,.ts,tsx . && npm run clean-css", "clean-css": "prettier --write '{src,stylesheets}/**/*.{css,less,sass,scss}'" }, diff --git a/superset-frontend/stylesheets/fonts/InterUI/specimen.less b/superset-frontend/stylesheets/fonts/InterUI/specimen.less deleted file mode 100644 index 4d18941ec236d..0000000000000 --- a/superset-frontend/stylesheets/fonts/InterUI/specimen.less +++ /dev/null @@ -1,210 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 100; - font-display: swap; - src: url("./Inter-Thin.woff2?v=3.12") format("woff2"), - url("./Inter-Thin.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 100; - font-display: swap; - src: url("./Inter-ThinItalic.woff2?v=3.12") format("woff2"), - url("./Inter-ThinItalic.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 200; - font-display: swap; - src: url("./Inter-ExtraLight.woff2?v=3.12") format("woff2"), - url("./Inter-ExtraLight.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 200; - font-display: swap; - src: url("./Inter-ExtraLightItalic.woff2?v=3.12") format("woff2"), - url("./Inter-ExtraLightItalic.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 300; - font-display: swap; - src: url("./Inter-Light.woff2?v=3.12") format("woff2"), - url("./Inter-Light.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 300; - font-display: swap; - src: url("./Inter-LightItalic.woff2?v=3.12") format("woff2"), - url("./Inter-LightItalic.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url("./Inter-Regular.woff2?v=3.12") format("woff2"), - url("./Inter-Regular.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 400; - font-display: swap; - src: url("./Inter-Italic.woff2?v=3.12") format("woff2"), - url("./Inter-Italic.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 500; - font-display: swap; - src: url("./Inter-Medium.woff2?v=3.12") format("woff2"), - url("./Inter-Medium.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 500; - font-display: swap; - src: url("./Inter-MediumItalic.woff2?v=3.12") format("woff2"), - url("./Inter-MediumItalic.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 600; - font-display: swap; - src: url("./Inter-SemiBold.woff2?v=3.12") format("woff2"), - url("./Inter-SemiBold.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 600; - font-display: swap; - src: url("./Inter-SemiBoldItalic.woff2?v=3.12") format("woff2"), - url("./Inter-SemiBoldItalic.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url("./Inter-Bold.woff2?v=3.12") format("woff2"), - url("./Inter-Bold.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 700; - font-display: swap; - src: url("./Inter-BoldItalic.woff2?v=3.12") format("woff2"), - url("./Inter-BoldItalic.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 800; - font-display: swap; - src: url("./Inter-ExtraBold.woff2?v=3.12") format("woff2"), - url("./Inter-ExtraBold.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 800; - font-display: swap; - src: url("./Inter-ExtraBoldItalic.woff2?v=3.12") format("woff2"), - url("./Inter-ExtraBoldItalic.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: normal; - font-weight: 900; - font-display: swap; - src: url("./Inter-Black.woff2?v=3.12") format("woff2"), - url("./Inter-Black.woff?v=3.12") format("woff"); -} -@font-face { - font-family: 'Inter'; - font-style: italic; - font-weight: 900; - font-display: swap; - src: url("./Inter-BlackItalic.woff2?v=3.12") format("woff2"), - url("./Inter-BlackItalic.woff?v=3.12") format("woff"); -} - -/* ------------------------------------------------------- -Variable font. -Usage: - - html { font-family: 'Inter', sans-serif; } - @supports (font-variation-settings: normal) { - html { font-family: 'Inter var', sans-serif; } - } -*/ -@font-face { - font-family: 'Inter var'; - font-weight: 100 900; - font-display: swap; - font-style: normal; - font-named-instance: 'Regular'; - src: url("./Inter-roman.var.woff2?v=3.12") format("woff2"); -} -@font-face { - font-family: 'Inter var'; - font-weight: 100 900; - font-display: swap; - font-style: italic; - font-named-instance: 'Italic'; - src: url("./Inter-italic.var.woff2?v=3.12") format("woff2"); -} - -/* -------------------------------------------------------------------------- -[EXPERIMENTAL] Multi-axis, single variable font. - -Slant axis is not yet widely supported (as of February 2019) and thus this -multi-axis single variable font is opt-in rather than the default. - -When using this, you will probably need to set font-variation-settings -explicitly, e.g. - - * { font-variation-settings: "slnt" 0deg } - .italic { font-variation-settings: "slnt" 10deg } - -*/ -@font-face { - font-family: 'Inter var experimental'; - font-weight: 100 900; - font-display: swap; - font-style: oblique 0deg 10deg; - src: url("./Inter.var.woff2?v=3.12") format("woff2"); -} diff --git a/superset-frontend/stylesheets/less/font_specimens/fira_code.less b/superset-frontend/stylesheets/less/font_specimens/fira_code.less new file mode 100644 index 0000000000000..6b310da7d3739 --- /dev/null +++ b/superset-frontend/stylesheets/less/font_specimens/fira_code.less @@ -0,0 +1,63 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +@font-face { + font-family: 'Fira Code'; + src: url('../../../fonts/FiraCode/woff2/FiraCode-Light.woff2') format('woff2'), + url('../../../fonts/FiraCode/woff/FiraCode-Light.woff') format('woff'); + font-weight: 300; + font-style: normal; +} + +@font-face { + font-family: 'Fira Code'; + src: url('../../../fonts/FiraCode/woff2/FiraCode-Regular.woff2') + format('woff2'), + url('../../../fonts/FiraCode/woff/FiraCode-Regular.woff') format('woff'); + font-weight: 400; + font-style: normal; +} + +@font-face { + font-family: 'Fira Code'; + src: url('../../../fonts/FiraCode/woff2/FiraCode-Medium.woff2') + format('woff2'), + url('../../../fonts/FiraCode/woff/FiraCode-Medium.woff') format('woff'); + font-weight: 500; + font-style: normal; +} + +@font-face { + font-family: 'Fira Code'; + src: url('../../../fonts/FiraCode/woff2/FiraCode-Bold.woff2') format('woff2'), + url('../../../fonts/FiraCode/woff/FiraCode-Bold.woff') format('woff'); + font-weight: 700; + font-style: normal; +} + +@font-face { + font-family: 'Fira Code VF'; + src: url('../../../fonts/FiraCode/woff2/FiraCode-VF.woff2') + format('woff2-variations'), + url('../../../fonts/FiraCode/woff/FiraCode-VF.woff') + format('woff-variations'); + /* font-weight requires a range: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide#Using_a_variable_font_font-face_changes */ + font-weight: 300 700; + font-style: normal; +} diff --git a/superset-frontend/stylesheets/less/font_specimens/inter_ui.less b/superset-frontend/stylesheets/less/font_specimens/inter_ui.less new file mode 100644 index 0000000000000..26a56e20ac1f7 --- /dev/null +++ b/superset-frontend/stylesheets/less/font_specimens/inter_ui.less @@ -0,0 +1,225 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 100; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-Thin.woff2?v=3.12') format('woff2'), + url('../../../fonts/InterUI/Inter-Thin.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 100; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-ThinItalic.woff2?v=3.12') + format('woff2'), + url('../../../fonts/InterUI/Inter-ThinItalic.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 200; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-ExtraLight.woff2?v=3.12') + format('woff2'), + url('../../../fonts/InterUI/Inter-ExtraLight.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 200; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-ExtraLightItalic.woff2?v=3.12') + format('woff2'), + url('../../../fonts/InterUI/Inter-ExtraLightItalic.woff?v=3.12') + format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 300; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-Light.woff2?v=3.12') format('woff2'), + url('../../../fonts/InterUI/Inter-Light.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 300; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-LightItalic.woff2?v=3.12') + format('woff2'), + url('../../../fonts/InterUI/Inter-LightItalic.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-Regular.woff2?v=3.12') format('woff2'), + url('../../../fonts/InterUI/Inter-Regular.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-Italic.woff2?v=3.12') format('woff2'), + url('../../../fonts/InterUI/Inter-Italic.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-Medium.woff2?v=3.12') format('woff2'), + url('../../../fonts/InterUI/Inter-Medium.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 500; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-MediumItalic.woff2?v=3.12') + format('woff2'), + url('../../../fonts/InterUI/Inter-MediumItalic.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-SemiBold.woff2?v=3.12') format('woff2'), + url('../../../fonts/InterUI/Inter-SemiBold.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 600; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-SemiBoldItalic.woff2?v=3.12') + format('woff2'), + url('../../../fonts/InterUI/Inter-SemiBoldItalic.woff?v=3.12') + format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-Bold.woff2?v=3.12') format('woff2'), + url('../../../fonts/InterUI/Inter-Bold.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-BoldItalic.woff2?v=3.12') + format('woff2'), + url('../../../fonts/InterUI/Inter-BoldItalic.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 800; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-ExtraBold.woff2?v=3.12') + format('woff2'), + url('../../../fonts/InterUI/Inter-ExtraBold.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 800; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-ExtraBoldItalic.woff2?v=3.12') + format('woff2'), + url('../../../fonts/InterUI/Inter-ExtraBoldItalic.woff?v=3.12') + format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 900; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-Black.woff2?v=3.12') format('woff2'), + url('../../../fonts/InterUI/Inter-Black.woff?v=3.12') format('woff'); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 900; + font-display: swap; + src: url('../../../fonts/InterUI/Inter-BlackItalic.woff2?v=3.12') + format('woff2'), + url('../../../fonts/InterUI/Inter-BlackItalic.woff?v=3.12') format('woff'); +} + +/* ------------------------------------------------------- +Variable font. +Usage: + + html { font-family: 'Inter', sans-serif; } + @supports (font-variation-settings: normal) { + html { font-family: 'Inter var', sans-serif; } + } +*/ +@font-face { + font-family: 'Inter var'; + font-weight: 100 900; + font-display: swap; + font-style: normal; + font-named-instance: 'Regular'; + src: url('../../../fonts/InterUI/Inter-roman.var.woff2?v=3.12') + format('woff2'); +} +@font-face { + font-family: 'Inter var'; + font-weight: 100 900; + font-display: swap; + font-style: italic; + font-named-instance: 'Italic'; + src: url('../../../fonts/InterUI/Inter-italic.var.woff2?v=3.12') + format('woff2'); +} + +/* -------------------------------------------------------------------------- +[EXPERIMENTAL] Multi-axis, single variable font. + +Slant axis is not yet widely supported (as of February 2019) and thus this +multi-axis single variable font is opt-in rather than the default. + +When using this, you will probably need to set font-variation-settings +explicitly, e.g. + + * { font-variation-settings: "slnt" 0deg } + .italic { font-variation-settings: "slnt" 10deg } + +*/ +@font-face { + font-family: 'Inter var experimental'; + font-weight: 100 900; + font-display: swap; + font-style: oblique 0deg 10deg; + src: url('../../../fonts/InterUI/Inter.var.woff2?v=3.12') format('woff2'); +} diff --git a/superset-frontend/stylesheets/less/fonts.less b/superset-frontend/stylesheets/less/fonts.less index f07313472c5bd..822763c43815f 100644 --- a/superset-frontend/stylesheets/less/fonts.less +++ b/superset-frontend/stylesheets/less/fonts.less @@ -17,7 +17,6 @@ * under the License. */ - /*************************************************************************/ /* USAGE NOTES */ /* Each typeface used in Superset should have local webfont files. */ @@ -26,7 +25,7 @@ /*************************************************************************/ /******************************* Inter UI ********************************/ -@import '../fonts/InterUI/specimen.less'; +@import './font_specimens/inter_ui.less'; /******************************* Fira Code ********************************/ -@import '../fonts/FiraCode/specimen.less'; +@import './font_specimens/fira_code.less'; diff --git a/superset-frontend/stylesheets/less/variables.less b/superset-frontend/stylesheets/less/variables.less index 0cfbc175981e0..596cf15c438fa 100644 --- a/superset-frontend/stylesheets/less/variables.less +++ b/superset-frontend/stylesheets/less/variables.less @@ -156,12 +156,16 @@ @use-ligatures: false; // setting up OTF settings based on @use-ligatures: -.set-otf-options(@use-ligatures); -.set-otf-options(true) {@font-feature-settings: "liga" on, "calt" on} -.set-otf-options(false) {@font-feature-settings: "liga" off, "calt" off} +.set-otf-options(@use-ligatures); +.set-otf-options(true) { + @font-feature-settings: 'liga' on, 'calt' on; +} +.set-otf-options(false) { + @font-feature-settings: 'liga' off, 'calt' off; +} // ****************************** Families ****************************** -@font-family-sans-serif: "Inter", Helvetica, Arial; +@font-family-sans-serif: 'Inter', Helvetica, Arial; @font-family-serif: Georgia, 'Times New Roman', Times, serif; @font-family-monospace: 'Fira Code', 'Courier New', monospace; @font-family-base: @font-family-sans-serif;