From 586b4f6e43febc1e68796caa69808a8b33eb6292 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 24 Jun 2024 20:44:38 +0200 Subject: Add static button themes --- src/_functions.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/_functions.scss') 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 @@ @return $palette; } +@function transparent-palette($color, $text, $alphas) { + $palette: ( + --text: $text, + ); + + @each $key, $alpha in $alphas { + $palette: map.set($palette, $key, rgba($color, $alpha)); + } + + @return $palette; +} + @function px-to-em($size, $base: iro.$vars-root-size) { @return math.div($size, $base) * 1em; } -- cgit v1.2.3-70-g09d2