ui-style-kit-css 2.0.1 → 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 +37 -0
- package/README.md +42 -6
- 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 +4 -5
- package/demo/index.html +0 -1124
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,43 @@
|
|
|
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
|
+
|
|
26
|
+
## [2.0.2] - 2026-07-08
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- Added the demo favicon pack, root Pages manifest wiring, and package-demo manifest wiring so release demos have consistent browser icons.
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- Clarified the UI systems wiki with the full style matrix, core class suffixes, utility tiers, generic loading and tooltip hooks, and Interactive Surface bridge hooks.
|
|
35
|
+
- Polished README release guidance, CDN pinning, and token-model wording for the `2.0.2` maintenance release.
|
|
36
|
+
- Refreshed development tooling for style linting and Playwright verification without changing the public CSS API.
|
|
37
|
+
|
|
38
|
+
### Security
|
|
39
|
+
|
|
40
|
+
- Added dependency maintenance coverage for the transitive development-only `js-yaml` advisory path used by stylelint configuration loading.
|
|
41
|
+
|
|
5
42
|
## [2.0.1] - 2026-06-22
|
|
6
43
|
|
|
7
44
|
### Added
|
package/README.md
CHANGED
|
@@ -1,12 +1,48 @@
|
|
|
1
1
|
# UI Style Kit CSS
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/ui-style-kit-css)
|
|
4
|
+
[](./LICENSE)
|
|
5
|
+
|
|
3
6
|
**UI Style Kit CSS** is a CSS-only theme and UI style preset library for accessible websites, dashboards, admin interfaces, and customer-facing pages.
|
|
4
7
|
|
|
5
8
|
It is separate from, but complementary to, **Interactive Surface CSS**. Use **UI Style Kit CSS** for visual identity, color themes, UI presets, layout mood, and native HTML styling. Use **Interactive Surface CSS** for interaction-state animation systems and surface behavior.
|
|
6
9
|
|
|
7
10
|
## Current Release
|
|
8
11
|
|
|
9
|
-
`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
|
+
|
|
14
|
+
[Showcase website](https://foscat.github.io/ui-style-kit-css/)
|
|
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.
|
|
10
46
|
|
|
11
47
|
## Features
|
|
12
48
|
|
|
@@ -18,7 +54,7 @@ It is separate from, but complementary to, **Interactive Surface CSS**. Use **UI
|
|
|
18
54
|
- Scoped native HTML element coverage, including semantic containers and inline text elements
|
|
19
55
|
- Visible `:focus-visible` defaults
|
|
20
56
|
- Skip-link and visually-hidden helpers per style prefix
|
|
21
|
-
- Compact shared palette
|
|
57
|
+
- Compact shared palette -> prefixed alias -> UI-rule token model
|
|
22
58
|
- Theme-driven card, panel, control, page-background, and spinner defaults
|
|
23
59
|
- Visible tooltip classes and native `[role="tooltip"]` styling inside each UI scope
|
|
24
60
|
- Font-family override variables for body, headings, controls, and mono text
|
|
@@ -41,7 +77,7 @@ Use a single style import for production apps that use one visual system:
|
|
|
41
77
|
import "ui-style-kit-css/minimal-saas.css";
|
|
42
78
|
```
|
|
43
79
|
|
|
44
|
-
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:
|
|
45
81
|
|
|
46
82
|
```js
|
|
47
83
|
import "ui-style-kit-css/theme-colors.css";
|
|
@@ -100,7 +136,7 @@ After publishing to NPM:
|
|
|
100
136
|
For production, pin a version:
|
|
101
137
|
|
|
102
138
|
```html
|
|
103
|
-
<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" />
|
|
104
140
|
```
|
|
105
141
|
|
|
106
142
|
## Basic usage
|
|
@@ -288,10 +324,10 @@ ui-style-kit-css/
|
|
|
288
324
|
TOKENS.md
|
|
289
325
|
STYLE-GUIDE.md
|
|
290
326
|
PUBLISHING.md
|
|
291
|
-
demo/
|
|
292
|
-
index.html
|
|
293
327
|
```
|
|
294
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
|
+
|
|
295
331
|
## Development checks
|
|
296
332
|
|
|
297
333
|
```bash
|
package/dist/ui-style-kit.css
CHANGED