Skip to content

feat(design-system): define restrained radius and shape system - #477

Merged
IbrahimIjai merged 2 commits into
SO4-Markets:mainfrom
dev-susa:feat/395-radius-shape-system
Jul 29, 2026
Merged

feat(design-system): define restrained radius and shape system#477
IbrahimIjai merged 2 commits into
SO4-Markets:mainfrom
dev-susa:feat/395-radius-shape-system

Conversation

@dev-susa

Copy link
Copy Markdown
Contributor

Summary

Implements DS-008: Define a restrained radius and shape system (#395)

Replaces the broken radius scale (which relied on an undefined --radius base variable) with explicit, absolute values that work correctly across all components.

Changes

  • ✅ Defined explicit radius tokens: sm (4px), md (6px), lg (8px), xl (12px), and full
  • ✅ Documented component-to-radius mapping for each token size
  • ✅ Removed broken calc() expressions that relied on undefined --radius base
  • ✅ All existing Tailwind utilities (rounded-sm, rounded-md, etc.) now resolve correctly
  • ✅ No production components unintentionally forced to square corners

Component-to-Radius Mapping

  • sm (4px): buttons, inputs, badges, tabs
  • md (6px): dropdowns, selects, chips
  • lg (8px): cards, panels, modals, popovers
  • xl (12px): large cards, feature panels, section containers
  • full: pills, avatar badges, status indicators (fully rounded)

Testing

  • ✅ Skeleton component tests pass (verify radius tokens work correctly)
  • ✅ Build succeeds without errors
  • ✅ CSS tokens properly defined in Tailwind v4 @theme block

Acceptance Criteria

  • The scale defines sm, md, lg, xl, and full
  • Component-to-radius mapping is documented
  • Existing Tailwind radius utilities resolve from the scale
  • No production component is unintentionally forced to square corners

Closes #395

…SO4-Markets#395)

- Replace undefined --radius base with explicit absolute values
- Define sm (4px), md (6px), lg (8px), xl (12px), and full radius tokens
- Document component-to-radius mapping for each token size
- Remove broken calc() expressions that relied on undefined base
- Existing Tailwind utilities (rounded-sm, rounded-md, etc.) now resolve correctly
- All production components maintain their intended corner radius

Implements DS-008 acceptance criteria:
✓ Scale defines sm, md, lg, xl, and full
✓ Component-to-radius mapping is documented
✓ Existing Tailwind radius utilities resolve from the scale
✓ No production component forced to unintentional square corners
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@dev-susa is attempting to deploy a commit to the Ijai's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@dev-susa Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@IbrahimIjai
IbrahimIjai merged commit 2567304 into SO4-Markets:main Jul 29, 2026
0 of 4 checks passed
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.

DS-008: Define a restrained radius and shape system

2 participants