ui-style-kit-css 2.0.2 → 2.0.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.
- package/CHANGELOG.md +21 -0
- package/README.md +36 -8
- package/dist/ui-style-kit.css +1 -1
- package/dist/ui-style-kit.min.css +1 -1
- package/dist/ui-style-kit.with-bridge.css +1 -1
- package/dist/ui-style-kit.with-bridge.min.css +1 -1
- package/docs/PUBLISHING.md +3 -1
- package/package.json +2 -3
- package/demo/assets/README.md +0 -23
- package/demo/assets/android-chrome-192x192.png +0 -0
- package/demo/assets/android-chrome-512x512.png +0 -0
- package/demo/assets/apple-touch-icon.png +0 -0
- package/demo/assets/browserconfig.xml +0 -9
- package/demo/assets/favicon-128x128.png +0 -0
- package/demo/assets/favicon-16x16.png +0 -0
- package/demo/assets/favicon-256x256.png +0 -0
- package/demo/assets/favicon-32x32.png +0 -0
- package/demo/assets/favicon-384x384.png +0 -0
- package/demo/assets/favicon-48x48.png +0 -0
- package/demo/assets/favicon-64x64.png +0 -0
- package/demo/assets/favicon-96x96.png +0 -0
- package/demo/assets/favicon-head-snippet.html +0 -11
- package/demo/assets/favicon-master-1024.png +0 -0
- package/demo/assets/favicon.ico +0 -0
- package/demo/assets/favicon.svg +0 -26
- package/demo/assets/mstile-150x150.png +0 -0
- package/demo/assets/safari-pinned-tab.svg +0 -3
- package/demo/assets/site.webmanifest +0 -25
- package/demo/index.html +0 -1135
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to **UI Style Kit CSS** will be documented here.
|
|
4
4
|
|
|
5
|
+
## [2.0.3] - 2026-07-11
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added an active theme and mode token workbench to the demo for editing concrete `--usk-*-rgb` values live and copying drop-in theme override CSS.
|
|
10
|
+
- Added copy buttons with clipboard icons and tooltips to demo code blocks.
|
|
11
|
+
- Added README Mermaid diagrams for the three-library ecosystem and the shared token flow.
|
|
12
|
+
- Added demo resource links for GitHub, GitHub Wiki, npm, Interactive Surface CSS, and Layout Style CSS.
|
|
13
|
+
- Added search, social sharing, web manifest, sitemap, and structured-data metadata for the published demo.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Aligned package metadata for `2.0.3` after the manual `2.0.2` npm release.
|
|
18
|
+
- Split duplicated demo CSS and JavaScript into shared `demo/demo.css` and `demo/demo.js` entrypoint assets.
|
|
19
|
+
- Expanded stylelint coverage to include extracted demo CSS.
|
|
20
|
+
- Updated the demo HTML with static fallback content so crawlers and no-JavaScript users can read the core library description before JavaScript renders the interactive showcase.
|
|
21
|
+
|
|
22
|
+
### Removed
|
|
23
|
+
|
|
24
|
+
- Removed unused tracked image assets and stale local release/test artifacts from the repo.
|
|
25
|
+
|
|
5
26
|
## [2.0.2] - 2026-07-08
|
|
6
27
|
|
|
7
28
|
### Added
|
package/README.md
CHANGED
|
@@ -9,10 +9,41 @@ It is separate from, but complementary to, **Interactive Surface CSS**. Use **UI
|
|
|
9
9
|
|
|
10
10
|
## Current Release
|
|
11
11
|
|
|
12
|
-
`v2.0.
|
|
12
|
+
`v2.0.3` is the current v2 patch release. It keeps the `v2.0.1` shared color-scheme and native-element model, adds a demo theme-override workbench, improves copyable documentation examples, and refreshes release metadata without changing the CSS API.
|
|
13
13
|
|
|
14
14
|
[Showcase website](https://foscat.github.io/ui-style-kit-css/)
|
|
15
15
|
|
|
16
|
+
## How the library fits together
|
|
17
|
+
|
|
18
|
+
UI Style Kit CSS owns visual identity: themes, component paint, native HTML styling, and the prefixed class API. It can be used alone, or paired with the sibling libraries when a project needs structural layout primitives or richer interaction-state behavior.
|
|
19
|
+
|
|
20
|
+
```mermaid
|
|
21
|
+
flowchart LR
|
|
22
|
+
App["Application markup"] --> Attrs["data-ui + data-theme + data-mode"]
|
|
23
|
+
Attrs --> USK["ui-style-kit-css"]
|
|
24
|
+
USK --> Themes["Shared --usk-* theme roles"]
|
|
25
|
+
USK --> Components["Prefixed component classes"]
|
|
26
|
+
USK --> Native["Scoped native HTML fallback"]
|
|
27
|
+
Layout["layout-style-css"] --> App
|
|
28
|
+
Surface["interactive-surface-css"] --> Bridge["Optional bridge bundle"]
|
|
29
|
+
Bridge --> USK
|
|
30
|
+
Components --> UI["Branded UI surface"]
|
|
31
|
+
Native --> UI
|
|
32
|
+
Themes --> UI
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```mermaid
|
|
36
|
+
flowchart TB
|
|
37
|
+
Theme["styles/theme-colors.css"] --> Rgb["Concrete --usk-*-rgb channels"]
|
|
38
|
+
Rgb --> Modes["Light, dark, and contrast modes"]
|
|
39
|
+
Modes --> Prefixes["Per-style prefixed aliases"]
|
|
40
|
+
Prefixes --> Rules["Component, utility, and native rules"]
|
|
41
|
+
Demo["Demo token workbench"] --> Overrides["Copyable :where([data-ui][data-theme][data-mode]) override block"]
|
|
42
|
+
Overrides --> Rgb
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The demo page documents this flow directly: it shows computed RGB color tokens for the active theme and mode, lets developers edit them live, and copies the exact override block to drop into an app stylesheet.
|
|
46
|
+
|
|
16
47
|
## Features
|
|
17
48
|
|
|
18
49
|
- 11 UI style systems
|
|
@@ -46,7 +77,7 @@ Use a single style import for production apps that use one visual system:
|
|
|
46
77
|
import "ui-style-kit-css/minimal-saas.css";
|
|
47
78
|
```
|
|
48
79
|
|
|
49
|
-
In `v2.0.
|
|
80
|
+
In `v2.0.3`, standalone style files import the shared color-scheme layer from `styles/theme-colors.css` and the shared native-element fallback layer from `styles/native-elements.css`. Bundlers that understand CSS `@import` will resolve them automatically. If your build pipeline does not resolve CSS imports, import the shared dependencies before the style file:
|
|
50
81
|
|
|
51
82
|
```js
|
|
52
83
|
import "ui-style-kit-css/theme-colors.css";
|
|
@@ -105,7 +136,7 @@ After publishing to NPM:
|
|
|
105
136
|
For production, pin a version:
|
|
106
137
|
|
|
107
138
|
```html
|
|
108
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ui-style-kit-css@2.0.
|
|
139
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ui-style-kit-css@2.0.3/dist/ui-style-kit.min.css" />
|
|
109
140
|
```
|
|
110
141
|
|
|
111
142
|
## Basic usage
|
|
@@ -293,13 +324,10 @@ ui-style-kit-css/
|
|
|
293
324
|
TOKENS.md
|
|
294
325
|
STYLE-GUIDE.md
|
|
295
326
|
PUBLISHING.md
|
|
296
|
-
demo/
|
|
297
|
-
index.html
|
|
298
|
-
assets/
|
|
299
|
-
favicon.svg
|
|
300
|
-
site.webmanifest
|
|
301
327
|
```
|
|
302
328
|
|
|
329
|
+
The checked-in demo, favicon pack, and social preview image stay in the repository for GitHub Pages, but they are intentionally excluded from the npm tarball so installs only receive the CSS library, docs, and metadata.
|
|
330
|
+
|
|
303
331
|
## Development checks
|
|
304
332
|
|
|
305
333
|
```bash
|
package/dist/ui-style-kit.css
CHANGED