@nurvus/ui 0.1.0-alpha.8 → 0.1.0-alpha.9
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/README.md +8 -9
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -53,21 +53,20 @@ initTheme('tokyo-neon'); // at startup: the saved theme, or this default
|
|
|
53
53
|
setTheme('apollo-white'); // switch, and remember it (localStorage "nurvus.theme")
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
Themes nest (`<nav data-theme="tokyo-neon">` inside a light page), and your own CSS should use the role tokens, never raw hex. Theme files live in `src/themes/*.json`; `npm run build:tokens` turns them into CSS and checks every theme's WCAG contrast (a failing `stable` theme fails the build). Each theme has its own page
|
|
56
|
+
Themes nest (`<nav data-theme="tokyo-neon">` inside a light page), and your own CSS should use the role tokens, never raw hex. Theme files live in `src/themes/*.json`; `npm run build:tokens` turns them into CSS and checks every theme's WCAG contrast (a failing `stable` theme fails the build). Each theme has its own page on the docs site.
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
Latest preview version can be viewed here:
|
|
62
|
-
https://unstable.memoryleak.ai/nurvus-design-system
|
|
58
|
+
### Docs
|
|
59
|
+
Every component and theme, with live examples you can edit and each component's props: **https://design.nurvus.ai/**
|
|
63
60
|
|
|
64
61
|
## Contribute
|
|
65
62
|
### Getting Started
|
|
66
63
|
Run/Dev
|
|
67
64
|
1. `npm install` to install
|
|
68
|
-
2. `npm run styleguide` to run
|
|
69
|
-
3. Go to `http://localhost:
|
|
65
|
+
2. `npm run docs` (or `npm run styleguide`) to run the docs site with hot reload
|
|
66
|
+
3. Go to `http://localhost:6061/`
|
|
67
|
+
|
|
68
|
+
The docs site lives in `docs/` (Vite). Component pages come from each component's `<Name>.md` (examples in ```jsx blocks: imports work, every @nurvus/ui component is in scope, the last JSX renders) and its PropTypes + docblocks (the props table).
|
|
70
69
|
|
|
71
70
|
Build
|
|
72
71
|
1. `npm run build` to generate components package to `./dist`.
|
|
73
|
-
2. `npm run
|
|
72
|
+
2. `npm run docs:build` to build the docs site to `./docs/dist/` (what design.nurvus.ai serves; CI deploys it on every push to `main`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nurvus/ui",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.9",
|
|
4
4
|
"description": "NURVUS Design System",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"build": "rimraf dist && npm run build:tokens && cross-env NODE_OPTIONS=--openssl-legacy-provider webpack --mode=production --json > stats.json",
|
|
11
11
|
"build:tokens": "node ./tools/build-tokens.js",
|
|
12
12
|
"prepare": "npm run build",
|
|
13
|
-
"styleguide": "npm run
|
|
14
|
-
"styleguide:build": "
|
|
13
|
+
"styleguide": "npm run docs",
|
|
14
|
+
"styleguide:build": "npm run docs:build",
|
|
15
15
|
"docs": "npm run build:tokens && vite --config docs/vite.config.js",
|
|
16
16
|
"docs:build": "npm run build:tokens && vite build --config docs/vite.config.js"
|
|
17
17
|
},
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"react": "^16.8.0",
|
|
55
55
|
"react-docgen": "^8.0.4",
|
|
56
56
|
"react-dom": "^16.8.0",
|
|
57
|
-
"react-styleguidist": "^11.1.7",
|
|
58
57
|
"resolve-url-loader": "^5.0.0",
|
|
59
58
|
"rimraf": "^3.0.2",
|
|
60
59
|
"sass": "^1.77.8",
|