Skip to content

Commit 3b801c0

Browse files
authored
Merge pull request #65 from nuthx/dev-2.2.1
Dev 2.2.1
2 parents 9adf798 + 53e3c93 commit 3b801c0

2 files changed

Lines changed: 37 additions & 11 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "subtitle-renamer",
33
"private": true,
4-
"version": "2.2.0",
4+
"version": "2.2.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

ui/globals.css

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,43 @@
11
@import "tailwindcss";
22

3-
@theme {
4-
--color-accent: light-dark(#1DA0E2, #1DA0E2);
3+
:root {
4+
--app-color-primary: hsl(0 0 20);
5+
--app-color-secondary: hsl(0 0 20 / 0.6);
6+
--app-color-muted: hsl(0 0 20 / 0.24);
57

6-
--color-primary: light-dark(hsl(0 0 20), hsl(0 0 90));
7-
--color-secondary: light-dark(hsl(0 0 20 / 0.6), hsl(0 0 90 / 0.5));
8-
--color-muted: light-dark(hsl(0 0 20 / 0.24), hsl(0 0 90 / 0.2));
8+
--app-color-border: hsl(0 0 0 / 0.1);
9+
--app-color-background: hsl(0 0 100);
10+
--app-color-background-dark: hsl(0 0 96);
911

10-
--color-border: light-dark(hsl(0 0 0 / 0.1), hsl(0 0 100 / 0.1));
11-
--color-background: light-dark(hsl(0 0 100), hsl(0 0 12));
12-
--color-background-dark: light-dark(hsl(0 0 96), hsl(0 0 20));
12+
--app-color-accent: #1DA0E2;
13+
--app-color-error: #FB2C37;
14+
}
15+
16+
@media (prefers-color-scheme: dark) {
17+
:root {
18+
--app-color-primary: hsl(0 0 90);
19+
--app-color-secondary: hsl(0 0 90 / 0.5);
20+
--app-color-muted: hsl(0 0 90 / 0.2);
21+
22+
--app-color-border: hsl(0 0 100 / 0.1);
23+
--app-color-background: hsl(0 0 12);
24+
--app-color-background-dark: hsl(0 0 20);
25+
26+
--app-color-error: #FF6467;
27+
}
28+
}
29+
30+
@theme inline {
31+
--color-primary: var(--app-color-primary);
32+
--color-secondary: var(--app-color-secondary);
33+
--color-muted: var(--app-color-muted);
34+
35+
--color-border: var(--app-color-border);
36+
--color-background: var(--app-color-background);
37+
--color-background-dark: var(--app-color-background-dark);
1338

14-
--color-error: light-dark(#FB2C37, #FF6467);
39+
--color-accent: var(--app-color-accent);
40+
--color-error: var(--app-color-error);
1541
}
1642

1743
@layer base {
@@ -20,7 +46,7 @@
2046
}
2147

2248
body {
23-
@apply text-sm text-primary antialiased select-none overflow-hidden scheme-light-dark;
49+
@apply text-sm text-primary antialiased select-none overflow-hidden;
2450
}
2551

2652
h1, h2, h3, h4, h5, h6, span, p, img {

0 commit comments

Comments
 (0)