Created
June 8, 2022 03:06
-
-
Save fireflysemantics/c94022113fc54ca0544f2ed8f26b9f99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@use "sass:map"; | |
@use "@angular/material" as mat; | |
@mixin big-component-theme($theme) { | |
$accent: map-get($theme, accent); | |
fs-big { | |
color: mat.get-color-from-palette($accent); | |
} | |
} | |
@mixin big-component-typography($theme) { | |
//Get the typography from the theme | |
$config: map.get($theme, typography); | |
@if ($config) { | |
fs-big { | |
font-size: mat.font-size($config, "fs-big-typography") !important; | |
font-weight: mat.font-weight($config, "fs-big-typography") !important; | |
font-family: mat.font-family($config, "fs-big-typography") !important; | |
line-height: mat.line-height($config, "fs-big-typography") !important; | |
letter-spacing: mat.letter-spacing($config, "fs-big-typography") !important; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment