forked from harmtemolder/obsidian-solarized
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_colors.scss
170 lines (162 loc) · 3.84 KB
/
_colors.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
// compileOnSave: false
@use 'sass:color';
@use "sass:map";
$tones: (
"base03": 0 43 54,
"base02": 7 54 66,
"base01": 88 110 117,
"base00": 101 123 131,
"base0": 131 148 150,
"base1": 147 161 161,
"base2": 238 232 213,
"base3": 253 246 227
);
$accents: (
"yellow": 181 137 0,
"orange": 203 75 22,
"red": 220 50 47,
"pink": 211 54 130, // = magenta
"purple": 108 113 196, // = violet
"blue": 38 139 210,
"cyan": 42 161 152,
"green": 133 153 0
);
$accent: "orange";
.theme-dark,
.theme-light {
/* Overwrite default theme colors */
@each $color, $value in $tones {
--#{$color}: #{rgb($value)};
}
@each $color, $value in $accents {
--color-#{$color}: #{rgb($value)};
--color-#{$color}-rgb: #{red(rgb($value))}, #{green(rgb($value))}, #{blue(rgb($value))};
}
--accent-h: #{hue(rgb(map.get($accents, $accent)))};
--accent-s: #{saturation(rgb(map.get($accents, $accent)))};
--accent-l: #{lightness(rgb(map.get($accents, $accent)))};
}
/*! @settings
name: Solarized Theme Settings
id: solarized-theme-settings
settings:
- id: colors
title: Colors
type: heading
level: 2
- id: tones
title: Base Tones
type: heading
level: 3
collapsed: true
- id: base03
title: base03
type: variable-color
format: rgb
default: rgb(#{map.get($tones, "base03")})
- id: base02
title: base02
type: variable-color
format: rgb
default: rgb(#{map.get($tones, "base02")})
- id: base01
title: base01
type: variable-color
format: rgb
default: rgb(#{map.get($tones, "base01")})
- id: base00
title: base00
type: variable-color
format: rgb
default: rgb(#{map.get($tones, "base00")})
- id: base0
title: base0
type: variable-color
format: rgb
default: rgb(#{map.get($tones, "base0")})
- id: base1
title: base1
type: variable-color
format: rgb
default: rgb(#{map.get($tones, "base1")})
- id: base2
title: base2
type: variable-color
format: rgb
default: rgb(#{map.get($tones, "base2")})
- id: base3
title: base3
type: variable-color
format: rgb
default: rgb(#{map.get($tones, "base3")})
- id: accents
description: "NB This does not override Obsidian's built-in accent color (see Appearance > Accent color)"
title: Accent Colors
type: heading
level: 3
collapsed: true
- id: color-yellow
title: yellow
type: variable-color
format: rgb
default: rgb(#{map.get($accents, "yellow")})
alt-format:
- id: color-yellow-rgb
format: rgb-values
- id: color-orange
title: orange
type: variable-color
format: rgb
default: rgb(#{map.get($accents, "orange")})
alt-format:
- id: color-orange-rgb
format: rgb-values
- id: color-red
title: red
type: variable-color
format: rgb
default: rgb(#{map.get($accents, "red")})
alt-format:
- id: color-red-rgb
format: rgb-values
- id: color-pink
title: pink
type: variable-color
format: rgb
default: rgb(#{map.get($accents, "pink")})
alt-format:
- id: color-pink-rgb
format: rgb-values
- id: color-purple
title: purple
type: variable-color
format: rgb
default: rgb(#{map.get($accents, "purple")})
alt-format:
- id: color-purple-rgb
format: rgb-values
- id: color-blue
title: blue
type: variable-color
format: rgb
default: rgb(#{map.get($accents, "blue")})
alt-format:
- id: color-blue-rgb
format: rgb-values
- id: color-cyan
title: cyan
type: variable-color
format: rgb
default: rgb(#{map.get($accents, "cyan")})
alt-format:
- id: color-cyan-rgb
format: rgb-values
- id: color-green
title: green
type: variable-color
format: rgb
default: rgb(#{map.get($accents, "green")})
alt-format:
- id: color-green-rgb
format: rgb-values
*/