From c41e16f6044548e27fbf8e4ef65ed3067278c80b Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 19 Oct 2024 17:14:45 +0200 Subject: Update --- src_demo/components/_box.scss | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'src_demo/components/_box.scss') diff --git a/src_demo/components/_box.scss b/src_demo/components/_box.scss index c746c33..ac217c0 100644 --- a/src_demo/components/_box.scss +++ b/src_demo/components/_box.scss @@ -1,16 +1,9 @@ @use 'iro-sass/src/iro-sass' as iro; -@use '../../src/functions' as fn; +@use '../../src/props'; +@use '../../src/core.vars'; -@include iro.props-namespace('box') { - @include iro.props-store(( - --colors: ( - --border: fn.global-color(--border), - ), - )); - - @include iro.bem-component(iro.props-namespace()) { - margin-block: 2em; - padding: 2em; - border: 1px solid fn.color(--border); - } +@include iro.bem-component('box') { + padding: 2em; + margin-block: 2em; + border: 1px solid props.get(core.$theme, --border); } -- cgit v1.2.3-70-g09d2