@webdevarif/dashui 1.2.6 → 1.2.8

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.
@@ -0,0 +1,96 @@
1
+ /**
2
+ * @webdevarif/dashui — Storefront Color Schemes (Layer 3)
3
+ * For customer website sections/blocks.
4
+ * Each section gets class="color-scheme-N"
5
+ * Store brand color overrides --wd-scheme-brand via JS/API.
6
+ */
7
+
8
+ /* Scheme 1 — Light (default) */
9
+ :root,
10
+ .color-scheme-1 {
11
+ --wd-scheme-bg: #FFFFFF;
12
+ --wd-scheme-bg-rgb: 255 255 255;
13
+ --wd-scheme-surface: #F9FAFB;
14
+ --wd-scheme-text: #111827;
15
+ --wd-scheme-text-rgb: 17 24 39;
16
+ --wd-scheme-muted: #6B7280;
17
+ --wd-scheme-heading: #030712;
18
+ --wd-scheme-border: #E5E7EB;
19
+ --wd-scheme-shadow: rgba(0,0,0,0.1);
20
+
21
+ /* Brand — injected by store theme API */
22
+ --wd-scheme-brand: #6366F1;
23
+ --wd-scheme-brand-hover: #4F46E5;
24
+ --wd-scheme-brand-text: #FFFFFF;
25
+
26
+ /* Buttons */
27
+ --wd-scheme-btn-primary-bg: var(--wd-scheme-brand);
28
+ --wd-scheme-btn-primary-bg-hover: var(--wd-scheme-brand-hover);
29
+ --wd-scheme-btn-primary-text: var(--wd-scheme-brand-text);
30
+ --wd-scheme-btn-primary-border: var(--wd-scheme-brand);
31
+
32
+ --wd-scheme-btn-secondary-bg: transparent;
33
+ --wd-scheme-btn-secondary-bg-hover: #F9FAFB;
34
+ --wd-scheme-btn-secondary-text: #111827;
35
+ --wd-scheme-btn-secondary-border: #111827;
36
+
37
+ /* Input */
38
+ --wd-scheme-input-bg: #FFFFFF;
39
+ --wd-scheme-input-text: #111827;
40
+ --wd-scheme-input-border: #D1D5DB;
41
+ }
42
+
43
+ /* Scheme 2 — Dark */
44
+ .color-scheme-2 {
45
+ --wd-scheme-bg: #0A0A0A;
46
+ --wd-scheme-bg-rgb: 10 10 10;
47
+ --wd-scheme-surface: #141414;
48
+ --wd-scheme-text: #F9FAFB;
49
+ --wd-scheme-text-rgb: 249 250 251;
50
+ --wd-scheme-muted: #9CA3AF;
51
+ --wd-scheme-heading: #FFFFFF;
52
+ --wd-scheme-border: #262626;
53
+ --wd-scheme-shadow: rgba(0,0,0,0.5);
54
+
55
+ --wd-scheme-btn-secondary-bg: transparent;
56
+ --wd-scheme-btn-secondary-bg-hover: rgba(255,255,255,0.08);
57
+ --wd-scheme-btn-secondary-text: #F9FAFB;
58
+ --wd-scheme-btn-secondary-border: rgba(255,255,255,0.3);
59
+
60
+ --wd-scheme-input-bg: #1A1A1A;
61
+ --wd-scheme-input-text: #F9FAFB;
62
+ --wd-scheme-input-border: #333333;
63
+ }
64
+
65
+ /* Scheme 3 — Brand/Accent Fill */
66
+ .color-scheme-3 {
67
+ --wd-scheme-bg: var(--wd-scheme-brand);
68
+ --wd-scheme-surface: var(--wd-scheme-brand-hover);
69
+ --wd-scheme-text: rgba(255,255,255,0.95);
70
+ --wd-scheme-muted: rgba(255,255,255,0.70);
71
+ --wd-scheme-heading: #FFFFFF;
72
+ --wd-scheme-border: rgba(255,255,255,0.20);
73
+
74
+ --wd-scheme-btn-primary-bg: #FFFFFF;
75
+ --wd-scheme-btn-primary-bg-hover: #F0F0F0;
76
+ --wd-scheme-btn-primary-text: var(--wd-scheme-brand);
77
+ --wd-scheme-btn-primary-border: #FFFFFF;
78
+
79
+ --wd-scheme-btn-secondary-bg: transparent;
80
+ --wd-scheme-btn-secondary-bg-hover: rgba(255,255,255,0.15);
81
+ --wd-scheme-btn-secondary-text: #FFFFFF;
82
+ --wd-scheme-btn-secondary-border: rgba(255,255,255,0.5);
83
+ }
84
+
85
+ /* Scheme 4 — Soft/Tinted */
86
+ .color-scheme-4 {
87
+ --wd-scheme-bg: #F5F3FF;
88
+ --wd-scheme-surface: #EDE9FE;
89
+ --wd-scheme-text: #1E1B4B;
90
+ --wd-scheme-muted: #6D28D9;
91
+ --wd-scheme-heading: #0F0D2E;
92
+ --wd-scheme-border: #DDD6FE;
93
+ }
94
+
95
+ /* Scheme 5–16: Reserved for user-defined schemes */
96
+ /* Generated dynamically via API: GET /api/theme/{storeId}/styles.css */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webdevarif/dashui",
3
- "version": "1.2.6",
4
- "description": "Universal dashboard UI component library forms, inputs, media, tables, layouts. Modular categories: primitives, forms, dashboard, media, data, editors, ecommerce, cms.",
3
+ "version": "1.2.8",
4
+ "description": "Universal dashboard UI component library — forms, inputs, media, tables, layouts. Modular categories: primitives, forms, dashboard, media, data, editors, ecommerce, cms.",
5
5
  "keywords": [
6
6
  "dashboard",
7
7
  "ui",
@@ -27,6 +27,21 @@
27
27
  "require": "./dist/index.js"
28
28
  },
29
29
  "./styles": "./dist/styles/globals.css",
30
+ "./setup": {
31
+ "types": "./dist/setup.d.ts",
32
+ "import": "./dist/setup.mjs",
33
+ "require": "./dist/setup.js"
34
+ },
35
+ "./hooks": {
36
+ "types": "./dist/hooks.d.ts",
37
+ "import": "./dist/hooks.mjs",
38
+ "require": "./dist/hooks.js"
39
+ },
40
+ "./i18n": {
41
+ "types": "./dist/i18n.d.ts",
42
+ "import": "./dist/i18n.mjs",
43
+ "require": "./dist/i18n.js"
44
+ },
30
45
  "./tokens/primitives": "./dist/tokens/primitives.css",
31
46
  "./tokens/light": "./dist/tokens/semantic-light.css",
32
47
  "./tokens/dark": "./dist/tokens/semantic-dark.css",
@@ -87,3 +102,4 @@
87
102
  "access": "public"
88
103
  }
89
104
  }
105
+