ui-style-kit-css 1.2.1 → 1.2.2
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 +18 -126
- package/CONTRIBUTING.md +24 -0
- package/README.md +94 -154
- package/SECURITY.md +18 -0
- package/STYLE-MAP.md +36 -0
- package/{index.html → demo/index.html} +6 -119
- package/dist/ui-style-kit.css +397 -28
- package/dist/ui-style-kit.min.css +1 -7
- package/docs/PUBLISHING.md +28 -0
- package/docs/STYLE-GUIDE.md +28 -0
- package/docs/TOKENS.md +71 -0
- package/package.json +78 -128
- package/styles/bauhaus.css +5 -2
- package/styles/bento.css +5 -2
- package/styles/brutalism.css +83 -2
- package/styles/cyberpunk.css +83 -2
- package/styles/maximalist.css +5 -2
- package/styles/minimal-saas.css +5 -2
- package/styles/neumorphism.css +5 -2
- package/styles/retro-glass.css +83 -2
- package/styles/retrofuturism.css +5 -2
- package/styles/tactile.css +5 -2
- package/styles/y2k.css +83 -2
- package/CODE_OF_CONDUCT.md +0 -64
package/CHANGELOG.md
CHANGED
|
@@ -1,138 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
All notable changes to
|
|
4
|
-
Entries are aligned to commits merged into `main` between tagged release points.
|
|
3
|
+
All notable changes to **UI Style Kit CSS** will be documented here.
|
|
5
4
|
|
|
6
|
-
## [
|
|
5
|
+
## [1.2.2] - 2026-06-05
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
### Added
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
- Added package exports for the optional `interactive-surface-bridge` stylesheet.
|
|
10
|
+
- Added unit, lint, e2e, and dry-run pack scripts expected by CI and release workflows.
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
- Aligned `package-lock.json` root metadata with `package.json` at `1.2.1`.
|
|
12
|
+
### Changed
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
- Bundled the interactive surface bridge into the generated dist CSS.
|
|
15
|
+
- Aligned release metadata, package checks, and documentation for the `1.2.2` release.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
## 0.2.0
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
- Aligned `package-lock.json` root metadata with `package.json` at `1.2.0`.
|
|
21
|
-
- Updated release workflow guidance to avoid release branch version rewrites during pull request automation.
|
|
19
|
+
### Changed
|
|
22
20
|
|
|
23
|
-
|
|
21
|
+
- Added cascade layer wrapping to all UI style systems so consumer CSS can override the library more predictably.
|
|
22
|
+
- Fixed light-mode primary button contrast for `midnight-gold` and `cyber-lime` across all UI systems.
|
|
23
|
+
- Added native HTML and CSS accessibility coverage to `brutalism`, `cyberpunk`, `y2k`, and `retro-glass` for parity with the newer UI systems.
|
|
24
|
+
- Added build, package, and contrast-check scripts.
|
|
25
|
+
- Expanded package exports to include both extensionless and `.css` import paths.
|
|
26
|
+
- Removed runtime dependencies; this is a CSS-only consumer package.
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
## 0.1.0
|
|
26
29
|
|
|
27
|
-
-
|
|
28
|
-
- Aligned `package-lock.json` root metadata with `package.json` at `1.1.3`.
|
|
29
|
-
|
|
30
|
-
## [1.1.2] - 2026-06-01
|
|
31
|
-
|
|
32
|
-
### Fixed - Sync workflow push ambiguity
|
|
33
|
-
|
|
34
|
-
- Fixed `git push` in `.github/workflows/sync-package-version-with-main.yml` to explicitly target branch refs, preventing potential conflicts with tag refs.
|
|
35
|
-
|
|
36
|
-
### Changed - Release metadata
|
|
37
|
-
|
|
38
|
-
- Bumped package version metadata to `1.1.2`.
|
|
39
|
-
- Aligned `package-lock.json` root metadata with `package.json` at `1.1.2`.
|
|
40
|
-
|
|
41
|
-
## [1.1.1] - 2026-06-01
|
|
42
|
-
|
|
43
|
-
### Changed - Release readiness
|
|
44
|
-
|
|
45
|
-
- Bumped package version metadata to `1.1.1` for the next publish target.
|
|
46
|
-
- Aligned `package-lock.json` root metadata with `package.json` at `1.1.1`.
|
|
47
|
-
- Hardened npm publish automation to validate release tag/version alignment before attempting `npm publish`.
|
|
48
|
-
- Updated changelog history alignment notes to reflect tagged release progression.
|
|
49
|
-
|
|
50
|
-
## [1.1.0] - 2026-06-01
|
|
51
|
-
|
|
52
|
-
### Added - UI Style Kit bridge
|
|
53
|
-
|
|
54
|
-
- Added `styles/interactive-surface-bridge.css` to map UI Style Kit tokens to `interactive-surface-css` token hooks.
|
|
55
|
-
- Added new package export aliases:
|
|
56
|
-
- `ui-style-kit-css/interactive-surface-bridge`
|
|
57
|
-
- `ui-style-kit-css/styles/interactive-surface-bridge`
|
|
58
|
-
|
|
59
|
-
### Changed - UI Style Kit bridge
|
|
60
|
-
|
|
61
|
-
- Included `interactive-surface-bridge.css` in the combined `dist/ui-style-kit.css` and `dist/ui-style-kit.min.css` build pipeline.
|
|
62
|
-
- Updated README and wiki setup docs with first-class cross-library integration guidance.
|
|
63
|
-
- Added package integrity coverage for interactive surface bridge export and bundling.
|
|
64
|
-
- Included release metadata correction commit (`chore(release): bump version to 1.0.4`) in the `1.0.4..v1.1.0` commit range.
|
|
65
|
-
|
|
66
|
-
## [1.0.4] - 2026-05-26
|
|
67
|
-
|
|
68
|
-
### Changed - 1.0.4
|
|
69
|
-
|
|
70
|
-
- Added deployment/build prep updates across CI, publish, and release workflows (`[chore] Build deployment pieces`).
|
|
71
|
-
- Synced `package.json` version from `main` (`chore: sync package.json version with main`).
|
|
72
|
-
|
|
73
|
-
## [1.0.3] - 2026-05-26
|
|
74
|
-
|
|
75
|
-
### Added - 1.0.3
|
|
76
|
-
|
|
77
|
-
- Added `.github/workflows/npm-publish.yml` (`Add publish workflow`).
|
|
78
|
-
|
|
79
|
-
### Changed - 1.0.3
|
|
80
|
-
|
|
81
|
-
- Updated `package.json` version metadata and changelog formatting for the `1.0.3` line.
|
|
82
|
-
- Applied pull request follow-up changelog fix (`Potential fix for pull request finding`).
|
|
83
|
-
- Included `package.json` sync commits from automation (`chore: sync package.json version with main`).
|
|
84
|
-
|
|
85
|
-
## [1.0.2] - 2026-05-25
|
|
86
|
-
|
|
87
|
-
### Added - 1.0.2
|
|
88
|
-
|
|
89
|
-
- `.github/workflows/sync-package-version-with-main.yml` to keep pull request branch versions aligned with `main`.
|
|
90
|
-
- `.github/workflows/release-version-alignment.yml` to enforce matching GitHub tag, `package.json`, changelog entry, and npm publish target version.
|
|
91
|
-
|
|
92
|
-
### Changed - 1.0.2
|
|
93
|
-
|
|
94
|
-
- Bumped package version to `1.0.2`.
|
|
95
|
-
- Upgraded `stylelint` from `16.26.1` to `17.12.0`.
|
|
96
|
-
- Updated GitHub Actions in CI:
|
|
97
|
-
- `actions/checkout` from `v4` to `v6`
|
|
98
|
-
- `actions/setup-node` from `v4` to `v6`
|
|
99
|
-
- Updated release alignment notes and changelog formatting during review feedback.
|
|
100
|
-
|
|
101
|
-
## [1.0.1] - 2026-05-25
|
|
102
|
-
|
|
103
|
-
### Fixed - 1.0.1
|
|
104
|
-
|
|
105
|
-
- Patched release metadata and demo HTML (`package.json`, `index.html`) for package stability.
|
|
106
|
-
|
|
107
|
-
## [1.0.0] - 2026-05-24
|
|
108
|
-
|
|
109
|
-
### Added - 1.0.0
|
|
110
|
-
|
|
111
|
-
- Full project wiki under `wiki/`
|
|
112
|
-
- `CODE_OF_CONDUCT.md`
|
|
113
|
-
- SEO support files for GitHub Pages demo:
|
|
114
|
-
- `robots.txt`
|
|
115
|
-
- `sitemap.xml`
|
|
116
|
-
- `site.webmanifest`
|
|
117
|
-
- `browserconfig.xml`
|
|
118
|
-
- `.nojekyll`
|
|
119
|
-
- `logo.png`
|
|
120
|
-
- `assets/seo/social-card.png`
|
|
121
|
-
- `llms.txt`
|
|
122
|
-
- Professional repository scaffolding:
|
|
123
|
-
- `CONTRIBUTING.md`
|
|
124
|
-
- `SECURITY.md`
|
|
125
|
-
- `.editorconfig`
|
|
126
|
-
- `.gitattributes`
|
|
127
|
-
- `.github/workflows/ci.yml`
|
|
128
|
-
- GitHub issue and pull request templates
|
|
129
|
-
- Dependabot config
|
|
130
|
-
- Stylelint configuration:
|
|
131
|
-
- `.stylelintrc.json`
|
|
132
|
-
- `.stylelintignore`
|
|
133
|
-
- package scripts and dev dependencies
|
|
134
|
-
|
|
135
|
-
### Changed - 1.0.0
|
|
136
|
-
|
|
137
|
-
- Expanded `index.html` with comprehensive SEO, social metadata, and JSON-LD structured data.
|
|
138
|
-
- Updated README with quality, community, and SEO sections.
|
|
30
|
+
- Initial library package with 11 UI style systems, 10 shared color themes, and light/dark/contrast modes.
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
## Local workflow
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install
|
|
7
|
+
npm run check
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
The library is CSS-only for consumers. Build and validation scripts run with Node and do not create runtime dependencies for package users.
|
|
11
|
+
|
|
12
|
+
## Adding or changing a style system
|
|
13
|
+
|
|
14
|
+
1. Keep the public `data-ui`, `data-theme`, and `data-mode` API stable.
|
|
15
|
+
2. Preserve class prefixes.
|
|
16
|
+
3. Include the native HTML coverage and accessibility layer.
|
|
17
|
+
4. Run `npm run check` before publishing.
|
|
18
|
+
5. Update `STYLE-MAP.md`, `docs/TOKENS.md`, and `CHANGELOG.md` for public API changes.
|
|
19
|
+
|
|
20
|
+
## Versioning
|
|
21
|
+
|
|
22
|
+
- Patch: CSS fixes, docs fixes, small accessibility corrections.
|
|
23
|
+
- Minor: new UI style, new theme, new public utility classes.
|
|
24
|
+
- Major: breaking token names, class names, mode names, or import paths.
|
package/README.md
CHANGED
|
@@ -1,80 +1,22 @@
|
|
|
1
1
|
# UI Style Kit CSS
|
|
2
2
|
|
|
3
|
-
**UI Style Kit CSS** is a CSS-only theme and
|
|
3
|
+
**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
4
|
|
|
5
|
-
It is
|
|
5
|
+
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
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
9
|
- 11 UI style systems
|
|
10
10
|
- 10 shared color schemes
|
|
11
11
|
- `light`, `dark`, and `contrast` modes
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- high-contrast
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
## Wiki
|
|
22
|
-
|
|
23
|
-
Extended documentation lives in [`wiki/`](wiki/):
|
|
24
|
-
|
|
25
|
-
- [`wiki/Home.md`](wiki/Home.md)
|
|
26
|
-
- [`wiki/Installation-and-Setup.md`](wiki/Installation-and-Setup.md)
|
|
27
|
-
- [`wiki/Theming-Model.md`](wiki/Theming-Model.md)
|
|
28
|
-
- [`wiki/Class-API.md`](wiki/Class-API.md)
|
|
29
|
-
- [`wiki/UI-Systems.md`](wiki/UI-Systems.md)
|
|
30
|
-
- [`wiki/Accessibility.md`](wiki/Accessibility.md)
|
|
31
|
-
|
|
32
|
-
## Community
|
|
33
|
-
|
|
34
|
-
- [Code of Conduct](CODE_OF_CONDUCT.md)
|
|
35
|
-
- [Contributing Guide](CONTRIBUTING.md)
|
|
36
|
-
- [Security Policy](SECURITY.md)
|
|
37
|
-
|
|
38
|
-
## Quality
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
npm install
|
|
42
|
-
npm run build
|
|
43
|
-
npm run lint:css
|
|
44
|
-
npm test
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
Run Playwright tests:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
npm run test:e2e:install
|
|
51
|
-
npm run test:e2e
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Auto-fix style issues:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
npm run lint:css:fix
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Full release gate:
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
npm run verify
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Demo SEO Files
|
|
67
|
-
|
|
68
|
-
The demo page includes production SEO/social metadata plus supporting files for GitHub Pages:
|
|
69
|
-
|
|
70
|
-
- `index.html` comprehensive metadata + JSON-LD
|
|
71
|
-
- `robots.txt`
|
|
72
|
-
- `sitemap.xml`
|
|
73
|
-
- `site.webmanifest`
|
|
74
|
-
- `browserconfig.xml`
|
|
75
|
-
- `.nojekyll`
|
|
76
|
-
- `logo.png`
|
|
77
|
-
- `assets/seo/social-card.png`
|
|
12
|
+
- Combined CSS bundle and optional per-style imports
|
|
13
|
+
- Scoped native HTML element coverage
|
|
14
|
+
- Visible `:focus-visible` defaults
|
|
15
|
+
- Skip-link and visually-hidden helpers per style prefix
|
|
16
|
+
- Optional bridge tokens for `interactive-surface-css`
|
|
17
|
+
- Reduced-motion, high-contrast, forced-colors, and print support
|
|
18
|
+
- Cascade-layered CSS for easier consumer overrides
|
|
19
|
+
- No runtime dependencies
|
|
78
20
|
|
|
79
21
|
## Install
|
|
80
22
|
|
|
@@ -84,40 +26,33 @@ npm install ui-style-kit-css
|
|
|
84
26
|
|
|
85
27
|
## Import
|
|
86
28
|
|
|
29
|
+
Full bundle:
|
|
30
|
+
|
|
87
31
|
```js
|
|
88
32
|
import "ui-style-kit-css/dist/ui-style-kit.css";
|
|
89
33
|
```
|
|
90
34
|
|
|
91
|
-
|
|
35
|
+
Single style system:
|
|
92
36
|
|
|
93
37
|
```js
|
|
94
38
|
import "ui-style-kit-css/styles/minimal-saas.css";
|
|
95
39
|
import "ui-style-kit-css/styles/cyberpunk.css";
|
|
96
40
|
```
|
|
97
41
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
This package now ships with an integration bridge for `interactive-surface-css`.
|
|
101
|
-
|
|
102
|
-
If you import the combined build (`dist/ui-style-kit.css`), the bridge is already included.
|
|
103
|
-
|
|
104
|
-
If you import individual style files, also import the bridge file:
|
|
42
|
+
Shortcut imports are also exported:
|
|
105
43
|
|
|
106
44
|
```js
|
|
107
|
-
import "
|
|
108
|
-
import "ui-style-kit-css/
|
|
109
|
-
import "ui-style-kit-css/styles/interactive-surface-bridge.css";
|
|
45
|
+
import "ui-style-kit-css/minimal-saas.css";
|
|
46
|
+
import "ui-style-kit-css/retro-glass.css";
|
|
110
47
|
```
|
|
111
48
|
|
|
112
|
-
|
|
49
|
+
Optional bridge for Interactive Surface CSS:
|
|
113
50
|
|
|
114
51
|
```js
|
|
115
52
|
import "ui-style-kit-css/interactive-surface-bridge";
|
|
116
53
|
```
|
|
117
54
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
## Browser / CDN usage
|
|
55
|
+
## CDN usage
|
|
121
56
|
|
|
122
57
|
After publishing to NPM:
|
|
123
58
|
|
|
@@ -125,10 +60,10 @@ After publishing to NPM:
|
|
|
125
60
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ui-style-kit-css@latest/dist/ui-style-kit.min.css" />
|
|
126
61
|
```
|
|
127
62
|
|
|
128
|
-
|
|
63
|
+
For production, pin a version:
|
|
129
64
|
|
|
130
65
|
```html
|
|
131
|
-
<link rel="stylesheet" href="dist/ui-style-kit.css" />
|
|
66
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ui-style-kit-css@1.2.2/dist/ui-style-kit.min.css" />
|
|
132
67
|
```
|
|
133
68
|
|
|
134
69
|
## Basic usage
|
|
@@ -140,53 +75,81 @@ Local usage:
|
|
|
140
75
|
<article class="saas-card">
|
|
141
76
|
<h1 class="saas-title">UI Style Kit CSS</h1>
|
|
142
77
|
<p class="saas-subtitle">Switch UI systems, themes, and modes with attributes.</p>
|
|
78
|
+
<button class="saas-button saas-button-primary">Primary Action</button>
|
|
143
79
|
</article>
|
|
144
80
|
</section>
|
|
145
81
|
</main>
|
|
146
82
|
</body>
|
|
147
83
|
```
|
|
148
84
|
|
|
85
|
+
## Dynamic switching
|
|
86
|
+
|
|
87
|
+
```js
|
|
88
|
+
document.body.dataset.ui = "cyberpunk";
|
|
89
|
+
document.body.dataset.theme = "midnight-gold";
|
|
90
|
+
document.body.dataset.mode = "dark";
|
|
91
|
+
```
|
|
92
|
+
|
|
149
93
|
## UI systems
|
|
150
94
|
|
|
151
|
-
| UI style | `data-ui` | Class prefix |
|
|
152
|
-
|
|
153
|
-
| Minimal SaaS | `minimal-saas` | `saas` |
|
|
154
|
-
| Bento UI | `bento` | `bento` |
|
|
155
|
-
| Maximalist / Playful | `maximalist` | `max` |
|
|
156
|
-
| Bauhaus / Swiss Modern | `bauhaus` | `bau` |
|
|
157
|
-
| Skeuomorphic / Tactile | `tactile` | `tactile` |
|
|
158
|
-
| Neumorphism | `neumorphism` | `neo` |
|
|
159
|
-
| Retrofuturism | `retrofuturism` | `retro` |
|
|
160
|
-
| Brutalism | `brutalism` | `brutal` |
|
|
161
|
-
| Cyberpunk | `cyberpunk` | `cyber` |
|
|
162
|
-
| Y2K | `y2k` | `y2k` |
|
|
163
|
-
| Retro Glass | `retro-glass` | `rg` |
|
|
95
|
+
| UI style | `data-ui` | Class prefix | Best for |
|
|
96
|
+
|---|---:|---:|---|
|
|
97
|
+
| Minimal SaaS | `minimal-saas` | `saas` | dashboards, admin tools, SaaS apps |
|
|
98
|
+
| Bento UI | `bento` | `bento` | landing pages, feature sections, showcases |
|
|
99
|
+
| Maximalist / Playful | `maximalist` | `max` | creators, entertainment, bold client sites |
|
|
100
|
+
| Bauhaus / Swiss Modern | `bauhaus` | `bau` | agencies, editorial layouts, design-forward brands |
|
|
101
|
+
| Skeuomorphic / Tactile | `tactile` | `tactile` | premium tactile interfaces, control panels |
|
|
102
|
+
| Neumorphism | `neumorphism` | `neo` | soft dashboards, experimental UI |
|
|
103
|
+
| Retrofuturism | `retrofuturism` | `retro` | futuristic portfolios and product pages |
|
|
104
|
+
| Brutalism | `brutalism` | `brutal` | bold creative websites |
|
|
105
|
+
| Cyberpunk | `cyberpunk` | `cyber` | security, gaming, encryption, tech demos |
|
|
106
|
+
| Y2K | `y2k` | `y2k` | nostalgic, playful, fashion/music/event sites |
|
|
107
|
+
| Retro Glass | `retro-glass` | `rg` | futuristic glass dashboards and hero sections |
|
|
164
108
|
|
|
165
109
|
## Color themes
|
|
166
110
|
|
|
167
|
-
|
|
168
|
-
-
|
|
169
|
-
-
|
|
170
|
-
-
|
|
171
|
-
-
|
|
172
|
-
-
|
|
173
|
-
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
111
|
+
```txt
|
|
112
|
+
midnight-gold
|
|
113
|
+
ocean-steel
|
|
114
|
+
forest-moss
|
|
115
|
+
sunset-ember
|
|
116
|
+
royal-plum
|
|
117
|
+
graphite-cyan
|
|
118
|
+
desert-sage
|
|
119
|
+
rose-quartz
|
|
120
|
+
cyber-lime
|
|
121
|
+
arctic-indigo
|
|
122
|
+
```
|
|
177
123
|
|
|
178
124
|
## Modes
|
|
179
125
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
126
|
+
```txt
|
|
127
|
+
light
|
|
128
|
+
dark
|
|
129
|
+
contrast
|
|
130
|
+
```
|
|
183
131
|
|
|
184
|
-
##
|
|
132
|
+
## Native HTML coverage
|
|
185
133
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
134
|
+
Each style system scopes defaults under `[data-ui="..."]` and covers common native elements, including:
|
|
135
|
+
|
|
136
|
+
- headings, paragraphs, links, lists, blockquotes, code, pre, mark, abbr
|
|
137
|
+
- images, media, figures, captions
|
|
138
|
+
- forms, fieldsets, labels, inputs, textareas, selects, checkboxes, radios, range, color, file inputs
|
|
139
|
+
- buttons and submit/reset controls
|
|
140
|
+
- tables and captions
|
|
141
|
+
- `details`, `summary`, `dialog`, `progress`, and `meter`
|
|
142
|
+
|
|
143
|
+
CSS improves accessibility presentation, but it cannot guarantee accessibility by itself. Use semantic HTML, real labels, keyboard-safe JavaScript, meaningful link/button text, and correct ARIA state management.
|
|
144
|
+
|
|
145
|
+
## Cascade layers
|
|
146
|
+
|
|
147
|
+
The library styles are wrapped in `@layer ui-style-kit.*`. Unlayered consumer CSS can override the library without specificity fights:
|
|
148
|
+
|
|
149
|
+
```css
|
|
150
|
+
[data-ui="minimal-saas"][data-theme="arctic-indigo"] {
|
|
151
|
+
--saas-primary-rgb: 72 91 255;
|
|
152
|
+
}
|
|
190
153
|
```
|
|
191
154
|
|
|
192
155
|
## File structure
|
|
@@ -195,27 +158,9 @@ document.body.dataset.mode = "dark";
|
|
|
195
158
|
ui-style-kit-css/
|
|
196
159
|
package.json
|
|
197
160
|
README.md
|
|
198
|
-
CONTRIBUTING.md
|
|
199
|
-
SECURITY.md
|
|
200
|
-
CODE_OF_CONDUCT.md
|
|
201
161
|
LICENSE
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
llms.txt
|
|
205
|
-
robots.txt
|
|
206
|
-
sitemap.xml
|
|
207
|
-
site.webmanifest
|
|
208
|
-
browserconfig.xml
|
|
209
|
-
assets/
|
|
210
|
-
seo/
|
|
211
|
-
social-card.png
|
|
212
|
-
.stylelintrc.json
|
|
213
|
-
.stylelintignore
|
|
214
|
-
.editorconfig
|
|
215
|
-
.gitattributes
|
|
216
|
-
.github/
|
|
217
|
-
workflows/
|
|
218
|
-
ci.yml
|
|
162
|
+
CHANGELOG.md
|
|
163
|
+
STYLE-MAP.md
|
|
219
164
|
dist/
|
|
220
165
|
ui-style-kit.css
|
|
221
166
|
ui-style-kit.min.css
|
|
@@ -231,28 +176,23 @@ ui-style-kit-css/
|
|
|
231
176
|
cyberpunk.css
|
|
232
177
|
y2k.css
|
|
233
178
|
retro-glass.css
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
179
|
+
interactive-surface-bridge.css
|
|
180
|
+
docs/
|
|
181
|
+
TOKENS.md
|
|
182
|
+
STYLE-GUIDE.md
|
|
183
|
+
PUBLISHING.md
|
|
184
|
+
demo/
|
|
185
|
+
index.html
|
|
241
186
|
```
|
|
242
187
|
|
|
243
|
-
##
|
|
188
|
+
## Development checks
|
|
244
189
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
- `prefers-reduced-motion` support
|
|
250
|
-
- `prefers-contrast: more` support
|
|
251
|
-
- `forced-colors: active` support
|
|
252
|
-
- print styles
|
|
253
|
-
- skip-link and visually-hidden utilities per style prefix
|
|
190
|
+
```bash
|
|
191
|
+
npm run check
|
|
192
|
+
npm run pack:dry-run
|
|
193
|
+
```
|
|
254
194
|
|
|
255
|
-
|
|
195
|
+
`npm run check` rebuilds the bundle, runs stylelint, verifies package metadata, and checks core contrast pairs. Optional Playwright visual smoke tests are available through `npm run test:visual` after installing dev dependencies.
|
|
256
196
|
|
|
257
197
|
## License
|
|
258
198
|
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
UI Style Kit CSS is a CSS-only package. It does not execute client-side JavaScript and does not collect or transmit data.
|
|
4
|
+
|
|
5
|
+
Report potential vulnerabilities privately via GitHub Security Advisories (Security tab → Report a vulnerability), or through the preferred private contact channel once configured.
|
|
6
|
+
|
|
7
|
+
## Scope
|
|
8
|
+
|
|
9
|
+
In scope:
|
|
10
|
+
|
|
11
|
+
- Supply-chain/package integrity concerns
|
|
12
|
+
- Malicious or unexpected files in published package contents
|
|
13
|
+
- Unsafe generated demo code
|
|
14
|
+
|
|
15
|
+
Out of scope:
|
|
16
|
+
|
|
17
|
+
- Accessibility bugs that do not create a security issue
|
|
18
|
+
- Visual rendering inconsistencies across browsers
|
package/STYLE-MAP.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# UI Style Kit CSS Style Map
|
|
2
|
+
|
|
3
|
+
## UI systems
|
|
4
|
+
|
|
5
|
+
| UI style | `data-ui` | Prefix | File |
|
|
6
|
+
|---|---:|---:|---|
|
|
7
|
+
| Minimal SaaS | `minimal-saas` | `saas` | `styles/minimal-saas.css` |
|
|
8
|
+
| Bento UI | `bento` | `bento` | `styles/bento.css` |
|
|
9
|
+
| Maximalist / Playful | `maximalist` | `max` | `styles/maximalist.css` |
|
|
10
|
+
| Bauhaus / Swiss Modern | `bauhaus` | `bau` | `styles/bauhaus.css` |
|
|
11
|
+
| Skeuomorphic / Tactile | `tactile` | `tactile` | `styles/tactile.css` |
|
|
12
|
+
| Neumorphism | `neumorphism` | `neo` | `styles/neumorphism.css` |
|
|
13
|
+
| Retrofuturism | `retrofuturism` | `retro` | `styles/retrofuturism.css` |
|
|
14
|
+
| Brutalism | `brutalism` | `brutal` | `styles/brutalism.css` |
|
|
15
|
+
| Cyberpunk | `cyberpunk` | `cyber` | `styles/cyberpunk.css` |
|
|
16
|
+
| Y2K | `y2k` | `y2k` | `styles/y2k.css` |
|
|
17
|
+
| Retro Glass | `retro-glass` | `rg` | `styles/retro-glass.css` |
|
|
18
|
+
|
|
19
|
+
## Themes
|
|
20
|
+
|
|
21
|
+
- `midnight-gold`
|
|
22
|
+
- `ocean-steel`
|
|
23
|
+
- `forest-moss`
|
|
24
|
+
- `sunset-ember`
|
|
25
|
+
- `royal-plum`
|
|
26
|
+
- `graphite-cyan`
|
|
27
|
+
- `desert-sage`
|
|
28
|
+
- `rose-quartz`
|
|
29
|
+
- `cyber-lime`
|
|
30
|
+
- `arctic-indigo`
|
|
31
|
+
|
|
32
|
+
## Modes
|
|
33
|
+
|
|
34
|
+
- `light`
|
|
35
|
+
- `dark`
|
|
36
|
+
- `contrast`
|