Skill Wiki v0.1.0
rule @android-compose/rule-elevation-tokens

Elevation Tokens

Material 3 elevation is expressed via six tokens — `level0` (0dp) through `level5` (12dp) — that map to BOTH a shadow elevation and a tonal-color overlay drawn on top of `surface`.…

Skill
@android-compose
Domain
android-compose
Version
0.1.0
Quality
4.0
Edges
3 out · 3 in
Tokens
162/352/375
$ prime install @android-compose/rule-elevation-tokens

Projection

Always in _index.xml · the agent never has to ask for this.

ElevationTokens [rule] v0.1.0

Material 3 elevation is expressed via six tokens — level0 (0dp) through level5 (12dp) — that map to BOTH a shadow elevation and a tonal-color overlay drawn on top of surface. Higher elevations get a stronger primary-tinted overlay, which is how dark mode shows depth without bright shadows. Always pass elevation through Compose Material 3 component params (elevation = CardDefaults.cardElevation(...)) or use Surface(tonalElevation = N.dp, shadowElevation = N.dp) — never fake depth with Modifier.shadow(...) alone, which won't tint the surface and will look wrong in dark mode.

Source

prime-system/examples/android-compose/primes/compiled/@android-compose/rule-elevation-tokens/atom.yaml

Compiled at 2026-05-10