Skip to content

Commit a33fd13

Browse files
author
AMJones
committed
Adds component color functions.
1 parent 3acc845 commit a33fd13

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"strapless"
1010
],
1111
"homepage": "https://www.github.com/strapless/colors",
12-
"version": "1.0.5",
12+
"version": "1.0.6",
1313
"authors": [
1414
{
1515
"name": "Aaron M Jones",

scss/_colors-functions.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,19 @@
135135
}
136136
}
137137

138+
@function component-background($color-name: "primary") {
139+
$color-base: #fff;
140+
@return mix($color-base, theme-color($color-name), 10 * 8%);
141+
}
142+
143+
@function component-border($color-name: "primary") {
144+
$color-base: #fff;
145+
@return mix($color-base, theme-color($color-name), 10 * 8%);
146+
}
147+
148+
@function component-color($color-name: "primary") {
149+
$color-base: #000;
150+
@return mix($color-base, theme-color($color-name), 5 * 8%);
151+
}
152+
138153
// endregion /////////////////////////////////////////// End Other Color Functions

0 commit comments

Comments
 (0)