summaryrefslogtreecommitdiffstats
path: root/src_demo/components/_box.scss
blob: e983f2c5730a33b36d40b94177841aec5485950a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@use 'iro-sass/src/index' as iro;
@use '../../src/functions' as fn;

@include iro.props-namespace('box') {
    @include iro.props-store((
        --colors: (
            --border: fn.global-color(--obj),
        ),
    ), 'colors');

    @include iro.bem-component(iro.props-namespace()) {
        margin:  2em 0;
        padding: 2em;
        border:  1px solid fn.color(--border);
    }
}