You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,9 @@ Follow the ordered steps in [`.cursor/commands/submit-changes.md`](.cursor/comma
29
29
1.**Typecheck** — Run `pnpm typecheck`. If it fails, stop and fix errors before formatting or committing.
30
30
2.**Lint** — Run `pnpm lint`. If it fails, stop and fix errors before formatting or committing.
31
31
3.**Format** — Run `pnpm format` so committed code matches Prettier output.
32
-
4.**Commit** — Use [Conventional Commits](https://www.conventionalcommits.org/) (`feat`, `fix`, `refactor`, `test`, `docs`, `chore`, `perf`, `ci`; optional scope). Keep the subject line short.
33
-
5.**Push** — Do not push to `main`. Confirm the current branch, then push with `git push -u origin HEAD`.
34
-
35
-
**Changesets:** When a change should trigger an npm release, add a changeset as described in `submit-changes.md` and include it in the same commit. When a change does not need a version bump (for example documentation or repo-only churn), skip the changeset but still run typecheck, lint, and format.
32
+
4.**Changeset** — If the change affects published package behavior (features, fixes, refactors, perf), create a changeset file in `.changeset/` as described in `submit-changes.md` and include it in the commit. Use `patch` for fixes/small changes, `minor` for new features/non-breaking API changes, `major` for breaking changes. Skip the changeset only when the change is purely internal (docs, CI, repo-only churn, tests with no behavior change).
33
+
5.**Commit** — Use [Conventional Commits](https://www.conventionalcommits.org/) (`feat`, `fix`, `refactor`, `test`, `docs`, `chore`, `perf`, `ci`; optional scope). Keep the subject line short. Include the changeset file in the same commit.
34
+
6.**Push** — Do not push to `main`. Confirm the current branch, then push with `git push -u origin HEAD`.
**Output modifier:**`longhand` — forces output as individual CSS longhand properties (`padding-top`, `padding-right`, `padding-bottom`, `padding-left`) instead of the `padding` shorthand. Useful when children need to selectively inherit individual directions.
108
+
107
109
| Value | Effect |
108
110
|-------|--------|
109
111
|`"2x"`| All sides `2x`|
@@ -112,6 +114,7 @@ Element padding with directional modifiers and multi-group support. Use **comma-
112
114
|`"1x left right"`| Left and right `1x`, top/bottom `0`|
113
115
|`"1x, 2x top"`| All sides `1x`, then top overridden to `2x`|
114
116
|`"1x, 2x top bottom"`| Left/right `1x`, top/bottom `2x`|
117
+
|`"2x longhand"`| All sides `2x`, output as 4 individual `padding-*` properties |
115
118
|`true`| All sides `1x`|
116
119
| Number | Converted to `px`|
117
120
@@ -129,6 +132,8 @@ Element margin. Same syntax, modifiers, and multi-group support as `padding`.
**Output modifier:**`longhand` — forces output as individual CSS properties (`border-top`, `border-right`, `border-bottom`, `border-left`) instead of the `border` shorthand. Useful when children need to selectively inherit individual sides.
293
+
284
294
| Value | Effect |
285
295
|-------|--------|
286
296
|`true`| Default border (`1bw solid #border`) on all sides |
287
297
|`"2bw dashed #purple"`| All sides: 2bw dashed purple |
288
298
|`"2bw top"`| Top only: 2bw solid `#border`, others: 0 |
|`"1bw longhand"`| All sides: 1bw solid `#border`, output as 4 individual `border-*` properties |
290
301
|`"1bw #red, 2bw #blue top"`| All sides: 1bw solid `#red`, top overridden to 2bw solid `#blue`|
291
302
|`"1bw, dashed top bottom, #purple left right"`| Base: 1bw solid `#border`, top/bottom: 1bw dashed `#border`, left/right: 1bw solid `#purple`|
292
303
@@ -310,6 +321,8 @@ Border radius with shape presets and directional modifiers.
310
321
311
322
**Direction modifiers:**`top`, `right`, `bottom`, `left` — rounds only the specified corners.
312
323
324
+
**Output modifier:**`longhand` — forces output as individual CSS longhand properties (`border-top-left-radius`, `border-top-right-radius`, `border-bottom-right-radius`, `border-bottom-left-radius`) instead of the `border-radius` shorthand. Useful when children need to selectively inherit individual corners via `radius: 'inherit left'`.
325
+
313
326
| Value | Effect |
314
327
|-------|--------|
315
328
|`"2r"`| All corners `2r`|
@@ -318,6 +331,7 @@ Border radius with shape presets and directional modifiers.
318
331
|`"1r top"`| Top-left and top-right `1r`, bottom-left and bottom-right `0`|
0 commit comments