diff options
| author | Volpeon <git@volpeon.ink> | 2024-06-24 20:44:38 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-06-24 20:44:38 +0200 |
| commit | 586b4f6e43febc1e68796caa69808a8b33eb6292 (patch) | |
| tree | 3cf61a14010bb4331c4213cd2b96ec982a7755a3 /src/_functions.scss | |
| parent | Update (diff) | |
| download | iro-design-586b4f6e43febc1e68796caa69808a8b33eb6292.tar.gz iro-design-586b4f6e43febc1e68796caa69808a8b33eb6292.tar.bz2 iro-design-586b4f6e43febc1e68796caa69808a8b33eb6292.zip | |
Add static button themes
Diffstat (limited to 'src/_functions.scss')
| -rw-r--r-- | src/_functions.scss | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/_functions.scss b/src/_functions.scss index 0c04f1d..d615614 100644 --- a/src/_functions.scss +++ b/src/_functions.scss | |||
| @@ -135,6 +135,18 @@ | |||
| 135 | @return $palette; | 135 | @return $palette; |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | @function transparent-palette($color, $text, $alphas) { | ||
| 139 | $palette: ( | ||
| 140 | --text: $text, | ||
| 141 | ); | ||
| 142 | |||
| 143 | @each $key, $alpha in $alphas { | ||
| 144 | $palette: map.set($palette, $key, rgba($color, $alpha)); | ||
| 145 | } | ||
| 146 | |||
| 147 | @return $palette; | ||
| 148 | } | ||
| 149 | |||
| 138 | @function px-to-em($size, $base: iro.$vars-root-size) { | 150 | @function px-to-em($size, $base: iro.$vars-root-size) { |
| 139 | @return math.div($size, $base) * 1em; | 151 | @return math.div($size, $base) * 1em; |
| 140 | } | 152 | } |
