@playpilot/tpi 5.24.4 → 5.25.0-beta.theme.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/link-injections.js +8 -8
  2. package/package.json +1 -1
  3. package/src/lib/scss/_functions.scss +17 -0
  4. package/src/lib/scss/_theme.scss +38 -0
  5. package/src/lib/scss/global.scss +7 -1
  6. package/src/routes/+page.svelte +0 -1
  7. package/src/routes/components/Ads/Disclaimer.svelte +7 -7
  8. package/src/routes/components/Ads/Display.svelte +7 -7
  9. package/src/routes/components/Ads/TopScroll.svelte +14 -14
  10. package/src/routes/components/ContextMenu.svelte +2 -2
  11. package/src/routes/components/Debugger.svelte +7 -7
  12. package/src/routes/components/Description.svelte +2 -2
  13. package/src/routes/components/Editorial/AIIndicator.svelte +13 -13
  14. package/src/routes/components/Editorial/Alert.svelte +5 -5
  15. package/src/routes/components/Editorial/DragHandle.svelte +1 -1
  16. package/src/routes/components/Editorial/Editor.svelte +24 -17
  17. package/src/routes/components/Editorial/EditorItem.svelte +14 -14
  18. package/src/routes/components/Editorial/EditorTrigger.svelte +3 -3
  19. package/src/routes/components/Editorial/ManualInjection.svelte +6 -6
  20. package/src/routes/components/Editorial/PlaylinkTypeSelect.svelte +8 -8
  21. package/src/routes/components/Editorial/ReportIssueModal.svelte +13 -13
  22. package/src/routes/components/Editorial/ResizeHandle.svelte +1 -1
  23. package/src/routes/components/Editorial/Search/TitleSearch.svelte +3 -3
  24. package/src/routes/components/Editorial/Search/TitleSearchItem.svelte +7 -7
  25. package/src/routes/components/Editorial/Session.svelte +2 -2
  26. package/src/routes/components/Editorial/Switch.svelte +5 -5
  27. package/src/routes/components/Editorial/TextInput.svelte +5 -5
  28. package/src/routes/components/Genres.svelte +8 -8
  29. package/src/routes/components/ListTitle.svelte +18 -18
  30. package/src/routes/components/Modal.svelte +10 -10
  31. package/src/routes/components/Participant.svelte +20 -20
  32. package/src/routes/components/Playlinks/AfterArticlePlaylinks.svelte +13 -13
  33. package/src/routes/components/Playlinks/Playlink.svelte +26 -26
  34. package/src/routes/components/Playlinks/PlaylinkIcon.svelte +5 -5
  35. package/src/routes/components/Playlinks/PlaylinkLabel.svelte +5 -5
  36. package/src/routes/components/Playlinks/Playlinks.svelte +13 -13
  37. package/src/routes/components/Popover.svelte +5 -5
  38. package/src/routes/components/Rails/ParticipantsRail.svelte +6 -5
  39. package/src/routes/components/Rails/Rail.svelte +4 -4
  40. package/src/routes/components/Rails/TitlesRail.svelte +5 -5
  41. package/src/routes/components/RoundButton.svelte +4 -4
  42. package/src/routes/components/Share.svelte +11 -11
  43. package/src/routes/components/SkeletonText.svelte +2 -2
  44. package/src/routes/components/SwipeHandle.svelte +4 -4
  45. package/src/routes/components/Tabs.svelte +5 -5
  46. package/src/routes/components/Title.svelte +17 -17
  47. package/src/routes/components/TitlePoster.svelte +1 -1
  48. package/src/routes/components/Tooltip.svelte +4 -4
  49. package/src/routes/elements/+page.svelte +0 -1
  50. package/src/lib/scss/variables.scss +0 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "5.24.4",
3
+ "version": "5.25.0-beta.theme.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -1,3 +1,20 @@
1
+ @use "sass:map";
2
+ @use "sass:string";
3
+ @use "sass:meta";
4
+
1
5
  @function margin($value) {
2
6
  @return 16px * $value;
3
7
  }
8
+
9
+ @function theme($scope, $fallback: "") {
10
+ // If the given fallback value is a string we use a variable, if it's not, we use the value straight up.
11
+ // In some cases you might need use a quoted string to get a variable. `"green"` vs `green`.
12
+ // If the fallback value is not given at all we assume it's meant to be a variable straight up without fallback.
13
+ @if $fallback == "" {
14
+ @return var(--playpilot-#{$scope});
15
+ } @if meta.type-of($fallback) == "string" {
16
+ @return var(--playpilot-#{$scope}, var(--playpilot-#{$fallback}));
17
+ } @else {
18
+ @return var(--playpilot-#{$scope}, $fallback);
19
+ }
20
+ }
@@ -0,0 +1,38 @@
1
+ @use "./_functions.scss" as *;
2
+
3
+ $variables: (
4
+ // Colors
5
+ "primary": #fa548a,
6
+ "dark": #101426,
7
+ "light": #1b2743,
8
+ "lighter": #233257,
9
+ "content": #354367,
10
+ "content-light": #4b5b82,
11
+ "green": #53bca0,
12
+ "error": #ea5a5a,
13
+ "error-dark": #442533,
14
+ "warning": #f7c74e,
15
+ "warning-dark": #413c23,
16
+ "text-color": #fff,
17
+ "text-color-alt": #c8d4de,
18
+
19
+ // Sizing
20
+ "border-radius-small": margin(0.25),
21
+ "border-radius": margin(0.5),
22
+ "border-radius-large": margin(1),
23
+
24
+ // Fonts
25
+ "font-family": #{"Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif},
26
+ "font-size-small": 12px,
27
+ "font-size-base": 14px,
28
+ "font-size-large": 16px,
29
+ "font-bold": 500,
30
+
31
+ // Other
32
+ "shadow": #{margin(0.2) margin(0.15) margin(0.15) rgba(0, 0, 0, 0.2)},
33
+ "shadow-large": #{
34
+ margin(0.15) margin(0.15) margin(0.2) rgba(0, 0, 0, 0.05),
35
+ margin(0.2) margin(0.35) margin(0.35) rgba(0, 0, 0, 0.1),
36
+ margin(0.1) margin(0.1) margin(0.75) rgba(0, 0, 0, 0.25),
37
+ }
38
+ );
@@ -1,4 +1,10 @@
1
- @use "./_functions" as *;
1
+ @use "./theme";
2
+
3
+ :root {
4
+ @each $name, $value in theme.$variables {
5
+ --playpilot-#{$name}: #{$value};
6
+ }
7
+ }
2
8
 
3
9
  [data-playpilot-injection-key] {
4
10
  position: relative;
@@ -227,7 +227,6 @@
227
227
  <Consent onchange={start} />
228
228
 
229
229
  <style lang="scss">
230
- @import url('$lib/scss/variables.scss');
231
230
  @import url('$lib/scss/global.scss');
232
231
 
233
232
  .playpilot-link-injections {
@@ -33,18 +33,18 @@
33
33
  display: flex;
34
34
  align-items: center;
35
35
  justify-content: center;
36
- border: var(--playpilot-disclaimer-border, 2px solid rgba(255, 255, 255, 0.5));
36
+ border: theme(disclaimer-border, 2px solid rgba(255, 255, 255, 0.5));
37
37
  padding: margin(0.25);
38
38
  height: margin(1.25);
39
39
  width: margin(1.25);
40
40
  border-radius: 99px;
41
- color: var(--playpilot-disclaimer-text-color, rgba(255, 255, 255, 0.75));
41
+ color: theme(disclaimer-text-color, text-color-alt);
42
42
  font-weight: bold;
43
43
  line-height: 1;
44
44
 
45
45
  &:hover {
46
- border-color: var(--playpilot-disclaimer-hover-border-color, white);
47
- color: var(--playpilot-disclaimer-hover-text-color, white);
46
+ border-color: theme(disclaimer-hover-border-color, text-color);
47
+ color: theme(disclaimer-hover-text-color, text-color);
48
48
  }
49
49
 
50
50
  &.small {
@@ -61,7 +61,7 @@
61
61
  padding: margin(0.25);
62
62
  background: transparent;
63
63
  border: 0;
64
- color: var(--playpilot-disclaimer-tooltip-text-color, var(--playpilot-detail-text-color, white));
64
+ color: theme(disclaimer-tooltip-text-color, text-color);
65
65
  cursor: pointer;
66
66
  }
67
67
 
@@ -74,8 +74,8 @@
74
74
  width: calc(var(--width, 15rem) * 0.8);
75
75
  padding: margin(0.5);
76
76
  border-radius: margin(0.5);
77
- background: var(--playpilot-disclaimer-tooltip-background, var(--playpilot-detail-background, var(--playpilot-content)));
78
- box-shadow: var(--playpilot-shadow);
77
+ background: theme(disclaimer-tooltip-background, content);
78
+ box-shadow: theme(shadow);
79
79
  font-size: 12px;
80
80
  line-height: 1.1;
81
81
  text-align: right;
@@ -85,13 +85,13 @@
85
85
  .display {
86
86
  display: block;
87
87
  position: relative;
88
- border-radius: var(--playpilot-display-ad-border-radius, margin(0.5));
88
+ border-radius: theme(display-ad-border-radius, border-radius);
89
89
  overflow: hidden;
90
90
  background: black;
91
91
  aspect-ratio: 16 / 9;
92
92
  color: white !important;
93
93
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
94
- font-family: var(--playpilot-detail-font-family, var(--playpilot-font-family));
94
+ font-family: theme(detail-font-family, font-family);
95
95
  line-height: 1.2;
96
96
  font-style: normal !important;
97
97
  }
@@ -137,7 +137,7 @@
137
137
  }
138
138
 
139
139
  .logo {
140
- border-radius: var(--playpilot-display-ad-border-radius, margin(0.5));
140
+ border-radius: theme(display-ad-border-radius, border-radius);
141
141
  }
142
142
 
143
143
  .name {
@@ -151,12 +151,12 @@
151
151
  .action {
152
152
  margin-left: auto;
153
153
  padding: margin(0.5) margin(0.75);
154
- background: var(--playpilot-display-ad-action-background, white);
155
- border-radius: var(--playpilot-display-action-border-radius, margin(2));
154
+ background: theme(display-ad-action-background, white);
155
+ border-radius: theme(display-action-border-radius, margin(2));
156
156
  transition: transform 50ms;
157
157
  text-shadow: none;
158
- font-weight: var(--playpilot-display-action-font-weight, 500);
159
- color: var(--playpilot-display-action-text-color, black);
158
+ font-weight: theme(display-action-font-weight, 500);
159
+ color: theme(display-action-text-color, black);
160
160
  white-space: nowrap;
161
161
 
162
162
  &:hover {
@@ -75,7 +75,7 @@
75
75
  </a>
76
76
 
77
77
  <style lang="scss">
78
- $border-radius-size: var(--playpilot-top-scroll-border-radius, var(--playpilot-popover-border-radius, margin(1)));
78
+ $border-radius-size: theme(top-scroll-border-radius, border-radius-large);
79
79
 
80
80
  .top-scroll {
81
81
  position: relative;
@@ -83,9 +83,9 @@
83
83
  width: 100%;
84
84
  border-radius: $border-radius-size;
85
85
  background: black;
86
- color: var(--playpilot-top-scroll-text-color, white);
87
- font-family: var(--playpilot-top-scroll-font-family, var(--playpilot-detail-font-family, var(--playpilot-font-family)));
88
- font-size: var(--playpilot-top-scroll-font-size, var(--playpilot-detail-font-size, 14px));
86
+ color: theme(top-scroll-text-color, white);
87
+ font-family: theme(top-scroll-font-family, font-family);
88
+ font-size: theme(top-scroll-font-size, font-size-base);
89
89
  text-decoration: none;
90
90
  line-height: 1.35;
91
91
 
@@ -103,7 +103,7 @@
103
103
  min-height: margin(4.5);
104
104
  padding: margin(0.25) margin(0.5);
105
105
  gap: margin(0.5);
106
- color: var(--playpilot-top-scroll-text-color, white);
106
+ color: theme(top-scroll-text-color, white);
107
107
 
108
108
  .simple & {
109
109
  justify-content: center;
@@ -113,35 +113,35 @@
113
113
  }
114
114
 
115
115
  .logo {
116
- border-radius: var(--playpilot-top-scroll-logo-border-radius, margin(0.5));
116
+ border-radius: theme(top-scroll-logo-border-radius, border-radius);
117
117
  background: black;
118
118
  }
119
119
 
120
120
  .tagline {
121
121
  margin: 0;
122
- text-shadow: var(--playpilot-shadow);
122
+ text-shadow: theme(shadow);
123
123
  }
124
124
 
125
125
  .button {
126
126
  margin-left: auto;
127
127
  margin-right: margin(1);
128
128
  padding: margin(0.25) margin(0.5);
129
- background: var(--playpilot-top-scroll-button-background, white);
129
+ background: theme(top-scroll-button-background, white);
130
130
  border: 0;
131
- border-radius: var(--playpilot-top-scroll-button-border-radius, margin(0.25));
132
- box-shadow: var(--playpilot-shadow);
133
- color: var(--playpilot-top-scroll-button-text-color, black);
131
+ border-radius: theme(top-scroll-button-border-radius, border-radius-small);
132
+ box-shadow: theme(shadow);
133
+ color: theme(top-scroll-button-text-color, black);
134
134
  font-family: inherit;
135
135
  font-size: inherit;
136
136
  line-height: inherit;
137
137
 
138
138
  &:hover {
139
- outline: margin(0.25) solid var(--playpilot-top-scroll-button-background, rgba(white, 0.35));
140
- background: var(--playpilot-top-scroll-button-background, white);
139
+ outline: margin(0.25) solid theme(top-scroll-button-background, rgba(white, 0.35));
140
+ background: theme(top-scroll-button-background, white);
141
141
  }
142
142
 
143
143
  &:active {
144
- background: var(--playpilot-top-scroll-button-background, white);
144
+ background: theme(top-scroll-button-background, white);
145
145
  }
146
146
  }
147
147
 
@@ -46,7 +46,7 @@
46
46
  border: 0;
47
47
  border-radius: margin(0.25);
48
48
  background: transparent;
49
- color: var(--playpilot-text-color-alt);
49
+ color: theme(text-color-alt);
50
50
 
51
51
  &:hover {
52
52
  cursor: pointer;
@@ -65,6 +65,6 @@
65
65
  right: 0;
66
66
  max-width: margin(15);
67
67
  border-radius: margin(0.5);
68
- background: var(--playpilot-lighter);
68
+ background: theme(lighter);
69
69
  }
70
70
  </style>
@@ -122,26 +122,26 @@
122
122
 
123
123
  <style lang="scss">
124
124
  summary {
125
- color: var(--playpilot-primary);
125
+ color: theme(primary);
126
126
  font-weight: bold;
127
127
  }
128
128
 
129
129
  hr {
130
- border-color: var(--playpilot-primary);
130
+ border-color: theme(primary);
131
131
  }
132
132
 
133
133
  button {
134
134
  cursor: pointer;
135
135
  padding: margin(0.5);
136
- border: 1px solid var(--playpilot-primary);
136
+ border: 1px solid theme(primary);
137
137
  background: transparent;
138
- color: var(--playpilot-primary);
138
+ color: theme(primary);
139
139
  font-family: inherit;
140
140
  font-weight: bold;
141
141
 
142
142
  &:hover {
143
143
  color: black;
144
- background: var(--playpilot-primary);
144
+ background: theme(primary);
145
145
  }
146
146
  }
147
147
 
@@ -153,12 +153,12 @@
153
153
  max-width: 70dvw;
154
154
  max-height: 50dvh;
155
155
  padding: margin(1);
156
- border: 1px solid var(--playpilot-primary);
156
+ border: 1px solid theme(primary);
157
157
  background: black;
158
158
  overflow: auto;
159
159
  color: white;
160
160
  font-family: "Consolas", monospace;
161
- color: var(--playpilot-primary);
161
+ color: theme(primary);
162
162
  }
163
163
 
164
164
  .item {
@@ -38,8 +38,8 @@
38
38
  padding: 0;
39
39
  background: transparent;
40
40
  border: 0;
41
- color: var(--playpilot-read-more-text-color, var(--playpilot-text-color-alt));
42
- font-weight: var(--playpilot-read-more-font-weight, inherit);
41
+ color: theme(read-more-text-color, text-color-alt);
42
+ font-weight: theme(read-more-font-weight, inherit);
43
43
  font-family: inherit;
44
44
  font-size: inherit;
45
45
 
@@ -87,14 +87,14 @@
87
87
  position: relative;
88
88
  display: flex;
89
89
  gap: margin(0.5);
90
- background: var(--playpilot-light);
90
+ background: theme(light);
91
91
  padding: margin(0.5);
92
92
  margin: 2px;
93
93
  border-radius: 0.5rem;
94
94
  font-size: 12px;
95
95
  line-height: 1.5;
96
96
  z-index: 1;
97
- color: var(--playpilot-text-color-alt);
97
+ color: theme(text-color-alt);
98
98
  overflow: hidden;
99
99
  }
100
100
 
@@ -105,7 +105,7 @@
105
105
  }
106
106
 
107
107
  .icon {
108
- color: var(--playpilot-green);
108
+ color: theme(green);
109
109
  }
110
110
 
111
111
  .border {
@@ -115,12 +115,12 @@
115
115
  bottom: 0;
116
116
  left: 0;
117
117
  border-radius: 0.5rem;
118
- background: var(--playpilot-green);
118
+ background: theme(green);
119
119
  overflow: hidden;
120
120
  transition: background-color 500ms;
121
121
 
122
122
  .running & {
123
- background: var(--playpilot-light);
123
+ background: theme(light);
124
124
  }
125
125
  }
126
126
 
@@ -137,7 +137,7 @@
137
137
  transform: translateY(-50%);
138
138
  width: 100%;
139
139
  height: 20rem;
140
- background: var(--playpilot-green);
140
+ background: theme(green);
141
141
  transform-origin: left 50%;
142
142
  animation: rotate 2000ms infinite linear;
143
143
  filter: blur(5rem);
@@ -152,13 +152,13 @@
152
152
  .loading-bar-progress {
153
153
  height: 0.5em;
154
154
  border-radius: 0.25rem;
155
- background: var(--playpilot-dark);
155
+ background: theme(dark);
156
156
  }
157
157
 
158
158
  .loading-bar-fill {
159
159
  height: 100%;
160
160
  border-radius: 0.25rem;
161
- background: var(--playpilot-green);
161
+ background: theme(green);
162
162
  transition: width 200ms;
163
163
  }
164
164
 
@@ -194,18 +194,18 @@
194
194
  appearance: none;
195
195
  margin-top: margin(0.25);
196
196
  padding: margin(0.25);
197
- border: 2px solid var(--playpilot-content-light);
197
+ border: 2px solid theme(content-light);
198
198
  border-radius: margin(0.25);
199
- background: var(--playpilot-light);
199
+ background: theme(light);
200
200
  font-family: inherit;
201
- color: var(--playpilot-text-color-alt);
201
+ color: theme(text-color-alt);
202
202
  font-size: margin(0.75);
203
203
  line-height: 1;
204
204
  cursor: pointer;
205
205
 
206
206
  &:hover {
207
- background: var(--playpilot-content-light);
208
- color: var(--playpilot-text-color);
207
+ background: theme(content-light);
208
+ color: theme(text-color);
209
209
  }
210
210
  }
211
211
  </style>
@@ -18,14 +18,14 @@
18
18
  .alert {
19
19
  padding: margin(0.5);
20
20
  border-radius: margin(0.5);
21
- border: 1px solid var(--playpilot-error);
22
- background: var(--playpilot-error-dark);
21
+ border: 1px solid theme(error);
22
+ background: theme(error-dark);
23
23
  font-size: margin(0.75);
24
- font-family: var(--playpilot-font-family);
24
+ font-family: theme(font-family);
25
25
 
26
26
  &.warning {
27
- border-color: var(--playpilot-warning);
28
- background: var(--playpilot-warning-dark);
27
+ border-color: theme(warning);
28
+ background: theme(warning-dark);
29
29
  }
30
30
 
31
31
  &.fixed {
@@ -119,7 +119,7 @@
119
119
  bottom: 60%;
120
120
  left: 0;
121
121
  border-radius: margin(1);
122
- background: var(--playpilot-text-color);
122
+ background: theme(text-color);
123
123
  opacity: 0.15;
124
124
  transition: opacity 100ms, transform 50ms;
125
125
  }
@@ -239,7 +239,14 @@
239
239
  </section>
240
240
 
241
241
  <style lang="scss">
242
+ @use "lib/scss/_theme";
243
+
242
244
  .editor {
245
+ // Reset any possible theme overrides back to their defaults
246
+ @each $name, $value in theme.$variables {
247
+ --playpilot-#{$name}: #{$value};
248
+ }
249
+
243
250
  z-index: 2147483646; // 1 less than as high as she goes;
244
251
  display: flex;
245
252
  flex-direction: column;
@@ -253,10 +260,10 @@
253
260
  margin: 0;
254
261
  padding: margin(1);
255
262
  border-radius: margin(1.5);
256
- background: var(--playpilot-dark);
257
- box-shadow: var(--playpilot-shadow-large);
258
- color: var(--playpilot-text-color);
259
- font-family: var(--playpilot-font-family);
263
+ background: theme(dark);
264
+ box-shadow: theme(shadow-large);
265
+ color: theme(text-color);
266
+ font-family: theme(font-family);
260
267
  transition: border-radius 100ms;
261
268
  overflow-y: auto;
262
269
  overflow-x: hidden;
@@ -273,7 +280,7 @@
273
280
  border-radius: margin(2);
274
281
  margin-left: auto;
275
282
  padding-right: margin(0.5);
276
- color: var(--playpilot-text-color-alt);
283
+ color: theme(text-color-alt);
277
284
  font-size: margin(0.85);
278
285
  }
279
286
 
@@ -301,7 +308,7 @@
301
308
  padding: margin(1) margin(1) margin(1) margin(1.5);
302
309
  margin: 0 margin(-1) 0;
303
310
  border: 0;
304
- background: var(--playpilot-dark);
311
+ background: theme(dark);
305
312
 
306
313
  .loading & {
307
314
  margin: margin(-1);
@@ -310,7 +317,7 @@
310
317
 
311
318
  .heading {
312
319
  margin: 0 margin(0.75) 0 0;
313
- color: var(--playpilot-text-color);
320
+ color: theme(text-color);
314
321
  font-size: margin(1.25);
315
322
  font-weight: normal;
316
323
  line-height: normal;
@@ -324,7 +331,7 @@
324
331
  padding: 0;
325
332
  margin-right: auto;
326
333
  border-radius: 50%;
327
- background: var(--playpilot-green);
334
+ background: theme(green);
328
335
  line-height: margin(1.5);
329
336
  text-align: center;
330
337
  font-size: margin(0.85);
@@ -339,7 +346,7 @@
339
346
  padding: margin(0.5);
340
347
  font-size: margin(0.85);
341
348
  font-style: italic;
342
- color: var(--playpilot-text-color-alt);
349
+ color: theme(text-color-alt);
343
350
  }
344
351
 
345
352
  .save {
@@ -353,23 +360,23 @@
353
360
  padding: margin(0.5);
354
361
  border: 0;
355
362
  border-radius: margin(2);
356
- background: var(--playpilot-content);
357
- box-shadow: 0 0 margin(1) margin(1) var(--playpilot-dark);
363
+ background: theme(content);
364
+ box-shadow: 0 0 margin(1) margin(1) theme(dark);
358
365
  transition: opacity 100ms;
359
366
  font-family: inherit;
360
- color: var(--playpilot-text-color-alt);
367
+ color: theme(text-color-alt);
361
368
  font-size: margin(0.85);
362
369
  cursor: pointer;
363
370
 
364
371
  &:hover {
365
- background: var(--playpilot-content-light);
366
- color: var(--playpilot-text-color);
372
+ background: theme(content-light);
373
+ color: theme(text-color);
367
374
  }
368
375
 
369
376
  &[disabled] {
370
377
  opacity: 0.75;
371
- background: var(--playpilot-light);
372
- color: var(--playpilot-content-light);
378
+ background: theme(light);
379
+ color: theme(content-light);
373
380
  }
374
381
  }
375
382
 
@@ -389,7 +396,7 @@
389
396
  width: 100%;
390
397
  height: 100%;
391
398
  padding: margin(1.5);
392
- background: var(--playpilot-dark);
399
+ background: theme(dark);
393
400
  overflow-y: auto;
394
401
  }
395
402
  </style>
@@ -177,19 +177,19 @@
177
177
  <style lang="scss">
178
178
  .item {
179
179
  padding: margin(1) margin(0.5) margin(1) margin(0.5);
180
- border-bottom: 1px solid var(--playpilot-lighter);
180
+ border-bottom: 1px solid theme(lighter);
181
181
  transition: outline-offset 100ms;
182
182
 
183
183
  &:hover,
184
184
  &.highlighted {
185
185
  border-radius: margin(0.5);
186
186
  border-color: transparent;
187
- outline: 2px solid var(--playpilot-content);
187
+ outline: 2px solid theme(content);
188
188
  outline-offset: 1px;
189
189
  }
190
190
 
191
191
  &.highlighted {
192
- outline: 2px solid var(--playpilot-primary);
192
+ outline: 2px solid theme(primary);
193
193
  }
194
194
  }
195
195
 
@@ -204,7 +204,7 @@
204
204
  width: margin(2);
205
205
  height: margin(3);
206
206
  border-radius: margin(0.25);
207
- background: var(--playpilot-content);
207
+ background: theme(content);
208
208
 
209
209
  .inactive & {
210
210
  opacity: 0.35;
@@ -220,11 +220,11 @@
220
220
  font-size: 0.7em;
221
221
  line-height: 150%;
222
222
  margin-right: margin(-0.5);
223
- color: var(--playpilot-text-color-alt);
223
+ color: theme(text-color-alt);
224
224
  opacity: 0.75;
225
225
 
226
226
  :global(em) {
227
- color: var(--playpilot-text-color);
227
+ color: theme(text-color);
228
228
  font-weight: bold;
229
229
  }
230
230
  }
@@ -244,7 +244,7 @@
244
244
  text-decoration: underline;
245
245
 
246
246
  &:hover {
247
- color: var(--playpilot-text-color);
247
+ color: theme(text-color);
248
248
  }
249
249
  }
250
250
 
@@ -271,12 +271,12 @@
271
271
  text-align: left;
272
272
  font-family: inherit;
273
273
  white-space: nowrap;
274
- color: var(--playpilot-text-color-alt);
274
+ color: theme(text-color-alt);
275
275
  cursor: pointer;
276
276
 
277
277
  &:hover {
278
- color: var(--playpilot-text-color);
279
- background-color: var(--playpilot-content-light);
278
+ color: theme(text-color);
279
+ background-color: theme(content-light);
280
280
  }
281
281
 
282
282
  &:first-child {
@@ -304,9 +304,9 @@
304
304
  height: margin(1.5);
305
305
  border: 0;
306
306
  border-radius: 50%;
307
- background: var(--playpilot-content);
308
- color: var(--playpilot-text-color);
309
- box-shadow: var(--playpilot-shadow);
307
+ background: theme(content);
308
+ color: theme(text-color);
309
+ box-shadow: theme(shadow);
310
310
  cursor: pointer;
311
311
 
312
312
  &:hover {
@@ -326,7 +326,7 @@
326
326
  margin-bottom: margin(0.25);
327
327
  opacity: 0.75;
328
328
  font-size: margin(0.675);
329
- color: var(--playpilot-text-color-alt);
329
+ color: theme(text-color-alt);
330
330
  }
331
331
 
332
332
  .offset {
@@ -35,8 +35,8 @@
35
35
  border: 0;
36
36
  padding: margin(0.75);
37
37
  border-radius: 50%;
38
- background: var(--playpilot-light);
39
- box-shadow: var(--playpilot-shadow-large);
38
+ background: theme(light);
39
+ box-shadow: theme(shadow-large);
40
40
  transition: transform 50ms;
41
41
  line-height: margin(1.5);
42
42
  text-align: center;
@@ -62,7 +62,7 @@
62
62
  width: margin(1.5);
63
63
  height: margin(1.5);
64
64
  padding: margin(0.25);
65
- background: var(--playpilot-content);
65
+ background: theme(content);
66
66
  color: white;
67
67
 
68
68
  :global(svg) {