Skip to content

Commit 6b4da4a

Browse files
authored
Merge pull request #5 from Foscat/ghPages
[chore] v1.1.0 release
2 parents 36b8c53 + 78b2700 commit 6b4da4a

18 files changed

Lines changed: 2354 additions & 305 deletions

CHANGELOG.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
All notable changes to this package are documented in this file.
44

5-
## 1.0.0 - 2026-04-01
5+
## 1.1.0 - 2026-04-09
66

7-
- Initial public package release for `interactive-surface.css`
8-
- Added standalone demo page (`example.html`)
9-
- Added package-local Playwright coverage for:
10-
- state behavior and accessibility media features
11-
- demo rendering and keyboard focus checks
12-
- Added package metadata (`package.json`, exports, scripts, license)
7+
- Standardized color usage to functional notation by converting remaining hex fallbacks in `interactive-surface.css` to `rgb(...)`.
8+
- Added a color-format guard script (`npm run check:no-hex-colors`) to fail builds when hex literals are introduced in `interactive-surface.css`.
9+
- Integrated the color-format guard into `prepublishOnly` so release builds validate RGB/HSL notation before publish.
10+
- Promoted `index.html` as the primary demo/customization app, with `example.html` retained as a backward-compatible export alias.
11+
- Updated docs and wiki guidance for the new color standard, release checklist updates, and demo customization workflow.
1312

14-
## 1.0.2 - 2026-05-01
13+
## 1.0.2 - 2026-04-02
1514

1615
- Added webpack compatibility via a CommonJS entrypoint (`index.cjs`) and `exports.require` mapping.
1716
- Updated package metadata for dual ESM/CommonJS consumption (`main`, `files`, and `sideEffects` updates).
@@ -20,3 +19,12 @@ All notable changes to this package are documented in this file.
2019
- Added and corrected GitHub templates: issue templates under `.github/ISSUE_TEMPLATE/` and PR template.
2120
- Added and aligned comprehensive wiki pages for API, tokens, accessibility, testing, publishing, FAQ, and roadmap.
2221
- Reworked README structure for clearer usage, publishing, and documentation navigation.
22+
23+
## 1.0.0 - 2026-04-01
24+
25+
- Initial public package release for `interactive-surface.css`
26+
- Added standalone demo page (`example.html`)
27+
- Added package-local Playwright coverage for:
28+
- state behavior and accessibility media features
29+
- demo rendering and keyboard focus checks
30+
- Added package metadata (`package.json`, exports, scripts, license)

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ Webpack:
8181
CDN:
8282

8383
```html
84-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/interactive-surface-css@1.0.2/interactive-surface.css" />
85-
<link rel="stylesheet" href="https://unpkg.com/interactive-surface-css@1.0.2/interactive-surface.css" />
84+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/interactive-surface-css@latest/interactive-surface.css" />
85+
<link rel="stylesheet" href="https://unpkg.com/interactive-surface-css@latest/interactive-surface.css" />
8686
```
8787

8888
## Quick Start
@@ -101,7 +101,13 @@ CDN:
101101
</button>
102102
```
103103

104-
Demo page: `example.html`
104+
Demo page: `index.html`
105+
106+
`index.html` is a practical customization playground for this library:
107+
108+
- It provides guided token editing controls instead of freehand CSS typing.
109+
- It supports importing and exporting token CSS so teams can reuse exact values.
110+
- It helps reduce manual entry mistakes when creating app-level theme overrides.
105111

106112
## Class API
107113

@@ -162,6 +168,7 @@ See [Accessibility](./wiki/Accessibility.md) for implementation guidance.
162168
## Testing
163169

164170
```bash
171+
npm run check:no-hex-colors
165172
npm run lint:css
166173
npm test
167174
npm run test:chromium
@@ -178,11 +185,11 @@ Release checklist:
178185
2. Bump `version` in `package.json`.
179186
3. Update `CHANGELOG.md`.
180187
4. Push to `main`.
181-
5. Create and publish a GitHub Release tag (for example `v1.0.1`).
188+
5. Create and publish a GitHub Release tag (for example `v1.1.0`).
182189
6. Verify the `Publish to npm` workflow succeeds.
183190
7. Verify CDN availability:
184-
- `https://cdn.jsdelivr.net/npm/interactive-surface-css@1.0.2/interactive-surface.css`
185-
- `https://unpkg.com/interactive-surface-css@1.0.2/interactive-surface.css`
191+
- `https://cdn.jsdelivr.net/npm/interactive-surface-css@<version>/interactive-surface.css`
192+
- `https://unpkg.com/interactive-surface-css@<version>/interactive-surface.css`
186193

187194
Manual fallback:
188195

example.html

Lines changed: 0 additions & 262 deletions
This file was deleted.

0 commit comments

Comments
 (0)