@stackvibe-studio/themes 0.0.0-stage → 0.2.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 StackVibe
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,35 @@
1
- # Temporary Holding Version
1
+ # @stackvibe-studio/themes
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Theme tokens and presets for product-grade visual systems.
4
+
5
+ ## Highlights
6
+
7
+ - Ready-to-use palettes for product surfaces
8
+ - Shared token model for color, radius, and glow values
9
+ - Easy runtime access via resolveTheme and listThemes
10
+ - New in v0.2.0: sunset-glow and midnight-gold presets
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ npm install @stackvibe-studio/themes
16
+ ```
17
+
18
+ ## Example
19
+
20
+ ```ts
21
+ import { resolveTheme, listThemes } from '@stackvibe-studio/themes';
22
+
23
+ const palette = resolveTheme('aurora');
24
+ console.log(listThemes());
25
+ ```
26
+
27
+ ## Available themes
28
+
29
+ - aurora
30
+ - obsidian
31
+ - holographic
32
+ - soft-minimal
33
+ - neon-futuristic
34
+ - sunset-glow
35
+ - midnight-gold
package/dist/index.cjs ADDED
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ listThemes: () => listThemes,
24
+ resolveTheme: () => resolveTheme,
25
+ themePresets: () => themePresets
26
+ });
27
+ module.exports = __toCommonJS(index_exports);
28
+ var themePresets = {
29
+ aurora: {
30
+ background: "#050816",
31
+ foreground: "#e2e8f0",
32
+ primary: "#8b5cf6",
33
+ secondary: "#22d3ee",
34
+ accent: "#c084fc",
35
+ surface: "#111827",
36
+ radius: "1rem",
37
+ glow: "rgba(139,92,246,0.4)"
38
+ },
39
+ obsidian: {
40
+ background: "#020617",
41
+ foreground: "#f8fafc",
42
+ primary: "#a78bfa",
43
+ secondary: "#64748b",
44
+ accent: "#38bdf8",
45
+ surface: "#0f172a",
46
+ radius: "0.9rem",
47
+ glow: "rgba(59,130,246,0.34)"
48
+ },
49
+ holographic: {
50
+ background: "#040b1d",
51
+ foreground: "#dbeafe",
52
+ primary: "#34d399",
53
+ secondary: "#60a5fa",
54
+ accent: "#f0abfc",
55
+ surface: "#0f172a",
56
+ radius: "1.2rem",
57
+ glow: "rgba(52,211,153,0.35)"
58
+ },
59
+ "soft-minimal": {
60
+ background: "#f8fafc",
61
+ foreground: "#0f172a",
62
+ primary: "#7c3aed",
63
+ secondary: "#0ea5e9",
64
+ accent: "#a78bfa",
65
+ surface: "#ffffff",
66
+ radius: "0.8rem",
67
+ glow: "rgba(124,58,237,0.12)"
68
+ },
69
+ "neon-futuristic": {
70
+ background: "#030712",
71
+ foreground: "#ecfeff",
72
+ primary: "#22d3ee",
73
+ secondary: "#a78bfa",
74
+ accent: "#f472b6",
75
+ surface: "#0f172a",
76
+ radius: "1.4rem",
77
+ glow: "rgba(34,211,238,0.35)"
78
+ },
79
+ "sunset-glow": {
80
+ background: "#1c0b13",
81
+ foreground: "#fff7ed",
82
+ primary: "#fb7185",
83
+ secondary: "#fbbf24",
84
+ accent: "#fdba74",
85
+ surface: "#2b1221",
86
+ radius: "1.1rem",
87
+ glow: "rgba(251,113,133,0.35)"
88
+ },
89
+ "midnight-gold": {
90
+ background: "#0b1220",
91
+ foreground: "#f8fafc",
92
+ primary: "#fbbf24",
93
+ secondary: "#a78bfa",
94
+ accent: "#f59e0b",
95
+ surface: "#111827",
96
+ radius: "1rem",
97
+ glow: "rgba(251,191,36,0.26)"
98
+ }
99
+ };
100
+ function resolveTheme(theme = "aurora") {
101
+ return themePresets[theme];
102
+ }
103
+ function listThemes() {
104
+ return Object.keys(themePresets);
105
+ }
106
+ // Annotate the CommonJS export names for ESM import in node:
107
+ 0 && (module.exports = {
108
+ listThemes,
109
+ resolveTheme,
110
+ themePresets
111
+ });
@@ -0,0 +1,14 @@
1
+ export type ThemeName = 'aurora' | 'obsidian' | 'holographic' | 'soft-minimal' | 'neon-futuristic' | 'sunset-glow' | 'midnight-gold';
2
+ export type ThemeTokens = {
3
+ background: string;
4
+ foreground: string;
5
+ primary: string;
6
+ secondary: string;
7
+ accent: string;
8
+ surface: string;
9
+ radius: string;
10
+ glow: string;
11
+ };
12
+ export declare const themePresets: Record<ThemeName, ThemeTokens>;
13
+ export declare function resolveTheme(theme?: ThemeName): ThemeTokens;
14
+ export declare function listThemes(): ThemeName[];
package/dist/index.js ADDED
@@ -0,0 +1,84 @@
1
+ // src/index.ts
2
+ var themePresets = {
3
+ aurora: {
4
+ background: "#050816",
5
+ foreground: "#e2e8f0",
6
+ primary: "#8b5cf6",
7
+ secondary: "#22d3ee",
8
+ accent: "#c084fc",
9
+ surface: "#111827",
10
+ radius: "1rem",
11
+ glow: "rgba(139,92,246,0.4)"
12
+ },
13
+ obsidian: {
14
+ background: "#020617",
15
+ foreground: "#f8fafc",
16
+ primary: "#a78bfa",
17
+ secondary: "#64748b",
18
+ accent: "#38bdf8",
19
+ surface: "#0f172a",
20
+ radius: "0.9rem",
21
+ glow: "rgba(59,130,246,0.34)"
22
+ },
23
+ holographic: {
24
+ background: "#040b1d",
25
+ foreground: "#dbeafe",
26
+ primary: "#34d399",
27
+ secondary: "#60a5fa",
28
+ accent: "#f0abfc",
29
+ surface: "#0f172a",
30
+ radius: "1.2rem",
31
+ glow: "rgba(52,211,153,0.35)"
32
+ },
33
+ "soft-minimal": {
34
+ background: "#f8fafc",
35
+ foreground: "#0f172a",
36
+ primary: "#7c3aed",
37
+ secondary: "#0ea5e9",
38
+ accent: "#a78bfa",
39
+ surface: "#ffffff",
40
+ radius: "0.8rem",
41
+ glow: "rgba(124,58,237,0.12)"
42
+ },
43
+ "neon-futuristic": {
44
+ background: "#030712",
45
+ foreground: "#ecfeff",
46
+ primary: "#22d3ee",
47
+ secondary: "#a78bfa",
48
+ accent: "#f472b6",
49
+ surface: "#0f172a",
50
+ radius: "1.4rem",
51
+ glow: "rgba(34,211,238,0.35)"
52
+ },
53
+ "sunset-glow": {
54
+ background: "#1c0b13",
55
+ foreground: "#fff7ed",
56
+ primary: "#fb7185",
57
+ secondary: "#fbbf24",
58
+ accent: "#fdba74",
59
+ surface: "#2b1221",
60
+ radius: "1.1rem",
61
+ glow: "rgba(251,113,133,0.35)"
62
+ },
63
+ "midnight-gold": {
64
+ background: "#0b1220",
65
+ foreground: "#f8fafc",
66
+ primary: "#fbbf24",
67
+ secondary: "#a78bfa",
68
+ accent: "#f59e0b",
69
+ surface: "#111827",
70
+ radius: "1rem",
71
+ glow: "rgba(251,191,36,0.26)"
72
+ }
73
+ };
74
+ function resolveTheme(theme = "aurora") {
75
+ return themePresets[theme];
76
+ }
77
+ function listThemes() {
78
+ return Object.keys(themePresets);
79
+ }
80
+ export {
81
+ listThemes,
82
+ resolveTheme,
83
+ themePresets
84
+ };
package/package.json CHANGED
@@ -1,6 +1,39 @@
1
1
  {
2
2
  "name": "@stackvibe-studio/themes",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.0",
4
+ "type": "module",
5
+ "description": "Theme tokens and presets for StackVibe UI.",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/StackVibe-Studio/stackvibe-ui.git"
9
+ },
10
+ "homepage": "https://stackvibe-studio.github.io/stackvibe-ui/",
11
+ "bugs": {
12
+ "url": "https://github.com/StackVibe-Studio/stackvibe-ui/issues"
13
+ },
14
+ "license": "MIT",
15
+ "main": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.js",
21
+ "require": "./dist/index.cjs"
22
+ }
23
+ },
24
+ "publishConfig": {
25
+ "access": "public",
26
+ "registry": "https://registry.npmjs.org/"
27
+ },
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "devDependencies": {
32
+ "tsup": "^8.1.0",
33
+ "typescript": "^5.7.0"
34
+ },
35
+ "scripts": {
36
+ "build": "tsup src/index.ts --format esm,cjs --clean && tsc --project tsconfig.json --emitDeclarationOnly",
37
+ "typecheck": "tsc --noEmit"
38
+ }
6
39
  }