Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .agents/skills/panda-v2-migration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ v2 keeps `css()`, recipes, tokens, conditions, and JSX props. It rewrites the co
| Vue entry CSS imports | `styled-system/css` (bundled or aliased) | published JS imports `@fyrst/ui/css` so stale-buildinfo fallback can re-extract |
| Inline `style=` | Card/Loader/Progress/FormPrompt used CSS variables on `style=` | variants are classes; SSR HTML has no `style=` from those components |

### 0.4.0 (consumer patches) — additive on 0.3.x
### 0.4.x (consumer patches) — additive on 0.3.x

| Area | 0.3.x | 0.4.0 |
| Area | 0.3.x | 0.4.x |
| --- | --- | --- |
| `@pandacss/preset-base` | peer; `designSystem` apps still installed it so Panda could resolve the string from the app | dependency of `@fyrst/ui`; inlined into `dist/panda/preset.mjs`. Do not add it on a `designSystem` app |
| `Button` | `size` `sm` \| `md` \| `lg` only; no `font-family` | `fullWidth` boolean (default `false`); `fontFamily: 'inherit'` |
| Fields | input / textarea / select trigger used the user-agent font when preflight was off | `fontFamily: 'inherit'` on those controls. Field URL already had `font: inherit` |
| `AlertRoot` | `#icon` only replaces the default icon | `hideIcon` omits the icon and its gap |
| Fonts | no `fonts.sans` / `serif` / `mono` on this preset | Figtree sans stack, system serif and mono, semantic `fonts.body`. Load the face in the app (root README). The package does not ship font files |
| `*.lucid.700`, `*.lucid.900`, `brand.pale.lucid` | absent (dropped when `*.subtle` was added, still absent in 0.3.0) | restored with the previous values. `*.subtle` remains the muted fill. `primary.subtle` / `primary.subtle.light` / `primary.text` added |
| Status washes | `danger` / `success` / `warning` / `info` use `*.subtle`. `primary` is a single color | unchanged in 0.4.1. 0.4.0 added `*.lucid.700`, `*.lucid.900`, `brand.pale.lucid`, `primary.subtle`, `primary.subtle.light`, and `primary.text` by mistake; 0.4.1 removes them. Use `*.subtle` |
| Required asterisk | `danger.subtle` (grey wash in dark mode) | `danger` again |

No props were removed. `fullWidth` and `hideIcon` default to `false`.
Expand Down
26 changes: 10 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.4.1] - 2026-10-31

Patch on 0.4.0. Font tokens, `font-family: inherit`, `Button` `fullWidth`, `AlertRoot` `hideIcon`, the required-field asterisk (`color: 'danger'`), and the inlined `@pandacss/preset-base` dependency are unchanged.

### Removed

- Color tokens added in 0.4.0 by mistake: `brand.pale.lucid`, `primary.subtle`, `primary.subtle.light`, `primary.text`, and `primary` / `danger` / `success` / `warning` / `info` `.lucid.700` and `.lucid.900`. Color tokens match v0.2.0 again. Consumers should use `*.subtle`.

## [0.4.0] - 2026-10-30

Additive release for apps already on 0.3.0 (`designSystem: '@fyrst/ui'`, Panda 2.4). No prop was removed or renamed.
Expand All @@ -25,21 +33,6 @@ Additive release for apps already on 0.3.0 (`designSystem: '@fyrst/ui'`, Panda 2
- The required-field asterisk uses `color: 'danger'` again (solid red). It had been switched to `danger.subtle`, which reads as a grey wash in dark mode.
- `@pandacss/preset-base` is a dependency of `@fyrst/ui`, and the published design-system preset inlines that module. Apps on `designSystem: '@fyrst/ui'` no longer add `@pandacss/preset-base` themselves. `@pandacss/dev` stays a peer. [Publishing](https://panda-css.com/docs/design-systems/publishing) keeps Panda itself as a peer; a string preset name is resolved from the app, so the library passes the module through `panda lib` instead.

### Token mapping

If a local patch recreated the old washes, you can drop it and use the restored tokens, or move to the muted mixes:

| Previous token | Restored in 0.4.0 | Preferred muted fill |
| --- | --- | --- |
| `brand.pale.lucid` | `brand.pale.lucid` (`brand.100` at 25%) | — |
| `primary.lucid.700` / `.900` | same paths | `primary.subtle` |
| `danger.lucid.700` / `.900` | same paths | `danger.subtle` |
| `success.lucid.700` / `.900` | same paths | `success.subtle` |
| `warning.lucid.700` / `.900` | same paths | `warning.subtle` |
| `info.lucid.700` / `.900` | same paths | `info.subtle` |

`*.lucid.700` is a 25% wash in dark mode and 40% in light mode. `*.lucid.900` is 10% / 25%. `*.subtle` is a grey mix, not the same wash.

## [0.3.0] - 2026-10-30

Official Panda 2 **library** consumption (`panda lib` / `designSystem`) plus CSP-safe SSR. This is a **breaking** upgrade from 0.2.0 for consuming apps. Follow [`.agents/skills/panda-v2-migration/SKILL.md`](.agents/skills/panda-v2-migration/SKILL.md) and the official [Build a design system](https://panda-css.com/docs/design-systems/build-a-design-system) guide.
Expand Down Expand Up @@ -93,7 +86,8 @@ Public export names are unchanged: `preset`, `breakpoints`, `@fyrst/ui/design-pr

- Initial `@fyrst/ui` design system: Panda CSS preset, Vue 3 components, and Nuxt module.

[unreleased]: https://github.com/fyrst-dev/ui/compare/v0.4.0...HEAD
[unreleased]: https://github.com/fyrst-dev/ui/compare/v0.4.1...HEAD
[0.4.1]: https://github.com/fyrst-dev/ui/compare/v0.4.0...v0.4.1
[0.4.0]: https://github.com/fyrst-dev/ui/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/fyrst-dev/ui/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/fyrst-dev/ui/compare/v0.1.0...v0.2.0
Expand Down
8 changes: 4 additions & 4 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fyrst/ui",
"version": "0.4.0",
"version": "0.4.1",
"description": "fyrst.dev design system: Panda CSS preset, Vue components, and Nuxt module",
"license": "MIT",
"author": "fyrst.dev",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fyrst/ui-components",
"version": "0.4.0",
"version": "0.4.1",
"private": true,
"description": "Vue 3 UI components for the fyrst.dev design system",
"license": "MIT",
Expand Down Expand Up @@ -67,7 +67,7 @@
},
"peerDependencies": {
"vue": "^3.5.41",
"@fyrst/design-preset": "^0.4.0",
"@fyrst/design-preset": "^0.4.1",
"@pandacss/dev": "^2.4.0",
"@pandacss/preset-base": "^2.4.0",
"reka-ui": "^2.10.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fyrst/ui-nuxt",
"version": "0.4.0",
"version": "0.4.1",
"private": true,
"description": "Nuxt module for the fyrst.dev Vue UI components",
"license": "MIT",
Expand Down
26 changes: 9 additions & 17 deletions packages/nuxt/test/preset-tokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,19 @@ describe('preset tokens', () => {
expect(semanticFonts.body?.value).toBe('{fonts.sans}')
})

it('keeps status lucid steps, brand.pale.lucid, and primary.subtle', () => {
expect(colors.brand.pale).toMatchObject({
DEFAULT: { value: '{colors.brand.100}' },
lucid: { value: '{colors.brand.100/25}' },
})
expect(colors.primary).toMatchObject({
subtle: {
DEFAULT: { value: expect.objectContaining({ base: expect.stringContaining('brand.100') }) },
},
lucid: {
700: { value: { base: '{colors.brand.pale/25}', _light: '{colors.brand.pale/40}' } },
900: { value: { base: '{colors.brand.pale/10}', _light: '{colors.brand.pale/25}' } },
},
it('matches the v0.2.0 color tokens', () => {
expect(colors.brand.pale).toEqual({ value: '{colors.brand.100}' })
expect(colors.primary).toEqual({
value: { base: '{colors.brand.pale}', _light: '{colors.brand.day}' },
})
expect(colors.primary).not.toHaveProperty('subtle')
expect(colors.primary).not.toHaveProperty('text')
expect(colors.primary).not.toHaveProperty('lucid')

for (const name of ['danger', 'success', 'warning', 'info'] as const) {
expect(colors[name].lucid).toMatchObject({
700: { value: expect.objectContaining({ base: expect.any(String), _light: expect.any(String) }) },
900: { value: expect.objectContaining({ base: expect.any(String), _light: expect.any(String) }) },
})
expect(colors[name].subtle).toBeTruthy()
expect(colors[name].text).toBeTruthy()
expect(colors[name]).not.toHaveProperty('lucid')
}
})
})
2 changes: 1 addition & 1 deletion packages/preset/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fyrst/design-preset",
"version": "0.4.0",
"version": "0.4.1",
"private": true,
"description": "Panda CSS preset with fyrst.dev design tokens",
"license": "MIT",
Expand Down
32 changes: 2 additions & 30 deletions packages/preset/src/tokens/semantic-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ export const fonts = defineSemanticTokens.fonts({

export const colors = defineSemanticTokens.colors({
brand: {
pale: {
DEFAULT: { value: '{colors.brand.100}' },
lucid: { value: '{colors.brand.100/25}' },
},
pale: { value: '{colors.brand.100}' },
day: { value: '{colors.brand.300}' },
brand: { value: '{colors.brand.400}' },
dawn: { value: '{colors.brand.600}' },
Expand All @@ -50,16 +47,7 @@ export const colors = defineSemanticTokens.colors({
black: { value: '{colors.grey.950}' },
},
primary: {
DEFAULT: { value: { base: '{colors.brand.pale}', _light: '{colors.brand.day}' } },
subtle: {
DEFAULT: subtleMix('brand.100', 'brand.300'),
light: subtleMix('brand.100', 'brand.100', '{opacity.color.status.lighter}', '{opacity.color.neutral.lighter}'),
},
text: { value: { base: '{colors.brand.600}' } },
lucid: {
700: { value: { base: '{colors.brand.pale/25}', _light: '{colors.brand.pale/40}' } },
900: { value: { base: '{colors.brand.pale/10}', _light: '{colors.brand.pale/25}' } },
},
value: { base: '{colors.brand.pale}', _light: '{colors.brand.day}' },
},
danger: {
DEFAULT: { value: { base: '{colors.red.400}', _light: '{colors.red.600}' } },
Expand All @@ -68,10 +56,6 @@ export const colors = defineSemanticTokens.colors({
light: subtleMix('red.200', 'red.400', '{opacity.color.status.lighter}', '{opacity.color.neutral.lighter}'),
},
text: { value: { base: '{colors.red.900}' } },
lucid: {
700: { value: { base: '{colors.red.400/25}', _light: '{colors.red.600/40}' } },
900: { value: { base: '{colors.red.400/10}', _light: '{colors.red.600/25}' } },
},
},
success: {
DEFAULT: { value: { base: '{colors.green.400}', _light: '{colors.green.600}' } },
Expand All @@ -80,10 +64,6 @@ export const colors = defineSemanticTokens.colors({
light: subtleMix('green.200', 'green.400', '{opacity.color.status.lighter}', '{opacity.color.neutral.lighter}'),
},
text: { value: { base: '{colors.green.900}' } },
lucid: {
700: { value: { base: '{colors.green.400/25}', _light: '{colors.green.600/40}' } },
900: { value: { base: '{colors.green.400/10}', _light: '{colors.green.600/25}' } },
},
},
warning: {
DEFAULT: { value: { base: '{colors.yellow.400}', _light: '{colors.yellow.600}' } },
Expand All @@ -92,10 +72,6 @@ export const colors = defineSemanticTokens.colors({
light: subtleMix('yellow.200', 'yellow.400', '{opacity.color.status.lighter}', '{opacity.color.neutral.lighter}'),
},
text: { value: { base: '{colors.yellow.900}' } },
lucid: {
700: { value: { base: '{colors.yellow.400/25}', _light: '{colors.yellow.600/40}' } },
900: { value: { base: '{colors.yellow.400/10}', _light: '{colors.yellow.600/25}' } },
},
},
info: {
DEFAULT: { value: { base: '{colors.blue.400}', _light: '{colors.blue.600}' } },
Expand All @@ -104,10 +80,6 @@ export const colors = defineSemanticTokens.colors({
light: subtleMix('blue.200', 'blue.400', '{opacity.color.status.lighter}', '{opacity.color.neutral.lighter}'),
},
text: { value: { base: '{colors.blue.900}' } },
lucid: {
700: { value: { base: '{colors.blue.400/25}', _light: '{colors.blue.600/40}' } },
900: { value: { base: '{colors.blue.400/10}', _light: '{colors.blue.600/25}' } },
},
},
neutral: {
DEFAULT: { value: { base: '{colors.white}', _light: '{colors.grey.night}' } },
Expand Down
Loading