37 lines
1.6 KiB
Markdown
37 lines
1.6 KiB
Markdown
# Migrating from Frost 0.4 to 1.0
|
|
|
|
Frost 1.0 keeps the existing component and token names and adds a formal public API contract. The main packaging change is the default entrypoint.
|
|
|
|
## Default import
|
|
|
|
`@fretuks/frost` now resolves to the built, import-free `dist/frost.css` bundle. Existing imports normally continue to work:
|
|
|
|
```css
|
|
@import "@fretuks/frost";
|
|
```
|
|
|
|
If a build intentionally depended on the modular source entrypoint, use:
|
|
|
|
```css
|
|
@import "@fretuks/frost/frost.css";
|
|
```
|
|
|
|
The explicit `core`, `utility-layer`, `component-layer`, `tokens`, `components`, `utilities`, and `forced-colors` exports remain available. Bundled aliases are available as `@fretuks/frost/bundle` and `@fretuks/frost/bundle.min`. Import-free layer bundles are exported under `@fretuks/frost/dist/utility-layer.css` and `@fretuks/frost/dist/component-layer.css`, with matching `.min.css` variants.
|
|
|
|
## New behavior to verify
|
|
|
|
- Check custom themes in `forced-colors: active` and `prefers-contrast: more`.
|
|
- Confirm interactive code still synchronizes `hidden`, `aria-expanded`, tab selection, and dialog focus; Frost supplies styles rather than behavior.
|
|
- Review newly strengthened disabled, validation, current-page, and focus states.
|
|
- If application CSS targets internal selectors instead of documented `frost-*` classes and properties, move those overrides to the public semantic tokens.
|
|
|
|
## Release-candidate installation
|
|
|
|
Install the candidate without changing the stable npm tag:
|
|
|
|
```bash
|
|
npm install @fretuks/frost@next
|
|
```
|
|
|
|
Run the application in Chromium, Firefox, and Safari/WebKit before promoting the exact candidate commit to `1.0.0`.
|