This repository has been archived by the owner on Feb 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.scss
59 lines (55 loc) · 1.58 KB
/
index.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// Name: siimple-colors
// Description: A color palette for UI design
// License: https://github.com/siimple/siimple-colors/blob/master/LICENSE
// Repository: https://github.com/siimple/siimple-colors
//
//Import all variables, mixins and functions
@import "./scss/palette.scss";
@import "./scss/functions.scss";
@import "./scss/colors.scss";
//CSS Color variables
:root {
@each $color, $list in $siimple-colors {
//Base color
#{--siimple}-#{$color}: #{siimple-color-base($color)};
@each $color-id, $color-hex in $list {
@if $color-id != "base" {
#{--siimple}-#{$color}-#{$color-id}: #{$color-hex};
}
}
}
//White color
#{--siimple-white}: #{$siimple-white};
}
//Colors styles
.siimple {
@each $color, $list in $siimple-colors {
//Base text color
&--color-#{$color} {
color: siimple-color-base($color);
}
// Base background color
&--bg-#{$color} {
background-color: siimple-color-base($color);
}
//Each color in the palette
@each $color-id, $color-hex in $list {
@if $color-id != "base" {
&--color-#{$color}-#{$color-id} {
color: $color-hex;
}
&--bg-#{$color}-#{$color-id} {
background-color: $color-hex;
}
}
}
}
//White color for text and background
&--color-white {
color: $siimple-white;
}
&--bg-white {
background-color: $siimple-white;
}
}