Skip to content

Instantly share code, notes, and snippets.

@fireflysemantics
Created June 8, 2022 03:06
Show Gist options
  • Save fireflysemantics/c94022113fc54ca0544f2ed8f26b9f99 to your computer and use it in GitHub Desktop.
Save fireflysemantics/c94022113fc54ca0544f2ed8f26b9f99 to your computer and use it in GitHub Desktop.
@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