aboutsummaryrefslogtreecommitdiffstats
path: root/src/scss/abstracts/functions/_css-vars.scss
blob: 89e1a151f6889199994ca20357edf63f98405f32 (plain)
1
2
3
4
5
6
7
8
/// Retrieve a CSS variable value with prefix
/// @see https://dev.to/felipperegazio/css-custom-properties-vars-with-sass-scss-a-practical-architecture-strategy-1m88
/// @param  {String} $name Variable name
/// @param  {String} $prefix Variable prefix
/// @return {String} Variable in CSS format
@function get-var($name, $prefix: dap) {
  @return var(--#{$prefix}-#{$name});
}