diff options
| author | eugenesvk | 2023-05-03 22:16:15 +0700 |
|---|---|---|
| committer | Jieiku | 2023-05-22 23:04:07 -0700 |
| commit | 428dd1fd0a5bd640a8617a9486ecd2f7c5bf29bf (patch) | |
| tree | 7f78c91f79afd0b1fa67ab5420c1e4ca55c68ea8 /sass/_font-extend.sass | |
| parent | 2ee8b03aaed15435dc261a5caa398d0dfc96bb41 (diff) | |
| download | abridge-428dd1fd0a5bd640a8617a9486ecd2f7c5bf29bf.tar.gz abridge-428dd1fd0a5bd640a8617a9486ecd2f7c5bf29bf.tar.bz2 abridge-428dd1fd0a5bd640a8617a9486ecd2f7c5bf29bf.zip | |
Add font-extend style partials
Diffstat (limited to 'sass/_font-extend.sass')
| -rw-r--r-- | sass/_font-extend.sass | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sass/_font-extend.sass b/sass/_font-extend.sass new file mode 100644 index 0000000..d0a9361 --- /dev/null +++ b/sass/_font-extend.sass @@ -0,0 +1,21 @@ +@use "variables" as var +@use "function/font" as f + +$findFont-Main : "Segoe UI" !default +$findFont-Code : "Segoe UI Mono" !default +$fontExt-Main : ("MAIN FONT 1", "MAIN FONT 2") !default +$fontExt-Code : ("CODE FONT 1", "CODE FONT 2") !default +$iFoundFont-Main : index(var.$font , $findFont-Main) +$iFoundFont-Code : index(var.$font-mono, $findFont-Code) +@if $iFoundFont-Main + var.$font : f.font-append(var.$font , $fontExt-Main, $findFont-Main) +@else + @debug "⚠ Failed to find font '#{$findFont-Main}' in the list of '#{var.$font}'" +@if $iFoundFont-Code + var.$font-mono : f.font-append(var.$font-mono, $fontExt-Code, $findFont-Code) +@else + @debug "⚠ Failed to find font '#{$findFont-Code}' in the list of '#{var.$font-mono}'" + +@mixin font-root + #{--ff}: var.$font + #{--fm}: var.$font-mono //code |
