@poppyui/core 0.4.0 → 0.4.1-next.ffa9c7b
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.
- package/CHANGELOG.md +6 -0
- package/README.md +21 -0
- package/dist/themes/aurora.css +28 -0
- package/dist/themes/dark.css +28 -0
- package/dist/themes/desert.css +28 -0
- package/dist/themes/earth.css +28 -0
- package/dist/themes/forest.css +28 -0
- package/dist/themes/forge.css +28 -0
- package/dist/themes/gamma.css +28 -0
- package/dist/themes/liberty.css +28 -0
- package/dist/themes/light.css +28 -0
- package/dist/themes/mars.css +28 -0
- package/dist/themes/mercury.css +28 -0
- package/dist/themes/moon.css +28 -0
- package/dist/themes/neptune.css +28 -0
- package/dist/themes/pluto.css +28 -0
- package/dist/themes/sun.css +28 -0
- package/dist/themes/titan.css +28 -0
- package/dist/themes/venus.css +28 -0
- package/dist/themes/web.css +28 -0
- package/dist/themes.css +403 -0
- package/dist/themes.min.css +1 -0
- package/package.json +4 -1
- package/src/themes/aurora.css +32 -0
- package/src/themes/desert.css +32 -0
- package/src/themes/earth.css +32 -0
- package/src/themes/forest.css +32 -0
- package/src/themes/forge.css +32 -0
- package/src/themes/gamma.css +32 -0
- package/src/themes/liberty.css +32 -0
- package/src/themes/mars.css +32 -0
- package/src/themes/mercury.css +32 -0
- package/src/themes/moon.css +32 -0
- package/src/themes/neptune.css +32 -0
- package/src/themes/pluto.css +32 -0
- package/src/themes/sun.css +32 -0
- package/src/themes/titan.css +32 -0
- package/src/themes/venus.css +32 -0
- package/src/themes/web.css +32 -0
- package/src/themes.css +21 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Mars (dark): Rust-red dust on a dark basalt plain. Apply with [data-theme="mars"] on any ancestor. */
|
|
2
|
+
@layer poppy.tokens, poppy.base, poppy.components;
|
|
3
|
+
|
|
4
|
+
@layer poppy.tokens {
|
|
5
|
+
[data-theme="mars"] {
|
|
6
|
+
color-scheme: dark;
|
|
7
|
+
|
|
8
|
+
--color-base-100: oklch(20% 0.03 30);
|
|
9
|
+
--color-base-200: oklch(24.5% 0.032 30);
|
|
10
|
+
--color-base-300: oklch(30% 0.036 30);
|
|
11
|
+
--color-base-content: oklch(94% 0.012 30);
|
|
12
|
+
--color-muted: oklch(70% 0.03 30);
|
|
13
|
+
--color-border: oklch(40% 0.035 30);
|
|
14
|
+
--color-field: oklch(94% 0.012 30 / 0.06);
|
|
15
|
+
|
|
16
|
+
--color-primary: oklch(69% 0.17 35);
|
|
17
|
+
--color-primary-content: oklch(20% 0.04 35);
|
|
18
|
+
--color-secondary: oklch(67.5% 0.1 75);
|
|
19
|
+
--color-secondary-content: oklch(20% 0.04 75);
|
|
20
|
+
--color-danger: oklch(72% 0.16 27);
|
|
21
|
+
--color-danger-content: oklch(20% 0.04 27);
|
|
22
|
+
--color-success: oklch(76% 0.14 155);
|
|
23
|
+
--color-success-content: oklch(20% 0.04 155);
|
|
24
|
+
--color-warning: oklch(83% 0.14 80);
|
|
25
|
+
--color-warning-content: oklch(20% 0.04 80);
|
|
26
|
+
--color-info: oklch(76% 0.12 240);
|
|
27
|
+
--color-info-content: oklch(20% 0.04 240);
|
|
28
|
+
|
|
29
|
+
--color-focus: oklch(69% 0.17 35);
|
|
30
|
+
--color-backdrop: oklch(5% 0 0 / 0.6);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Mercury (light): Quicksilver cool, with a copper spark. Apply with [data-theme="mercury"] on any ancestor. */
|
|
2
|
+
@layer poppy.tokens, poppy.base, poppy.components;
|
|
3
|
+
|
|
4
|
+
@layer poppy.tokens {
|
|
5
|
+
[data-theme="mercury"] {
|
|
6
|
+
color-scheme: light;
|
|
7
|
+
|
|
8
|
+
--color-base-100: oklch(98.5% 0.011 235);
|
|
9
|
+
--color-base-200: oklch(95.5% 0.02 235);
|
|
10
|
+
--color-base-300: oklch(91.5% 0.032 235);
|
|
11
|
+
--color-base-content: oklch(24% 0.032 235);
|
|
12
|
+
--color-muted: oklch(49% 0.027 235);
|
|
13
|
+
--color-border: oklch(82% 0.027 235);
|
|
14
|
+
--color-field: var(--color-base-100);
|
|
15
|
+
|
|
16
|
+
--color-primary: oklch(47% 0.14 205);
|
|
17
|
+
--color-primary-content: oklch(100% 0 0);
|
|
18
|
+
--color-secondary: oklch(51.5% 0.15 45);
|
|
19
|
+
--color-secondary-content: oklch(100% 0 0);
|
|
20
|
+
--color-danger: oklch(50% 0.19 27);
|
|
21
|
+
--color-danger-content: oklch(100% 0 0);
|
|
22
|
+
--color-success: oklch(50% 0.13 155);
|
|
23
|
+
--color-success-content: oklch(100% 0 0);
|
|
24
|
+
--color-warning: oklch(80% 0.15 80);
|
|
25
|
+
--color-warning-content: oklch(20% 0.04 80);
|
|
26
|
+
--color-info: oklch(52% 0.14 240);
|
|
27
|
+
--color-info-content: oklch(100% 0 0);
|
|
28
|
+
|
|
29
|
+
--color-focus: oklch(47% 0.14 205);
|
|
30
|
+
--color-backdrop: oklch(20% 0.02 235 / 0.45);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Moon (dark): Silver on midnight. A white-gray primary that works because the surface is dark. Apply with [data-theme="moon"] on any ancestor. */
|
|
2
|
+
@layer poppy.tokens, poppy.base, poppy.components;
|
|
3
|
+
|
|
4
|
+
@layer poppy.tokens {
|
|
5
|
+
[data-theme="moon"] {
|
|
6
|
+
color-scheme: dark;
|
|
7
|
+
|
|
8
|
+
--color-base-100: oklch(20% 0.018 265);
|
|
9
|
+
--color-base-200: oklch(24.5% 0.019 265);
|
|
10
|
+
--color-base-300: oklch(30% 0.022 265);
|
|
11
|
+
--color-base-content: oklch(94% 0.007 265);
|
|
12
|
+
--color-muted: oklch(70% 0.018 265);
|
|
13
|
+
--color-border: oklch(40% 0.021 265);
|
|
14
|
+
--color-field: oklch(94% 0.007 265 / 0.06);
|
|
15
|
+
|
|
16
|
+
--color-primary: oklch(90% 0.012 265);
|
|
17
|
+
--color-primary-content: oklch(20% 0.04 265);
|
|
18
|
+
--color-secondary: oklch(67.5% 0.07 250);
|
|
19
|
+
--color-secondary-content: oklch(20% 0.04 250);
|
|
20
|
+
--color-danger: oklch(72% 0.16 27);
|
|
21
|
+
--color-danger-content: oklch(20% 0.04 27);
|
|
22
|
+
--color-success: oklch(76% 0.14 155);
|
|
23
|
+
--color-success-content: oklch(20% 0.04 155);
|
|
24
|
+
--color-warning: oklch(83% 0.14 80);
|
|
25
|
+
--color-warning-content: oklch(20% 0.04 80);
|
|
26
|
+
--color-info: oklch(76% 0.12 240);
|
|
27
|
+
--color-info-content: oklch(20% 0.04 240);
|
|
28
|
+
|
|
29
|
+
--color-focus: oklch(90% 0.012 265);
|
|
30
|
+
--color-backdrop: oklch(5% 0 0 / 0.6);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Neptune (dark): Deep-sea navy with electric blue. Apply with [data-theme="neptune"] on any ancestor. */
|
|
2
|
+
@layer poppy.tokens, poppy.base, poppy.components;
|
|
3
|
+
|
|
4
|
+
@layer poppy.tokens {
|
|
5
|
+
[data-theme="neptune"] {
|
|
6
|
+
color-scheme: dark;
|
|
7
|
+
|
|
8
|
+
--color-base-100: oklch(20% 0.048 265);
|
|
9
|
+
--color-base-200: oklch(24.5% 0.051 265);
|
|
10
|
+
--color-base-300: oklch(30% 0.058 265);
|
|
11
|
+
--color-base-content: oklch(94% 0.019 265);
|
|
12
|
+
--color-muted: oklch(70% 0.048 265);
|
|
13
|
+
--color-border: oklch(40% 0.056 265);
|
|
14
|
+
--color-field: oklch(94% 0.019 265 / 0.06);
|
|
15
|
+
|
|
16
|
+
--color-primary: oklch(68.5% 0.19 258);
|
|
17
|
+
--color-primary-content: oklch(20% 0.04 258);
|
|
18
|
+
--color-secondary: oklch(65% 0.13 200);
|
|
19
|
+
--color-secondary-content: oklch(20% 0.04 200);
|
|
20
|
+
--color-danger: oklch(72% 0.16 27);
|
|
21
|
+
--color-danger-content: oklch(20% 0.04 27);
|
|
22
|
+
--color-success: oklch(76% 0.14 155);
|
|
23
|
+
--color-success-content: oklch(20% 0.04 155);
|
|
24
|
+
--color-warning: oklch(83% 0.14 80);
|
|
25
|
+
--color-warning-content: oklch(20% 0.04 80);
|
|
26
|
+
--color-info: oklch(76% 0.12 240);
|
|
27
|
+
--color-info-content: oklch(20% 0.04 240);
|
|
28
|
+
|
|
29
|
+
--color-focus: oklch(68.5% 0.19 258);
|
|
30
|
+
--color-backdrop: oklch(5% 0 0 / 0.6);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Pluto (dark): Distant, dim, and unexpectedly magenta. Apply with [data-theme="pluto"] on any ancestor. */
|
|
2
|
+
@layer poppy.tokens, poppy.base, poppy.components;
|
|
3
|
+
|
|
4
|
+
@layer poppy.tokens {
|
|
5
|
+
[data-theme="pluto"] {
|
|
6
|
+
color-scheme: dark;
|
|
7
|
+
|
|
8
|
+
--color-base-100: oklch(20% 0.036 320);
|
|
9
|
+
--color-base-200: oklch(24.5% 0.038 320);
|
|
10
|
+
--color-base-300: oklch(30% 0.043 320);
|
|
11
|
+
--color-base-content: oklch(94% 0.014 320);
|
|
12
|
+
--color-muted: oklch(70% 0.036 320);
|
|
13
|
+
--color-border: oklch(40% 0.042 320);
|
|
14
|
+
--color-field: oklch(94% 0.014 320 / 0.06);
|
|
15
|
+
|
|
16
|
+
--color-primary: oklch(69.5% 0.2 335);
|
|
17
|
+
--color-primary-content: oklch(20% 0.04 335);
|
|
18
|
+
--color-secondary: oklch(68% 0.13 285);
|
|
19
|
+
--color-secondary-content: oklch(20% 0.04 285);
|
|
20
|
+
--color-danger: oklch(72% 0.16 27);
|
|
21
|
+
--color-danger-content: oklch(20% 0.04 27);
|
|
22
|
+
--color-success: oklch(76% 0.14 155);
|
|
23
|
+
--color-success-content: oklch(20% 0.04 155);
|
|
24
|
+
--color-warning: oklch(83% 0.14 80);
|
|
25
|
+
--color-warning-content: oklch(20% 0.04 80);
|
|
26
|
+
--color-info: oklch(76% 0.12 240);
|
|
27
|
+
--color-info-content: oklch(20% 0.04 240);
|
|
28
|
+
|
|
29
|
+
--color-focus: oklch(69.5% 0.2 335);
|
|
30
|
+
--color-backdrop: oklch(5% 0 0 / 0.6);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Sun (light): Warm cream and blazing orange. Apply with [data-theme="sun"] on any ancestor. */
|
|
2
|
+
@layer poppy.tokens, poppy.base, poppy.components;
|
|
3
|
+
|
|
4
|
+
@layer poppy.tokens {
|
|
5
|
+
[data-theme="sun"] {
|
|
6
|
+
color-scheme: light;
|
|
7
|
+
|
|
8
|
+
--color-base-100: oklch(98.5% 0.012 85);
|
|
9
|
+
--color-base-200: oklch(95.5% 0.022 85);
|
|
10
|
+
--color-base-300: oklch(91.5% 0.035 85);
|
|
11
|
+
--color-base-content: oklch(24% 0.035 85);
|
|
12
|
+
--color-muted: oklch(49% 0.03 85);
|
|
13
|
+
--color-border: oklch(82% 0.03 85);
|
|
14
|
+
--color-field: var(--color-base-100);
|
|
15
|
+
|
|
16
|
+
--color-primary: oklch(52% 0.2 48);
|
|
17
|
+
--color-primary-content: oklch(100% 0 0);
|
|
18
|
+
--color-secondary: oklch(52% 0.17 305);
|
|
19
|
+
--color-secondary-content: oklch(100% 0 0);
|
|
20
|
+
--color-danger: oklch(50% 0.19 27);
|
|
21
|
+
--color-danger-content: oklch(100% 0 0);
|
|
22
|
+
--color-success: oklch(50% 0.13 155);
|
|
23
|
+
--color-success-content: oklch(100% 0 0);
|
|
24
|
+
--color-warning: oklch(80% 0.15 80);
|
|
25
|
+
--color-warning-content: oklch(20% 0.04 80);
|
|
26
|
+
--color-info: oklch(52% 0.14 240);
|
|
27
|
+
--color-info-content: oklch(100% 0 0);
|
|
28
|
+
|
|
29
|
+
--color-focus: oklch(52% 0.2 48);
|
|
30
|
+
--color-backdrop: oklch(20% 0.02 85 / 0.45);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Titan (dark): Near-black, burnished gold, a hint of violet. Apply with [data-theme="titan"] on any ancestor. */
|
|
2
|
+
@layer poppy.tokens, poppy.base, poppy.components;
|
|
3
|
+
|
|
4
|
+
@layer poppy.tokens {
|
|
5
|
+
[data-theme="titan"] {
|
|
6
|
+
color-scheme: dark;
|
|
7
|
+
|
|
8
|
+
--color-base-100: oklch(20% 0.015 290);
|
|
9
|
+
--color-base-200: oklch(24.5% 0.016 290);
|
|
10
|
+
--color-base-300: oklch(30% 0.018 290);
|
|
11
|
+
--color-base-content: oklch(94% 0.006 290);
|
|
12
|
+
--color-muted: oklch(70% 0.015 290);
|
|
13
|
+
--color-border: oklch(40% 0.018 290);
|
|
14
|
+
--color-field: oklch(94% 0.006 290 / 0.06);
|
|
15
|
+
|
|
16
|
+
--color-primary: oklch(67.5% 0.15 85);
|
|
17
|
+
--color-primary-content: oklch(20% 0.04 85);
|
|
18
|
+
--color-secondary: oklch(69% 0.15 300);
|
|
19
|
+
--color-secondary-content: oklch(20% 0.04 300);
|
|
20
|
+
--color-danger: oklch(72% 0.16 27);
|
|
21
|
+
--color-danger-content: oklch(20% 0.04 27);
|
|
22
|
+
--color-success: oklch(76% 0.14 155);
|
|
23
|
+
--color-success-content: oklch(20% 0.04 155);
|
|
24
|
+
--color-warning: oklch(83% 0.14 80);
|
|
25
|
+
--color-warning-content: oklch(20% 0.04 80);
|
|
26
|
+
--color-info: oklch(76% 0.12 240);
|
|
27
|
+
--color-info-content: oklch(20% 0.04 240);
|
|
28
|
+
|
|
29
|
+
--color-focus: oklch(67.5% 0.15 85);
|
|
30
|
+
--color-backdrop: oklch(5% 0 0 / 0.6);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Venus (light): Blush clouds, rose primary, gold accents. Apply with [data-theme="venus"] on any ancestor. */
|
|
2
|
+
@layer poppy.tokens, poppy.base, poppy.components;
|
|
3
|
+
|
|
4
|
+
@layer poppy.tokens {
|
|
5
|
+
[data-theme="venus"] {
|
|
6
|
+
color-scheme: light;
|
|
7
|
+
|
|
8
|
+
--color-base-100: oklch(98.5% 0.012 8);
|
|
9
|
+
--color-base-200: oklch(95.5% 0.022 8);
|
|
10
|
+
--color-base-300: oklch(91.5% 0.035 8);
|
|
11
|
+
--color-base-content: oklch(24% 0.035 8);
|
|
12
|
+
--color-muted: oklch(49% 0.03 8);
|
|
13
|
+
--color-border: oklch(82% 0.03 8);
|
|
14
|
+
--color-field: var(--color-base-100);
|
|
15
|
+
|
|
16
|
+
--color-primary: oklch(52.5% 0.2 5);
|
|
17
|
+
--color-primary-content: oklch(100% 0 0);
|
|
18
|
+
--color-secondary: oklch(50% 0.13 75);
|
|
19
|
+
--color-secondary-content: oklch(100% 0 0);
|
|
20
|
+
--color-danger: oklch(50% 0.19 27);
|
|
21
|
+
--color-danger-content: oklch(100% 0 0);
|
|
22
|
+
--color-success: oklch(50% 0.13 155);
|
|
23
|
+
--color-success-content: oklch(100% 0 0);
|
|
24
|
+
--color-warning: oklch(80% 0.15 80);
|
|
25
|
+
--color-warning-content: oklch(20% 0.04 80);
|
|
26
|
+
--color-info: oklch(52% 0.14 240);
|
|
27
|
+
--color-info-content: oklch(100% 0 0);
|
|
28
|
+
|
|
29
|
+
--color-focus: oklch(52.5% 0.2 5);
|
|
30
|
+
--color-backdrop: oklch(20% 0.02 8 / 0.45);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Web (dark): Red suit, blue night, city lights. Apply with [data-theme="web"] on any ancestor. */
|
|
2
|
+
@layer poppy.tokens, poppy.base, poppy.components;
|
|
3
|
+
|
|
4
|
+
@layer poppy.tokens {
|
|
5
|
+
[data-theme="web"] {
|
|
6
|
+
color-scheme: dark;
|
|
7
|
+
|
|
8
|
+
--color-base-100: oklch(20% 0.042 260);
|
|
9
|
+
--color-base-200: oklch(24.5% 0.045 260);
|
|
10
|
+
--color-base-300: oklch(30% 0.05 260);
|
|
11
|
+
--color-base-content: oklch(94% 0.017 260);
|
|
12
|
+
--color-muted: oklch(70% 0.042 260);
|
|
13
|
+
--color-border: oklch(40% 0.049 260);
|
|
14
|
+
--color-field: oklch(94% 0.017 260 / 0.06);
|
|
15
|
+
|
|
16
|
+
--color-primary: oklch(70.5% 0.2 25);
|
|
17
|
+
--color-primary-content: oklch(20% 0.04 25);
|
|
18
|
+
--color-secondary: oklch(67.5% 0.17 255);
|
|
19
|
+
--color-secondary-content: oklch(20% 0.04 255);
|
|
20
|
+
--color-danger: oklch(72% 0.16 27);
|
|
21
|
+
--color-danger-content: oklch(20% 0.04 27);
|
|
22
|
+
--color-success: oklch(76% 0.14 155);
|
|
23
|
+
--color-success-content: oklch(20% 0.04 155);
|
|
24
|
+
--color-warning: oklch(83% 0.14 80);
|
|
25
|
+
--color-warning-content: oklch(20% 0.04 80);
|
|
26
|
+
--color-info: oklch(76% 0.12 240);
|
|
27
|
+
--color-info-content: oklch(20% 0.04 240);
|
|
28
|
+
|
|
29
|
+
--color-focus: oklch(70.5% 0.2 25);
|
|
30
|
+
--color-backdrop: oklch(5% 0 0 / 0.6);
|
|
31
|
+
}
|
|
32
|
+
}
|
package/src/themes.css
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Extra themes. Sky: sun, moon, mercury, venus, earth, mars, neptune, pluto.
|
|
2
|
+
Nature: aurora, forest, desert. Heroes: gamma, titan, forge, liberty, web.
|
|
3
|
+
Opt in with this file; light and dark already ship in poppy.css. */
|
|
4
|
+
@layer poppy.tokens, poppy.base, poppy.components;
|
|
5
|
+
|
|
6
|
+
@import "./themes/sun.css";
|
|
7
|
+
@import "./themes/moon.css";
|
|
8
|
+
@import "./themes/mercury.css";
|
|
9
|
+
@import "./themes/venus.css";
|
|
10
|
+
@import "./themes/earth.css";
|
|
11
|
+
@import "./themes/mars.css";
|
|
12
|
+
@import "./themes/neptune.css";
|
|
13
|
+
@import "./themes/pluto.css";
|
|
14
|
+
@import "./themes/aurora.css";
|
|
15
|
+
@import "./themes/forest.css";
|
|
16
|
+
@import "./themes/desert.css";
|
|
17
|
+
@import "./themes/gamma.css";
|
|
18
|
+
@import "./themes/titan.css";
|
|
19
|
+
@import "./themes/forge.css";
|
|
20
|
+
@import "./themes/liberty.css";
|
|
21
|
+
@import "./themes/web.css";
|