@pimolu/themes 0.0.0-stage → 0.1.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,46 @@
1
- {
2
- "name": "@pimolu/themes",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "@pimolu/themes",
3
+ "version": "0.1.0-beta.2",
4
+ "description": "Pimolu colour themes, style presets and visual token data.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/pimoludev/ui.git",
9
+ "directory": "packages/themes"
10
+ },
11
+ "publishConfig": {
12
+ "access": "public"
13
+ },
14
+ "type": "module",
15
+ "sideEffects": ["**/*.css"],
16
+ "files": [
17
+ "dist",
18
+ "style-*.css",
19
+ "src/presets",
20
+ "src/visual"
21
+ ],
22
+ "scripts": {
23
+ "build:presets": "node scripts/build-presets.mjs",
24
+ "build:visuals": "node scripts/build-visuals.mjs",
25
+ "build:default": "node scripts/build-default.mjs",
26
+ "prepack": "pnpm build:default && pnpm build:presets && pnpm build:visuals",
27
+ "test": "node --test"
28
+ },
29
+ "exports": {
30
+ "./styles.css": "./dist/styles.css",
31
+ "./presets.css": "./style-presets.css",
32
+ "./themes.json": "./dist/themes.json",
33
+ "./presets": {
34
+ "types": "./dist/presets.d.ts",
35
+ "default": "./dist/presets.js"
36
+ },
37
+ "./visuals": {
38
+ "types": "./dist/visuals.d.ts",
39
+ "default": "./dist/visuals.js"
40
+ }
41
+
42
+ },
43
+ "dependencies": {
44
+ "@pimolu/design-tokens": "0.1.0-beta.2"
45
+ }
46
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "light": {
3
+ "primary": "#5B55E7",
4
+ "primaryHover": "#4A44D4",
5
+ "primaryForeground": "#FFFFFF",
6
+ "secondary": "#ECEEF6",
7
+ "secondaryHover": "#E2E6F0",
8
+ "secondaryForeground": "#171B2B",
9
+ "background": "#F8F9FC",
10
+ "foreground": "#171B2B",
11
+ "muted": "#F1F3F9",
12
+ "mutedForeground": "#5C6479",
13
+ "border": "#E4E7EF",
14
+ "controlBorder": "#8A93A8",
15
+ "focusRing": "#5B55E7",
16
+ "surface": "#FFFFFF",
17
+ "surfaceForeground": "#171B2B",
18
+ "accent": "#0C9E8B",
19
+ "accentForeground": "#FFFFFF"
20
+ },
21
+ "dark": {
22
+ "primary": "#7C77F0",
23
+ "primaryHover": "#918DF5",
24
+ "primaryForeground": "#0E111A",
25
+ "secondary": "#232838",
26
+ "secondaryHover": "#2C3245",
27
+ "secondaryForeground": "#E8EAF2",
28
+ "background": "#0E111A",
29
+ "foreground": "#E8EAF2",
30
+ "muted": "#1C2130",
31
+ "mutedForeground": "#A7AEC0",
32
+ "border": "#262B3A",
33
+ "controlBorder": "#5A6378",
34
+ "focusRing": "#8A85F0",
35
+ "surface": "#161A26",
36
+ "surfaceForeground": "#E8EAF2",
37
+ "accent": "#2BC4AF",
38
+ "accentForeground": "#062A25"
39
+ }
40
+ }
@@ -0,0 +1,35 @@
1
+
2
+ {
3
+ "light": {
4
+ "primary": "#ffbd2e",
5
+ "primaryHover": "#ffcf56",
6
+ "primaryForeground": "#171717",
7
+ "secondary": "#7dd3fc",
8
+ "secondaryHover": "#bae6fd",
9
+ "secondaryForeground": "#171717",
10
+ "background": "#fff9ed",
11
+ "foreground": "#171717",
12
+ "surface": "#ffffff",
13
+ "surfaceForeground": "#171717",
14
+ "muted": "#fff0c2",
15
+ "mutedForeground": "#525252",
16
+ "border": "#171717",
17
+ "focusRing": "#2563eb"
18
+ },
19
+ "dark": {
20
+ "primary": "#ffbd2e",
21
+ "primaryHover": "#ffcf56",
22
+ "primaryForeground": "#171717",
23
+ "secondary": "#7dd3fc",
24
+ "secondaryHover": "#bae6fd",
25
+ "secondaryForeground": "#171717",
26
+ "background": "#171717",
27
+ "foreground": "#ffffff",
28
+ "surface": "#262626",
29
+ "surfaceForeground": "#ffffff",
30
+ "muted": "#323232",
31
+ "mutedForeground": "#d4d4d4",
32
+ "border": "#ffffff",
33
+ "focusRing": "#ffbd2e"
34
+ }
35
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "light": {
3
+ "primary": "#6265ef",
4
+ "primaryHover": "#4f46e5",
5
+ "primaryForeground": "#ffffff",
6
+ "background": "#eaf0ff",
7
+ "foreground": "#17213b",
8
+ "surface": "rgba(255, 255, 255, 0.72)",
9
+ "surfaceForeground": "#17213b",
10
+ "muted": "rgba(255, 255, 255, 0.65)",
11
+ "mutedForeground": "#475569",
12
+ "border": "rgba(255, 255, 255, 0.75)",
13
+ "focusRing": "#6265ef",
14
+ "glassBg": "rgba(255, 255, 255, 0.72)",
15
+ "glassBgHover": "rgba(255, 255, 255, 0.88)",
16
+ "glassBorder": "rgba(255, 255, 255, 0.85)",
17
+ "secondary": "rgba(255, 255, 255, 0.65)",
18
+ "secondaryHover": "rgba(255, 255, 255, 0.88)",
19
+ "secondaryForeground": "#17213b"
20
+ },
21
+ "dark": {
22
+ "primary": "#818cf8",
23
+ "primaryHover": "#a5b4fc",
24
+ "primaryForeground": "#0f172a",
25
+ "background": "#0b1024",
26
+ "foreground": "#f8fafc",
27
+ "surface": "rgba(15, 23, 42, 0.78)",
28
+ "surfaceForeground": "#f8fafc",
29
+ "muted": "rgba(51, 65, 85, 0.65)",
30
+ "mutedForeground": "#cbd5e1",
31
+ "border": "rgba(255, 255, 255, 0.18)",
32
+ "focusRing": "#a5b4fc",
33
+ "glassBg": "rgba(15, 23, 42, 0.78)",
34
+ "glassBgHover": "rgba(30, 41, 59, 0.9)",
35
+ "glassBorder": "rgba(255, 255, 255, 0.2)",
36
+ "secondary": "rgba(51, 65, 85, 0.65)",
37
+ "secondaryHover": "rgba(71, 85, 105, 0.85)",
38
+ "secondaryForeground": "#f8fafc"
39
+ }
40
+ }
@@ -0,0 +1,52 @@
1
+
2
+ {
3
+ "light": {
4
+ "background": "#faf7f2",
5
+ "foreground": "#24211e",
6
+
7
+ "surface": "#ffffff",
8
+ "surfaceForeground": "#24211e",
9
+
10
+ "primary": "#24211e",
11
+ "primaryHover": "#403a33",
12
+ "primaryForeground": "#faf7f2",
13
+
14
+ "secondary": "#f1eae0",
15
+ "secondaryHover": "#e5d9c8",
16
+ "secondaryForeground": "#24211e",
17
+
18
+ "muted": "#f1eae0",
19
+ "mutedForeground": "#665e54",
20
+
21
+ "border": "#d8c9b3",
22
+ "focusRing": "#926a35",
23
+
24
+ "luxuryGold": "#b38a4a",
25
+ "luxuryDivider": "#d8c9b3"
26
+ },
27
+
28
+ "dark": {
29
+ "background": "#151311",
30
+ "foreground": "#f4eee5",
31
+
32
+ "surface": "#24201c",
33
+ "surfaceForeground": "#f4eee5",
34
+
35
+ "primary": "#e8cf9b",
36
+ "primaryHover": "#f3dfb5",
37
+ "primaryForeground": "#24211e",
38
+
39
+ "secondary": "#342f29",
40
+ "secondaryHover": "#453d34",
41
+ "secondaryForeground": "#f4eee5",
42
+
43
+ "muted": "#2d2822",
44
+ "mutedForeground": "#c4b7a5",
45
+
46
+ "border": "#675743",
47
+ "focusRing": "#e8cf9b",
48
+
49
+ "luxuryGold": "#e8cf9b",
50
+ "luxuryDivider": "#675743"
51
+ }
52
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "light": {
3
+ "primary": "#171717",
4
+ "primaryHover": "#404040",
5
+ "primaryForeground": "#ffffff",
6
+ "secondary": "#e5e5e5",
7
+ "secondaryHover": "#d4d4d4",
8
+ "secondaryForeground": "#171717",
9
+ "background": "#ffffff",
10
+ "foreground": "#171717",
11
+ "muted": "#f5f5f5",
12
+ "mutedForeground": "#737373",
13
+ "border": "#737373",
14
+ "focusRing": "#171717",
15
+ "surface": "#ffffff",
16
+ "surfaceForeground": "#171717"
17
+ },
18
+ "dark": {
19
+ "primary": "#fafafa",
20
+ "primaryHover": "#d4d4d4",
21
+ "primaryForeground": "#171717",
22
+ "secondary": "#333333",
23
+ "secondaryHover": "#404040",
24
+ "secondaryForeground": "#fafafa",
25
+ "background": "#111111",
26
+ "foreground": "#fafafa",
27
+ "muted": "#262626",
28
+ "mutedForeground": "#a3a3a3",
29
+ "border": "#737373",
30
+ "focusRing": "#fafafa",
31
+ "surface": "#262626",
32
+ "surfaceForeground": "#fafafa"
33
+ }
34
+ }
@@ -0,0 +1,46 @@
1
+
2
+ {
3
+ "light": {
4
+ "background": "#fffdf5",
5
+ "foreground": "#171717",
6
+
7
+ "surface": "#ffffff",
8
+ "surfaceForeground": "#171717",
9
+
10
+ "primary": "#dfff57",
11
+ "primaryHover": "#c9ef34",
12
+ "primaryForeground": "#171717",
13
+
14
+ "secondary": "#c4b5fd",
15
+ "secondaryHover": "#b29cf9",
16
+ "secondaryForeground": "#171717",
17
+
18
+ "muted": "#f2eddf",
19
+ "mutedForeground": "#525252",
20
+
21
+ "border": "#171717",
22
+ "focusRing": "#4338ca"
23
+ },
24
+
25
+ "dark": {
26
+ "background": "#171717",
27
+ "foreground": "#fafafa",
28
+
29
+ "surface": "#262626",
30
+ "surfaceForeground": "#fafafa",
31
+
32
+ "primary": "#dfff57",
33
+ "primaryHover": "#edff96",
34
+ "primaryForeground": "#171717",
35
+
36
+ "secondary": "#c4b5fd",
37
+ "secondaryHover": "#ddd6fe",
38
+ "secondaryForeground": "#171717",
39
+
40
+ "muted": "#333333",
41
+ "mutedForeground": "#d4d4d4",
42
+
43
+ "border": "#fafafa",
44
+ "focusRing": "#dfff57"
45
+ }
46
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "light": {
3
+ "control-border-width": "1px",
4
+ "solid-border-color": "transparent",
5
+ "shadow-raised": "none",
6
+ "shadow-sm": "0 1px 2px rgba(15, 23, 42, 0.12)",
7
+ "button-font-weight": "400"
8
+ },
9
+
10
+ "dark": {}
11
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "light": {
3
+ "control-border-width": "2px",
4
+ "solid-border-color": "#171717",
5
+ "shadow-raised": "4px 4px 0 #171717",
6
+ "shadow-sm": "1px 2px 0 #171717",
7
+ "radius-md": "12px",
8
+ "button-font-weight": "400",
9
+ "control-shadow": "var(--pimolu-shadow-raised)",
10
+ "button-active-transform": "translate(2px, 2px)",
11
+ "button-active-shadow": "2px 2px 0 var(--pimolu-border)"
12
+ },
13
+ "dark": {
14
+ "solid-border-color": "#ffffff",
15
+ "shadow-raised": "4px 4px 0 #ffffff",
16
+ "shadow-sm": "1px 2px 0 #ffffff"
17
+ }
18
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "light": {
3
+ "control-border-width": "1px",
4
+ "solid-border-color": "transparent",
5
+ "shadow-raised": "none",
6
+ "shadow-sm": "0 1px 2px rgba(15, 23, 42, 0.12)",
7
+ "button-font-weight": "400"
8
+ },
9
+ "dark": {
10
+ "shadow-sm": "0 1px 2px rgba(0, 0, 0, 0.3)"
11
+ }
12
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "light": {
3
+ "glass-blur": "18px",
4
+ "glass-shadow": "0 8px 32px rgba(31, 38, 135, 0.12)",
5
+ "glass-orb-1": "#a5b4fc",
6
+ "glass-orb-2": "#67e8f9",
7
+ "control-border-width": "1px",
8
+ "solid-border-color": "rgba(255, 255, 255, 0.35)",
9
+ "shadow-raised": "0 6px 20px rgba(79, 70, 229, 0.14)",
10
+ "shadow-sm": "0 2px 8px rgba(31, 38, 135, 0.16)",
11
+ "radius-md": "14px",
12
+ "radius-lg": "20px",
13
+ "button-font-weight": "400"
14
+ },
15
+ "dark": {
16
+ "glass-shadow": "0 8px 32px rgba(0, 0, 0, 0.3)",
17
+ "glass-orb-1": "#4338ca",
18
+ "glass-orb-2": "#0e7490",
19
+ "solid-border-color": "rgba(255, 255, 255, 0.18)",
20
+ "shadow-raised": "0 6px 20px rgba(0, 0, 0, 0.25)",
21
+ "shadow-sm": "0 2px 8px rgba(0, 0, 0, 0.3)"
22
+ }
23
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "light": {
3
+ "font-heading": "Georgia, \"Times New Roman\", serif",
4
+ "font-body": "Arial, Helvetica, sans-serif",
5
+ "control-border-width": "1px",
6
+ "solid-border-color": "transparent",
7
+ "shadow-raised": "0 6px 20px rgba(36, 33, 30, 0.08)",
8
+ "shadow-sm": "0 1px 3px rgba(36, 33, 30, 0.12)",
9
+ "radius-sm": "2px",
10
+ "radius-md": "4px",
11
+ "radius-lg": "8px",
12
+ "button-font-weight": "400",
13
+ "button-letter-spacing": "0.04em",
14
+ "outline-hover-border": "var(--pimolu-luxury-gold)"
15
+ },
16
+ "dark": {
17
+ "shadow-raised": "0 6px 24px rgba(0, 0, 0, 0.3)",
18
+ "shadow-sm": "0 1px 3px rgba(0, 0, 0, 0.35)"
19
+ }
20
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "light": {
3
+ "control-border-width": "1px",
4
+ "solid-border-color": "transparent",
5
+ "shadow-raised": "none",
6
+ "shadow-sm": "0 1px 2px rgba(0, 0, 0, 0.12)",
7
+ "radius-md": "8px",
8
+ "button-font-weight": "400"
9
+ },
10
+ "dark": {
11
+ "shadow-sm": "0 1px 2px rgba(0, 0, 0, 0.3)"
12
+ }
13
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "light": {
3
+ "control-border-width": "3px",
4
+ "solid-border-color": "#171717",
5
+ "shadow-raised": "5px 5px 0 #171717",
6
+ "shadow-sm": "2px 2px 0 #171717",
7
+ "radius-sm": "0px",
8
+ "radius-md": "3px",
9
+ "radius-lg": "6px",
10
+ "button-font-weight": "400",
11
+ "control-shadow": "var(--pimolu-shadow-raised)",
12
+ "soft-border-color": "var(--pimolu-border)",
13
+ "button-active-transform": "translate(3px, 3px)",
14
+ "button-active-shadow": "2px 2px 0 var(--pimolu-border)"
15
+ },
16
+ "dark": {
17
+ "solid-border-color": "#fafafa",
18
+ "shadow-raised": "5px 5px 0 #fafafa",
19
+ "shadow-sm": "2px 2px 0 #fafafa"
20
+ }
21
+ }
package/style-base.css ADDED
@@ -0,0 +1,71 @@
1
+
2
+ /* ==================================
3
+ PIMOLU — SHARED STYLE DEFAULTS
4
+ ================================== */
5
+
6
+ :where([data-pimolu-style]) {
7
+
8
+ /* Semantic defaults */
9
+ --pimolu-outline-hover-border: var(--pimolu-border);
10
+
11
+ --pimolu-secondary: var(--pimolu-muted);
12
+ --pimolu-secondary-hover: var(--pimolu-border);
13
+ --pimolu-secondary-foreground: var(--pimolu-foreground);
14
+
15
+ --pimolu-neutral: var(--pimolu-foreground);
16
+ --pimolu-neutral-hover: var(--pimolu-muted-foreground);
17
+ --pimolu-neutral-foreground: var(--pimolu-background);
18
+
19
+ /* Borders */
20
+
21
+ --pimolu-control-border-width: 1px;
22
+ --pimolu-solid-border-color: transparent;
23
+ --pimolu-soft-border-color: transparent;
24
+
25
+ /* Shadows */
26
+
27
+ --pimolu-shadow-raised: none;
28
+ --pimolu-control-shadow: none;
29
+
30
+ /* Typography */
31
+
32
+ --pimolu-font-body: var(--pimolu-font-family-sans, system-ui, sans-serif);
33
+ --pimolu-font-heading: inherit;
34
+ --pimolu-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
35
+
36
+ --pimolu-button-font-weight: 400;
37
+ --pimolu-button-letter-spacing: normal;
38
+
39
+ /* Interactions */
40
+
41
+ --pimolu-button-active-transform: none;
42
+ --pimolu-button-active-shadow: none;
43
+
44
+ /* Glass defaults */
45
+
46
+ --pimolu-glass-bg: color-mix(
47
+ in srgb,
48
+ var(--pimolu-background) 78%,
49
+ transparent
50
+ );
51
+
52
+ --pimolu-glass-bg-hover: var(--pimolu-muted);
53
+ --pimolu-glass-border: var(--pimolu-border);
54
+ --pimolu-glass-shadow: none;
55
+ --pimolu-glass-blur: 18px;
56
+
57
+ font-family: var(--pimolu-font-body);
58
+ }
59
+
60
+
61
+ [data-pimolu-theme="light"] {
62
+ color-scheme: light;
63
+ }
64
+
65
+ [data-pimolu-theme="dark"] {
66
+ color-scheme: dark;
67
+ }
68
+
69
+ [data-pimolu-theme="system"] {
70
+ color-scheme: light dark;
71
+ }
@@ -0,0 +1,22 @@
1
+
2
+ /* ==================================
3
+ PIMOLU GLASS — WEB HELPERS
4
+ Visual tokens are generated from
5
+ src/visual/glass.json (dist/visual.css).
6
+ ================================== */
7
+
8
+ [data-pimolu-style="glass"] .pimolu-glass-surface {
9
+ background: var(--pimolu-glass-bg);
10
+
11
+ border: 1px solid var(--pimolu-glass-border);
12
+
13
+ border-radius: var(--pimolu-radius-lg);
14
+
15
+ box-shadow: var(--pimolu-glass-shadow);
16
+
17
+ -webkit-backdrop-filter:
18
+ blur(var(--pimolu-glass-blur));
19
+
20
+ backdrop-filter:
21
+ blur(var(--pimolu-glass-blur));
22
+ }
@@ -0,0 +1,16 @@
1
+
2
+ /* ==================================
3
+ PIMOLU LUXURY — WEB HELPERS
4
+ Visual tokens are generated from
5
+ src/visual/luxury.json (dist/visual.css).
6
+ ================================== */
7
+
8
+ [data-pimolu-style="luxury"] {
9
+ font-family: var(--pimolu-font-body);
10
+ }
11
+
12
+ [data-pimolu-style="luxury"] .pimolu-heading {
13
+ font-family: var(--pimolu-font-heading);
14
+ font-weight: 400;
15
+ letter-spacing: -0.02em;
16
+ }
@@ -0,0 +1,19 @@
1
+
2
+ @import "./style-base.css";
3
+
4
+ /* Generated palettes */
5
+ @import "./dist/default.css";
6
+ @import "./dist/presets.css";
7
+
8
+ /* Generated visual tokens (borders, shadows, radius, effects) */
9
+ @import "./dist/visual.css";
10
+
11
+ /* Preset-specific web helpers */
12
+ @import "./style-glass.css";
13
+ @import "./style-luxury.css";
14
+
15
+ /* Radius is a dimension of its own, applied after the presets */
16
+ @import "./radius.css";
17
+
18
+ /* Density composes with radius, after it */
19
+ @import "./density.css";