@besaitech/ng-design-system 0.0.11 → 0.0.26

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 CHANGED
@@ -24,12 +24,7 @@ phone input, plus the app shell (top bar + sidebar).
24
24
  npm install @besaitech/ng-design-system
25
25
  ```
26
26
 
27
- Published to the public npm registry, so no `.npmrc` and no read token are needed.
28
-
29
- > Earlier releases were served from an internal GitLab Package Registry and this section carried the
30
- > `@besaitech:registry=…` + `_authToken=…` lines for it. Those instructions no longer match where the
31
- > package comes from — following them against a public install yields a 401 for a registry you do not
32
- > need to reach.
27
+ Public npm registry — no `.npmrc`, no scope mapping and no read token required.
33
28
 
34
29
  ## 2. Tailwind setup
35
30
 
@@ -67,14 +62,17 @@ This is the step that makes the components look right. Tailwind v4 is CSS-first
67
62
  Path is relative to THIS file (src/styles.css → ../node_modules). */
68
63
  @source "../node_modules/@besaitech/ng-design-system";
69
64
 
70
- /* Brand ramp: pick a theme preset. Must come AFTER the tailwindcss import —
71
- Tailwind v4 processes @theme in imported files and later declarations win. */
65
+ /* Tokens. BOTH imports are required, and both must come AFTER the tailwindcss import —
66
+ Tailwind v4 processes @theme in imported files and later declarations win.
67
+ base.css = surfaces, ink, accents, status, radius, layout vars (15 tokens).
68
+ The brand preset = the 11 --color-brand-* steps, and nothing else. */
69
+ @import "@besaitech/ng-design-system/themes/base.css";
72
70
  @import "@besaitech/ng-design-system/themes/saitech.css"; /* blues */
73
71
  /* @import "@besaitech/ng-design-system/themes/belvigo.css"; black */
74
72
 
75
- /* Everything else is yours to tune (Tailwind utilities + CSS vars). */
73
+ /* Override any base default in your own @theme afterwards, e.g. the typeface. */
76
74
  @theme {
77
- /* Neutrals / surfaces */
75
+ /* Neutrals / surfaces (already provided by base.css — shown for reference) */
78
76
  --color-canvas: #f5f6f8;
79
77
  --color-surface: #ffffff;
80
78
  --color-muted: #f8f9fb;
@@ -207,7 +205,6 @@ Import names are the `Sl…` classes; the markup selectors are `sds-…`.
207
205
 
208
206
  | Symptom | Cause / fix |
209
207
  | --- | --- |
210
- | `404 Project not found` on install | `.npmrc` missing the `@besaitech:registry` line, or token lacks access to project 922 |
211
208
  | `403 insufficient_scope` | Token is missing `read_package_registry` scope |
212
209
  | Components render unstyled | Missing/incorrect `@source` line, or no theme preset imported (step 3b) |
213
210
  | Brand colours are wrong / absent | The theme preset is imported BEFORE `@import "tailwindcss"`, so it is overridden |