• Skip to main content
  • Skip to primary sidebar

Web Development Archive

  • Archive
You are here: Home / Other / SCSS hashmap

SCSS hashmap

import helyett use

ez van abban amit behuzol:

_export-vars.scss

SCSS

@mixin exportVars($vars) {
  --kui-red-100: map.get($config, 'red-100', $red-100);
  --kui-font-primary: map.get($config, 'font-primary', $font-primary)
}

es igy kell behuzni:

@use 'export-vars' with {
  $vars: (
    "red-100": #aa0000,
    "font-primary": Roboto
  )
}

Filed Under: Other

About Gabor Flamich

I'm a web developer and designer based in Budapest, Hungary. In recent years, I've documented hundreds of solutions I came across during development. This site is an archive for useful code snippets on WordPress, Genesis Framework and WooCommerce. If You have any questions related to WordPress development, get in touch!

Primary Sidebar

  • angular.io
© 2026 WP Flames - All Right Reserved