-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeme.scss
More file actions
44 lines (40 loc) · 848 Bytes
/
Copy paththeme.scss
File metadata and controls
44 lines (40 loc) · 848 Bytes
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
$component-themes: ('light', 'dark');
$component-colors: ('primary', 'secondary', 'error');
$dark-theme: (
/* Primary */
primary: #bb86fc,
on-primary: #000000,
/* Secondary */
secondary: #03dac6,
on-secondary: #000000,
/* Text */
text: #d3d3d3,
on-text: #686868,
/* Background */
background: #121212,
on-background: #fafafa,
/* Error */
error: #cf6679,
on-error: #000000
);
$light-theme: (
/* Primary */
primary: #6200ee,
on-primary: #ffffff,
/* Secondary */
secondary: #028f81,
on-secondary: #ffffff,
/* Text */
text: #686868,
on-text: #d3d3d3,
/* Background */
background: #fafafa,
on-background: #526488,
/* Error */
error: #b00020,
on-error: #ffffff
);
$theme-list: (dark: $dark-theme, light: $light-theme);
@function t($t, $p) {
@return map-get(map-get($theme-list, $t), $p)
}