Skip to content
Design System
GitHub

0.40 migration

0.40 removes every compatibility shim the kit still carried and renames what was misnamed. Each change below is a type error where it is used, not a silent fallback.

What changed

0.40 removes every compatibility shim the kit still carried and renames what was misnamed. Before 1.0 a rename or a removal is a minor version (above), so read this before you take 0.40. The TypeScript compiler finds every call site: each old prop, tone and name is now a type error, not a silent fallback.

ItemBefore0.40How
Timeline, Trace, DataGriddensity="dense"size="sm"Codemod; density="default" is just left out.
StatusGlyph, StatusEyebrow, InlineStatus, Island, TimelineItem, MarkerRowtonestatusinfo → active, success → normal, neutral → offline; warning and danger stay. Codemod for one-line tags.
Markertone="warning"status="warning"Codemod.
MetaPilltonePageHeader statusA state is not a fact: status={<InlineStatus status="warning">…</InlineStatus>} on PageHeader; the pill keeps the fact.
status-glyphtoStatus, warnToneremovedMap an old tone yourself, or pass status.
Badgetone="info" | "success" | "warning" | "danger"neutral or outlineA state is an InlineStatus with the status; a category keeps a neutral Badge; a count is a CountBadge.
IconTiletone="info" | "success"tone="neutral"They drew neutral already; neutral, warning and danger remain.
Progresstone="success"tone="neutral"It drew neutral already: a finished bar is grey.
chartuseChartMotion()chartMotionCodemod: <Line {...chartMotion} />.
tableScrollFadesscrollFadeMaskstyle={scrollFadeMask(edges)} on the scrolling box.
skeleton<Bone onCard /><Bone />Codemod (it changed nothing).
alarmalarmPriority.critical.tintremovedRows are not tinted; use bg-danger-subtle directly if you must.
share-barsegment tone: 51 to 4 or "other"Or leave tone out to follow the order.
format-count@syncrobotic/format-count@syncrobotic/format-numberInstall it and codemod the imports; the functions keep their names. The old name does not install: npx shadcn add @syncrobotic/format-count fails with a 404.
sparkline-metric-tiles<SparklineMetricTiles /><StatsCards stats={…} columns={3} />Install stats-cards; pass your own stats. The old name fails with a 404.

Removed and renamed items are not redirected in the registry: installing an old name fails (a 404) rather than install something else under it. npm run adoption names the item to install instead. A warning or danger TimelineItem or MarkerRow no longer colours its title (only its glyph or icon), and a ResponsiveTable phone row's title wraps to two lines: neither needs a change in your code.

0.40 codemods
# Run from your project's root on a clean tree, then read the diff. Each line is safe where noted; the rest need a look.

# density -> size (Timeline, Trace, DataGrid). Safe: the theme's data-density never takes "dense".
grep -rlE '[^-]density="(dense|default)"' src | xargs -r sed -i -E 's/([^-])density="dense"/\1size="sm"/g; s/ density="default"//g'

# tone -> status on the status parts, one-line tags only (IslandNotice and Badge keep their tone)
grep -rlE '<(StatusGlyph|StatusEyebrow|InlineStatus|TimelineItem|MarkerRow|Island)[ >]' src | xargs -r sed -i -E \
  '/<(StatusGlyph|StatusEyebrow|InlineStatus|TimelineItem|MarkerRow|Island)[ >]/{s/tone="info"/status="active"/g; s/tone="success"/status="normal"/g; s/tone="neutral"/status="offline"/g; s/ tone=/ status=/g}'

# Marker's tone -> status (warning or danger)
grep -rl '<Marker ' src | xargs -r sed -i -E '/<Marker /s/ tone=/ status=/g'

# IconTile info/success and Progress success -> neutral (they drew neutral already). Safe on one-line tags.
grep -rlE '<IconTile[ >]' src | xargs -r sed -i -E '/<IconTile[ >]/s/tone="(info|success)"/tone="neutral"/g'
grep -rlE '<Progress[ >]' src | xargs -r sed -i -E '/<Progress[ >]/s/tone="success"/tone="neutral"/g'

# useChartMotion() -> chartMotion. Safe.
grep -rl useChartMotion src | xargs -r sed -i -E 's/useChartMotion\(\)/chartMotion/g; s/useChartMotion/chartMotion/g'

# Bone's onCard. Safe.
grep -rl '<Bone ' src | xargs -r sed -i -E 's/(<Bone[^>]*) onCard/\1/g'

# format-count -> format-number. Safe once the new item is installed.
npx shadcn add @syncrobotic/format-number
grep -rl 'format-count' src | xargs -r sed -i 's#lib/format-count#lib/format-number#g; s#@syncrobotic/format-count#@syncrobotic/format-number#g'

# What is left to move by hand: the compiler lists each one
grep -rnE '<Badge[^>]*tone="(info|success|warning|danger)"|<MetaPill[^>]*tone=|ScrollFades|toStatus|warnTone|\.tint\b|SparklineMetricTiles' src