diff options
| author | Volpeon <git@volpeon.ink> | 2022-02-06 17:17:33 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-02-06 17:17:33 +0100 |
| commit | 3524f1bac11c8a9d1640bfeac5ceb063ff96d623 (patch) | |
| tree | 52907b3161045c2d24bba18442c1ece9c12986a6 /src/_functions.scss | |
| parent | Updated action button (diff) | |
| download | iro-design-3524f1bac11c8a9d1640bfeac5ceb063ff96d623.tar.gz iro-design-3524f1bac11c8a9d1640bfeac5ceb063ff96d623.tar.bz2 iro-design-3524f1bac11c8a9d1640bfeac5ceb063ff96d623.zip | |
Improved variable structure
Diffstat (limited to 'src/_functions.scss')
| -rw-r--r-- | src/_functions.scss | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/_functions.scss b/src/_functions.scss new file mode 100644 index 0000000..c2fe4c8 --- /dev/null +++ b/src/_functions.scss | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | @use 'iro-sass/src/index' as iro; | ||
| 2 | |||
| 3 | @function color($key, $tree: 'colors', $default: null, $global: false) { | ||
| 4 | $new-key: iro.fn-list-prepend($key, --colors); | ||
| 5 | @return iro.props-get($new-key, $tree, $default, $global); | ||
| 6 | } | ||
| 7 | |||
| 8 | @function dim($key, $tree: 'dims', $default: null, $global: false) { | ||
| 9 | $new-key: iro.fn-list-prepend($key, --dims); | ||
| 10 | @return iro.props-get($new-key, $tree, $default, $global); | ||
| 11 | } | ||
