@wintermuted/ui-theme 0.21.0 → 0.21.3

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.
Files changed (2) hide show
  1. package/README.md +24 -1
  2. package/package.json +6 -2
package/README.md CHANGED
@@ -17,7 +17,7 @@ npm install @wintermuted/ui-theme
17
17
  If you prefer to consume the package directly from GitHub without GitHub Packages auth, install from a tagged release:
18
18
 
19
19
  ```bash
20
- npm install github:wintermuted/ui-theme#v0.1.0
20
+ npm install github:wintermuted/wintermuted-ui#v0.1.0
21
21
  ```
22
22
 
23
23
  ## Includes
@@ -80,18 +80,41 @@ npm run showcase:serve
80
80
 
81
81
  Then open `http://localhost:4174/showcase/`.
82
82
 
83
+ Helpful local viewing scripts:
84
+
85
+ ```bash
86
+ npm run showcase:open
87
+ npm run showcase:open:sample-data
88
+ npm run showcase:open:forms
89
+ ```
90
+
83
91
  The showcase includes:
84
92
 
85
93
  - Light and dark theme toggle
86
94
  - Buttons, badges, cards, and alerts
87
95
  - Form controls and focus states
88
96
  - A representative data table
97
+ - A sample-data page that renders stats, chart bars, and table rows from one dataset
89
98
 
90
99
  Files:
91
100
 
92
101
  - `showcase/index.html`
102
+ - `showcase/sample-data.html`
93
103
  - `showcase/showcase.css`
94
104
 
105
+ ## GitHub Pages Deployments
106
+
107
+ The showcase is deployed with a preview/main pattern:
108
+
109
+ - Pushes to `main` publish production content to the root Pages site.
110
+ - Pull requests to `main` publish isolated previews under `previews/pr-<number>/showcase/`.
111
+ - Closing a pull request removes its preview folder from `gh-pages`.
112
+
113
+ Workflows:
114
+
115
+ - `.github/workflows/deploy-showcase-pages.yml`
116
+ - `.github/workflows/cleanup-showcase-preview.yml`
117
+
95
118
  ## Local Symlink Workflow (No Publish Step)
96
119
 
97
120
  Use npm link to symlink this theme into local consuming apps so style changes appear immediately.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wintermuted/ui-theme",
3
- "version": "0.21.0",
4
- "description": "Shared Wintermuted UI theme derived from the CV styling language.",
3
+ "version": "0.21.3",
4
+ "description": "Shared Wintermuted UI theme (design tokens, base resets, and component styles) derived from the CV styling language.",
5
5
  "type": "module",
6
6
  "main": "./index.js",
7
7
  "license": "MIT",
@@ -62,6 +62,10 @@
62
62
  },
63
63
  "scripts": {
64
64
  "showcase:serve": "python3 -m http.server 4174",
65
+ "showcase:open": "sh -c 'command -v open >/dev/null 2>&1 && open http://localhost:4174/showcase/ || xdg-open http://localhost:4174/showcase/'",
66
+ "showcase:open:sample-data": "sh -c 'command -v open >/dev/null 2>&1 && open http://localhost:4174/showcase/sample-data.html || xdg-open http://localhost:4174/showcase/sample-data.html'",
67
+ "showcase:open:forms": "sh -c 'command -v open >/dev/null 2>&1 && open http://localhost:4174/showcase/forms.html || xdg-open http://localhost:4174/showcase/forms.html'",
68
+ "showcase:view": "npm run showcase:serve",
65
69
  "link:local": "bash scripts/link-local.sh",
66
70
  "unlink:local": "bash scripts/unlink-local.sh",
67
71
  "lint": "stylelint \"styles/**/*.css\" \"index.css\""