- Color of the UI: a semantic role,
bg-surface-raised orrgb(var(--magma-surface-raised)) . Never a palette step for a role, and never Tailwind’s own palette (bg-white ,text-gray-700 ): neither follows the theme nor the contrast preference. - A color that is data: a category, a tag, a color the user picked, a brand. Here a
palette step is right:
label-* ,brand-* . - Size, space, type, radius, shadow, motion: the scales, through their Tailwind
classes or their custom properties. In your own CSS take radii from
--magma-radius-* , which follows the corner shape of the page. - One component: its
--mds-* tokens, set in theoverrides cascade layer. - A global decision, such as the opacity of disabled elements or the focus outline:
the
--magma-* global, set in theoverrides layer.