Skip to content

feat: add outline controls to border settings#68

Merged
liamwalder merged 2 commits intodevelopfrom
feat/outline-controls
Mar 24, 2026
Merged

feat: add outline controls to border settings#68
liamwalder merged 2 commits intodevelopfrom
feat/outline-controls

Conversation

@lunenas
Copy link
Copy Markdown
Collaborator

@lunenas lunenas commented Mar 20, 2026

Summary

Add outline width, color, and offset controls to the Borders section in the design panel, accessible via the existing + dropdown menu — matching the same UX pattern as Dividers.

Changes

  • Add outlineWidth, outlineColor, outlineOffset to BordersDesign type
  • Add Tailwind class regex patterns, generators, and parsers for outline properties
  • Add Outline option to the + dropdown in BorderControls with popover for width, color, and offset
  • Add CMS color variable binding support for outlineColor across variable-utils, layer-utils, resolve-components, and collection-usage-utils

Test plan

  • Click + in Borders section, select "Outline" — should add outline with 1px width and #000 color
  • Open the Outline popover and adjust width, color, and offset — classes should update on the layer
  • Remove outline via the x button — all outline classes should be cleared
  • Verify outline classes round-trip correctly (add outline, save, reload — values persist)
  • Bind outline color to a CMS color field and verify it resolves correctly

Made with Cursor

Add outline width, color, and offset controls accessible via the +
dropdown in BorderControls. Includes Tailwind class generation,
parsing, and CMS color variable binding support.

Made-with: Cursor
@liamwalder liamwalder merged commit 5a2fd39 into develop Mar 24, 2026
2 checks passed
@liamwalder liamwalder deleted the feat/outline-controls branch March 24, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants