mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 14:28:25 -04:00
also migrated SASS to latest syntax (via dart-sass) and vastly simplified light/dark theme logic
76 lines
2.9 KiB
SCSS
76 lines
2.9 KiB
SCSS
@use "../abstracts/functions";
|
|
@use "../abstracts/settings";
|
|
|
|
// Note to self: got this list after subsetting Inter with glyphhanger or pyftsubset:
|
|
// https://github.com/filamentgroup/glyphhanger
|
|
// https://github.com/fonttools/fonttools
|
|
// ex: glyphhanger --whitelist="" --family="Inter" --formats=woff2,woff --subset="*.woff"
|
|
// ex: pyftsubset --unicodes="" --layout-features=kern,liga,calt,clig,ss01 --flavor=woff --with-zopfli inter.ttf
|
|
$unicode-subset: U+0000-00FF, U+2000-206F, U+2200-22FF, U+2122;
|
|
|
|
/*!
|
|
* Inter typeface v3.15 - https://rsms.me/inter/
|
|
*
|
|
* Copyright (c) 2016-2020 The Inter Project Authors.
|
|
* Licensed under the SIL Open Font License, Version 1.1:
|
|
* https://github.com/rsms/inter/blob/v3.15/LICENSE.txt
|
|
*/
|
|
|
|
// Variable
|
|
@include functions.font-face("Inter var", "inter-subset.var", 100 900, $variable: true) {
|
|
unicode-range: $unicode-subset;
|
|
}
|
|
@include functions.font-face("Inter var", "inter-italic-subset.var", 100 900, italic, $variable: true) {
|
|
unicode-range: $unicode-subset;
|
|
}
|
|
|
|
// Legacy
|
|
@include functions.font-face("Inter", "inter-regular-subset", 400) {
|
|
unicode-range: $unicode-subset;
|
|
}
|
|
@include functions.font-face("Inter", "inter-regular-italic-subset", 400, italic) {
|
|
unicode-range: $unicode-subset;
|
|
}
|
|
@include functions.font-face("Inter", "inter-medium-subset", 500) {
|
|
unicode-range: $unicode-subset;
|
|
}
|
|
@include functions.font-face("Inter", "inter-medium-italic-subset", 500, italic) {
|
|
unicode-range: $unicode-subset;
|
|
}
|
|
@include functions.font-face("Inter", "inter-bold-subset", 700) {
|
|
unicode-range: $unicode-subset;
|
|
}
|
|
@include functions.font-face("Inter", "inter-bold-italic-subset", 700, italic) {
|
|
unicode-range: $unicode-subset;
|
|
}
|
|
|
|
/*!
|
|
* Roboto Mono typeface v3.000 - https://fonts.google.com/specimen/Roboto+Mono
|
|
*
|
|
* Copyright (c) 2015 The Roboto Mono Project Authors.
|
|
* Licensed under the Apache License, Version 2.0:
|
|
* https://github.com/google/fonts/blob/4df0b673c9b316ad5e8de8fa70b0768ab66c87d6/apache/robotomono/LICENSE.txt
|
|
*/
|
|
|
|
// Variable
|
|
@include functions.font-face("Roboto Mono var", "roboto-mono-subset.var", 100 700, $variable: true);
|
|
@include functions.font-face("Roboto Mono var", "roboto-mono-italic-subset.var", 100 700, italic, $variable: true);
|
|
|
|
// Legacy
|
|
@include functions.font-face("Roboto Mono", "roboto-mono-regular-subset", 400);
|
|
@include functions.font-face("Roboto Mono", "roboto-mono-italic-subset", 400, italic);
|
|
|
|
/*!
|
|
* Comic Neue typeface v2.5 - http://comicneue.com/
|
|
*
|
|
* Copyright (c) 2014 The Comic Neue Project Authors.
|
|
* Licensed under the SIL Open Font License, Version 1.1:
|
|
* https://github.com/crozynski/comicneue/blob/v2.5/OFL.txt
|
|
*/
|
|
@include functions.font-face("Comic Neue", "comic-neue-regular-subset", 400) {
|
|
unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF, U+2190-21FF, U+2200-22FF, U+2122;
|
|
}
|
|
@include functions.font-face("Comic Neue", "comic-neue-bold-subset", 700) {
|
|
unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF, U+2190-21FF, U+2200-22FF, U+2122;
|
|
}
|