Skip to content

Instantly share code, notes, and snippets.

@abhiomkar
Created November 18, 2021 17:57
Show Gist options
  • Save abhiomkar/411208e00d1b582570ac0c5e6036d075 to your computer and use it in GitHub Desktop.
Save abhiomkar/411208e00d1b582570ac0c5e6036d075 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@use 'sass:color';
@use 'sass:map';
@use 'sass:selector';
@use 'sass:list';
@use 'sass:math';
@use 'sass:string';
$css-vars: (
'--md-button-container-color',
'--md-button-label-text-color',
'--md-button-height',
);
@function hash($word) {
@return 'glx';
}
@function getVarName($var) {
@return #{$var}-#{hash($var)};
}
.test {
@each $var in $css-vars {
#{getVarName($var)}: test;
}
}
.test {
--md-button-container-color-glx: test;
--md-button-label-text-color-glx: test;
--md-button-height-glx: test;
}
{
"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