Skip to content

feat: add theme.shapes and cornersToStyle#4918

Closed
adrcotfas wants to merge 1 commit into@adrcotfas/refactor/tokens_statefrom
tokens_shape
Closed

feat: add theme.shapes and cornersToStyle#4918
adrcotfas wants to merge 1 commit into@adrcotfas/refactor/tokens_statefrom
tokens_shape

Conversation

@adrcotfas
Copy link
Copy Markdown
Collaborator

Motivation

Adds the 10 MD3 shape scale tokens to theme.shapes.*, ShapeCorners for directional variants, and cornersToStyle() for mapping to RN style props. Deprecates theme.roundness in favour of theme.shapes.

Related issue

See https://www.notion.so/callstack/React-Native-Paper-Foundation-for-MD3-Expressive-34c5d027c0f880edba3df107cd35946f?source=copy_link

Test plan

  • yarn typescript -- no new type errors
  • yarn test -- all tests pass

Adds the 10 MD3 shape scale tokens to theme.shapes.*, ShapeCorners for directional variants, and cornersToStyle() for mapping to RN style props. Deprecates theme.roundness in favour of theme.shapes.
@callstack-bot
Copy link
Copy Markdown

Hey @adrcotfas, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@adrcotfas adrcotfas closed this May 5, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

The mobile version of example app from this branch is ready! You can see it here.

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.

2 participants