1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

Update color function

This commit is contained in:
Lucas Vallenet
2023-04-21 11:34:15 +02:00
parent 9a2083d894
commit 297e0b4ec8
6 changed files with 17 additions and 5104 deletions

View File

@@ -1,3 +1,3 @@
{
"version": 1675955478084
"version": 1682069627576
}

View File

@@ -149,14 +149,12 @@ $context: 'frontend' !default;
// }
// ```
//
// @param {string} $key - The color key in $colors
// @return {function<string>} in hexadecimal
// @param {string} $key - The color key in $colors.
// @return {color}
@function color($key) {
@if map-has-key($colors, $key) {
@return map-get($colors, $key);
@if not map-has-key($colors, $key) {
@error "Unknown '#{$key}' in $colors.";
}
@warn "Unkown '#{$key}' in $colors.";
@return null;
@return map-get($colors, $key);
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long