Skip to content

feat: add elevation tokens and fix Android dp spec bug#4923

Open
adrcotfas wants to merge 1 commit into@adrcotfas/refactor/tokens_motionfrom
@adrcotfas/refactor/tokens_elevation
Open

feat: add elevation tokens and fix Android dp spec bug#4923
adrcotfas wants to merge 1 commit into@adrcotfas/refactor/tokens_motionfrom
@adrcotfas/refactor/tokens_elevation

Conversation

@adrcotfas
Copy link
Copy Markdown
Collaborator

@adrcotfas adrcotfas commented May 5, 2026

Motivation

Part of the foundation of adding tokens and structure.

Add theme.elevation sys token and clean up elevation types

Replace the ElevationLevels numeric enum with an ElevationLevel string union, add ThemeElevation and theme.elevation.level0-5 as a proper sys token (matching md.sys.elevation.* spec naming), export elevationInputRange as the single source of truth for the [0-5] interpolation range, fix iOS shadow color to read from
theme.colors.shadow instead of a hardcoded #000, and remove ELEVATION_LEVELS_MAP from Menu in favor of the template literal pattern already used in Surface.

Related issue

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

Merge order:

@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.

1 participant