@webority/theme 0.9.17 → 0.9.18
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 +16 -0
- package/package.json +2 -2
- package/scss/wui/_controls.scss +1 -1
- package/scss/wui/_data.scss +1 -1
- package/scss/wui/_overlays.scss +1 -1
- package/scss/wui/_typography.scss +1 -1
- package/scss/wui/_utilities.scss +1 -1
package/README.md
CHANGED
|
@@ -87,6 +87,22 @@ Token remap includes:
|
|
|
87
87
|
Marketing sites ship light-only (the `scss/_marketing.scss` partial is opt-in on portals
|
|
88
88
|
and omitted on marketing); dark mode is a **portal feature**, not a marketing requirement.
|
|
89
89
|
|
|
90
|
+
## Public CSS class vocabulary
|
|
91
|
+
|
|
92
|
+
Theme-owned class names follow one rule going forward. Enforced by
|
|
93
|
+
`scripts/check-scss-class-prefix.mjs` (frozen legacy allowlist + fail on new bare names).
|
|
94
|
+
|
|
95
|
+
| Class kind | Allowed for **new** chrome? | Notes |
|
|
96
|
+
|---|---|---|
|
|
97
|
+
| Bootstrap public classes (`.btn`, `.form-control`, `.card`, …) | **Yes** | Restyle Layer A only — do not fork a second kit |
|
|
98
|
+
| `.wui-*` | **Yes — default** | All new library chrome |
|
|
99
|
+
| `.app-*` | Legacy only | Shell / host wrappers already shipped; prefer `.wui-*` for anything new |
|
|
100
|
+
| Bare generics (`.input`, `.search-select`, `.datepicker`, `.tbl-*`, …) | Legacy only | Frozen allowlist; no new top-level bare selectors |
|
|
101
|
+
| Marketing bare (`.section-y`, `.btn-pill`, …) | Opt-in `_marketing.scss` only | Documented marketing vocabulary; portals omit the import |
|
|
102
|
+
|
|
103
|
+
Renames of legacy bare names are **BREAKING**: remove the old class, list the new name in
|
|
104
|
+
`CHANGELOG.md`, no dual-class shim. Consumers update markup on the bump.
|
|
105
|
+
|
|
90
106
|
## Library vs product ownership
|
|
91
107
|
|
|
92
108
|
Three layers. Do not collapse product art direction into the shared package.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/theme",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.18",
|
|
4
4
|
"description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"sass-embedded": "^1.97.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
|
-
"build": "sass index.scss dist/webority-theme.css --load-path=node_modules --style=compressed --no-source-map --quiet-deps && node ../../scripts/sync-rcl-assets.mjs theme"
|
|
36
|
+
"build": "sass index.scss dist/webority-theme.css --load-path=node_modules --style=compressed --no-source-map --quiet-deps --silence-deprecation=if-function && node ../../scripts/sync-rcl-assets.mjs theme"
|
|
37
37
|
}
|
|
38
38
|
}
|
package/scss/wui/_controls.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
|
|
2
2
|
// Checkbox & radio, field/input, status badge, choice chip.
|
|
3
3
|
//
|
|
4
4
|
// Part of the wui-components layer — see _wui-components.scss for the whole
|
package/scss/wui/_data.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
|
|
2
2
|
// Empty state, base table, ledger table + pagination.
|
|
3
3
|
//
|
|
4
4
|
// Part of the wui-components layer — see _wui-components.scss for the whole
|
package/scss/wui/_overlays.scss
CHANGED
package/scss/wui/_utilities.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
|
|
2
2
|
// Grid utils, info tip, page header, row actions, spinner.
|
|
3
3
|
//
|
|
4
4
|
// Part of the wui-components layer — see _wui-components.scss for the whole
|