Created
December 15, 2022 22:52
-
-
Save jelbourn/ee1d64d02ea8558bad3764461d6d3d0b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
@function button() { | |
@return ( | |
id: 'mat-button', | |
something: 'xxx', | |
) | |
} | |
@mixin button-theme($theme) { | |
.mat-button { | |
color: blue; | |
} | |
} | |
@mixin theme($theme, $components) { | |
@each $component in $components { | |
@if (map-get($component, 'id') == 'mat-button') { | |
@include button-theme($theme); | |
} | |
} | |
} | |
app { | |
background: black; | |
} | |
@include theme((), ( | |
button(), | |
)) |
This file contains hidden or 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
app { | |
background: black; | |
} | |
.mat-button { | |
color: blue; | |
} |
This file contains hidden or 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
{ | |
"sass": { | |
"compiler": "dart-sass/1.32.12", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment