feat: copy style for new project | have error

This commit is contained in:
kmacoders
2021-07-12 00:40:19 +07:00
parent 4c2b64879b
commit ae45ae3cf5
20 changed files with 1160 additions and 17 deletions

View File

@@ -0,0 +1,43 @@
/// Get color variable from css to scss
/// @param $color-props: color variable : --color-text-rgb, --color-body-text
///
@function color($color-props) {
@return var(--color-#{$color-props});
}
/// Get font variable from css to scss
/// @param $font-props: font variable : --font-size-header, --font-size-base
///
@function font($font-props) {
@return var(--font-#{$font-props});
}
/// Get all general variable from css to scss
@function v($props) {
@return var(--#{$props});
}
/// Example :
// :root {
// --color-background: #FFFFFF;
// }
// body {
// color: color(primary);
// }
// compiled sass code is:
// body {
// color: var(--color-primary);
// }
// .kmacoders {
// color: v(--color-background);
// }
// compiled sass code is:
// .kmacoders {
// color: var(----color-background);
// }