Skip to content

Commit

Permalink
feat 👍 enable to get font as css vars
Browse files Browse the repository at this point in the history
  • Loading branch information
synchrovision committed Feb 21, 2022
1 parent 6d25edd commit de9f416
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/_basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@
@return url($img);
}
@function cp_get_font($fnt){
@if function-exists('translate_font') {
$font:translate_font($fnt);
@if $font{@return $font;}
}
@if type-of($fonts) == 'map' {
@if map-has-key($fonts,$fnt){$fnt:map-get($fonts,$fnt);}
}
Expand Down

0 comments on commit de9f416

Please sign in to comment.