Getting started / Upgrade guide

Getting started

Upgrade guide

Moving from Strata 2 to 3? Most projects upgrade in under an hour with the automated codemod. This guide covers what it changes and what needs your attention.

Updated Sep 02, 2026 6 min readMigrationv3

Run the codemod

Commit your work first. The codemod rewrites config, renames classes and updates imports in place.

npx @strata/cli@latest upgrade --to 3

Renamed utilities

Strata 2Strata 3Why
shadow-smelevation-1Elevation is now a token scale
roundedradius-mdMatches the radius tokens
flex-col gap-*stack gap-*New layout primitive
text-gray-500text-mutedSemantic colour names

Breaking changes

  1. strata.config.js must become strata.config.ts and export defineConfig().
  2. The important option is removed — cascade layers make it unnecessary.
  3. darkMode: "media" is now colorScheme: "system".
  4. React bindings moved from strata/react to @strata/react.

Was this page helpful?

Last edited Sep 02, 2026 · docs/upgrade-guide.mdx