Skip to content

Conversation

@damann
Copy link

@damann damann commented Oct 31, 2025

Purpose of PR

This PR expands the base scale values:
radius-100: 4px (used to b border-radius-small)
radius-200: 8px (used to b border-radius-medium, with 6px)
radius-300: 12px
radius-400: 16px
radius-full: 999px

Additionally it introduces semantic tokens with the goal to create a harmonic combination of border radii. This is a first implementation of new tokens conventions.

The semantic tokens are scoped to component categories – called "element" in the above mentioned conventions. This PR introduces semantic border radii for the elements container (e.g. Card) and control (e.g. Button).
Compositional Logic:
Radius tokens for containers are derived by adding control radius and padding. This ensures visual alignment between inner and outer corners.
Container Radius = Control Radius + Padding

Migration to the new tokens will require a follow up.

PR Checklist

  • I have read the relevant readme.md file(s)
  • All commits follow our Git commit message convention
  • Tests are added/updated/not required
  • Tests are passing
  • Storybook stories are added/updated/not required
  • Usage notes are added/updated/not required
  • Has been tested based on Contentful's browser support
  • Doesn't contain any sensitive information

damann added 30 commits October 27, 2025 11:05
- Changed medium size to fit into an even ramp of multiples of 4
- Changed naming from 'small' to 's', etc.
- Added 'l' and 'xl' sizes
Added separate .js file for semantic border radii (placeholder)
…s-semantic.js to packages/forma-36-tokens/src/tokens/shape-radius-semantic.js
…o packages/forma-36-tokens/src/tokens/radius/sshape-radius-semantic.js
…dius-semantic.js to packages/forma-36-tokens/src/tokens/shape/radius/radius-semantic.js
…packages/forma-36-tokens/src/tokens/shape/radius/scale-radius.js
…js to packages/forma-36-tokens/src/tokens/shape-radius/scale-radius.js
…ic.js to packages/forma-36-tokens/src/tokens/shape-radius/radius-semantic.js
…ic.js to packages/forma-36-tokens/src/tokens/shape/radius/radius-semantic.js
…ic.js to packages/forma-36-tokens/src/tokens/shape-radius/radius-semantic.js
…ackages/forma-36-tokens/src/tokens/shape-spacing/scale-spacing.js
@changeset-bot
Copy link

changeset-bot bot commented Oct 31, 2025

⚠️ No Changeset found

Latest commit: 029c9bf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Oct 31, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
forma-36 Error Error Nov 4, 2025 3:16pm

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Marking pull request as stale since there was no activity for 30 days

@github-actions github-actions bot added the stale Used to mark when there was no activity for a set period of time label Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Used to mark when there was no activity for a set period of time

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants