Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
All documentation
All migration guidesLumen 6

Migrating from Lumen 5 to 6

Lumen 6 brings a new default design and removes compatibility aliases and tooling kept from earlier majors. Most component APIs and semantic token names remain familiar, but selection, form submission and confirmation behavior need review alongside the removals below. Lumen 6 doesn’t migrate application data, but React and Elements theme toggles now save the visitor’s theme under a new key; see Theme toggle. Start by updating packages together, running lumen doctor, replacing removed surfaces, and reviewing the new default appearance, or opt into Lumen Classic to keep the Lumen 5 look.

The release notes, versioned contract and package changelogs describe the upgrade. Lumen 6 has no lumen migrate v6 source rewrite. lumen doctor reports recognized removed imports, props and themes. lumen audit-consumer adds v6 behavior review signals with replacement examples, verification steps and links to this guide. Neither command proves your callbacks, form behavior, chart semantics or native UI tests correct.

This guide covers Lumen 6.0.0.

At a glance

Area What changes Action
Default appearance Cool neutral surfaces, graphite primary actions, violet accents and bundled Inter; corner sizes are unchanged Review visual baselines, or opt into Classic
Card variant="glass" alias removed Use glass, glass="subtle" or glass="strong"
PhoneInput countries removed Pass countryOptions
React Select An unselected control no longer submits the first option and fails required validation Set an explicit initial selection when needed; see React Select
React DataTable Selection uses React props; selected table rows no longer expose aria-selected Move DOM listeners and seeded attributes to selection state
Tables Records stack by the table’s width; tables in a DataTableView stick their header in a 36rem region; React sorting cycles back to unsorted; empty rows; 2rem avatars Review Tables
React Popconfirm Interactive, with a stricter single-trigger contract Review React Popconfirm
Theme toggle React and Elements toggles save under lumen-theme and dispatch ui:theme-change; useThemeToggle takes an options object Keep saved choices with the theme storage key and rename listeners; see Theme toggle
Core exports Color, date-locale and Figma aliases removed Use the replacements
Legacy web hooks resolveLumenGlass, migrateLumenVersionSource, data-ui-theme-hue, .ui-toggle--pressed, Tour hidden Use the replacements
Web icons 48 renamed Lucide static exports and every old Lucide alias name removed Use the current names
Native icons 48 legacy icon names and brand:x removed from SwiftUI, Compose and React Native, including 49 React Native icons/<name> subpaths Use the current names
Compose Remaining 4.1 binary signatures and forwarding overloads removed Recompile; name the few positional trailing arguments
SwiftUI Initializer overloads that only omitted a defaulted parameter collapsed Ordinary calls are unchanged; see SwiftUI initializers
Native Cascader The panel opens from a select-style trigger and closes after a leaf is chosen Remove host workarounds that kept space for an always-open panel
Charts and stats Default series order and the first series color change; Stat variant="accent" no longer colors the value Review chart tones and stat values
Native visuals Default depth, opaque tones, field focus, segmented tabs, framed tables and quiet tree rows Review native snapshots; see native components
Themes Field and the color-only Studio preset removed; Studio becomes a denser product theme Apply a generated palette or review Studio
CLI and MCP lumen migrate v2, v3 and v4, and MCP migration target 4.0.0, removed; MCP list tools return grouped names, and the stdio server registers only the tools your project uses Use the Lumen 5 CLI for projects still on 4.x or older; see retired tooling and MCP server

1. Update packages together

Upgrade the umbrella package and every web adapter in one change. Every published package now shares the Lumen major, so companions such as React Native, tokens, React Hook Form, the brand icons, Compose and lumen-dioxus also move to 6.0.0, even from 4.x; the release manifest lists the exact versions.

pnpm add @santi020k/lumen-astro@6 @santi020k/lumen-react@6 @santi020k/lumen-elements@6
pnpm add -D @santi020k/lumen@6

Move @santi020k/lumen-core to 6 as well if you import it directly, as the PhoneInput and palette examples below do: pnpm add @santi020k/lumen-core@6.

Native packages move to 6.0.0 the same way, and the Rust crates make their first release at 6.0.0:

.package(url: "https://github.com/santi020k/lumen", exact: "6.0.0")
implementation("com.santi020k:lumen-compose:6.0.0")
implementation("com.santi020k:lumen-compose-wear:6.0.0")
pnpm add @santi020k/lumen-react-native@6
cargo add [email protected]

The lumen-gpui-theme, lumen-gpui and lumen-gpui-ce crates also release at 6.0.0.

Keep only the adapters your application already uses. Projects older than Lumen 5 first run the Lumen 5 CLI migrations in order from their version, for example npx @santi020k/lumen@5 migrate v2 --dry-run, then v3, v4 and v5, before upgrading to 6. lumen migrate v5 remains available in the Lumen 6 CLI. Lumen 6 has no source migration of its own, and lumen migrate v6 points you to the doctor and audit below.

2. Run the doctor

pnpm exec lumen doctor
pnpm exec lumen audit-consumer . --version 6.0.0

The doctor can report these removed surfaces in statically recognizable source:

Finding Severity What it finds Fix
removed-icon-export Error Static icon imports from @santi020k/lumen-core/icon-data and @santi020k/lumen-react/icons that no longer exist; the finding names the replacement Static icon exports
removed-icon-name Advisory String icon names on Astro and React components and lumen-* elements that no longer resolve, including brand:x Icon names
removed-core-export Error Imports of removed core aliases Core exports
removed-card-glass-variant Advisory A Lumen Card that still passes variant="glass" Card glass
removed-phone-countries Advisory A Lumen PhoneInput that still passes countries PhoneInput countries
removed-theme-import Error Static imports of retired web theme styles or React Native theme subpaths Retired themes
removed-theme-preset Advisory Literal retired data-lumen-preset values, legacy Studio preset helpers or React Native provider presets Retired themes

The doctor reads source text. It can’t follow dynamic values, spreads or names built at runtime, so review those by hand. It also doesn’t check React Native, SwiftUI or Compose icons: rename @santi020k/lumen-react-native/icons/<name> imports, React Native LumenIcon name= values and native LumenIconName members by hand from the icon names table.

The Lumen 1.x and 2.x checks deprecated-surface-glass, deprecated-datatable-event and removed-root-export no longer run; remove them from any CI allowlist.

The v6 consumer audit includes these removal findings alongside the existing package, patch and CSS checks. It groups imported React Select, DataTable and Popconfirm components by the behavior to review, and flags chart and Stat imports across web adapters. It also flags React and Elements theme toggles and theme-change listeners, React and Elements trees, React DataTableView, React DataTable onSortChange and onSortingChange handlers and Tour hidden props, plus ui-button--disabled, which native buttons no longer get, and the removed ui-toggle--pressed and data-ui-theme-hue names in stylesheets, markup and scripts. Each advisory includes an example, a concrete interaction or visual check, and a section link. Imports and source text are review signals, including aliased and selective imports; they do not establish that your application is broken. Use --json to consume the same findings in tooling. Older release targets keep their own review behavior.

Theme detection covers static JavaScript imports, exports and literal dynamic imports; CSS @import, including url(...); Astro front matter and literal markup presets; and HTML style/script blocks. It recognizes named createThemePreset('studio') imports and named React Native LumenProvider imports, including aliases. It leaves files unchanged. Review namespace imports, computed values, spreads, custom wrappers and SwiftUI/Compose theme members by hand. Palette names such as data-lumen-palette="field" and Santi020k Mono remain supported.

3. Replace removed surfaces

Card glass

- <Card variant="glass">Supporting controls</Card>
+ <Card glass="subtle">Supporting controls</Card>

glass alone selects the default strength. Stat variant="glass" is unchanged.

PhoneInput countries

import { getLumenPhoneCountry, type LumenPhoneCountry } from '@santi020k/lumen-core'
import { PhoneInput } from '@santi020k/lumen-react'

const countryOptions = ['US', 'CA', 'MX']
  .map(code => getLumenPhoneCountry(code))
  .filter((country): country is LumenPhoneCountry => country !== null)

export const ContactPhone = () => <PhoneInput countryOptions={countryOptions} name="phone" />

Per-option disabled is no longer supported. When countryOptions no longer offers the selected country, React PhoneInput falls back to the default country, else the first option, and reports the change through onValueChange.

React Select

A React Select without a selected option now keeps an empty value instead of silently submitting the first option. The generated disabled placeholder is omitted from FormData, so the field has no submitted entry until an option is selected. This matches its visible placeholder. A required control now blocks submission until the user chooses an option. If the first option is your intended default, set it explicitly:

import { Select } from '@santi020k/lumen-react'

export const StatusField = () => (
  <Select
    name="status"
    aria-label="Status"
    options={[
      { value: 'draft', label: 'Draft' },
      { value: 'published', label: 'Published' }
    ]}
    defaultValue="draft"
    required
  />
)

Use value with onValueChange for controlled selection. Check both form submission and reset; do not rely on the first option to supply a hidden initial value.

React DataTable selection

React DataTable selectable now renders and manages its checkbox column. Replace listeners for ui:data-table-selection-change with onSelectedRowIdsChange, and replace selection seeded through row aria-selected or data-state attributes with selectedRowIds or defaultSelectedRowIds:

import { DataTable } from '@santi020k/lumen-react'
import { useState } from 'react'

export function Invoices() {
  const [selectedRowIds, setSelectedRowIds] = useState<string[]>(['invoice-1043'])

  return (
    <DataTable
      columns={[{ key: 'invoice', label: 'Invoice' }]}
      rows={[{ id: 'invoice-1043', invoice: 'Invoice 1043' }]}
      selectable
      selectedRowIds={selectedRowIds}
      onSelectedRowIdsChange={setSelectedRowIds}
    />
  )
}

Selected IDs are strings, including stringified numeric row keys. Give records stable id or rowValue values. Use defaultSelectedRowIds for uncontrolled initial selection. For ordered multi-column sorting, use sorting or defaultSorting with multiSort; the single-criterion sort prop cannot retain secondary criteria.

In Astro, React and Elements, selected table rows expose data-state="selected", not aria-selected, because they belong to a static table rather than a grid. Update selectors and UI tests, and use the checkbox’s checked state for accessibility assertions. Astro and Elements still read an initially authored aria-selected="true", then remove it during enhancement; their ui:data-table-selection-change event remains available.

React Popconfirm

React Popconfirm is now interactive, and its trigger contract is stricter:

  • Text children become the trigger label, including interpolated text such as Delete {name}. Lumen renders them in its own button.
  • A single <button>, <a href> or component child becomes the trigger through <Button asChild>. It receives the Button classes (ui-button ui-button--default ui-button--default-size), and its content is wrapped in .ui-button__content. Pass a plain <button> or a Lumen Button and expect these classes; don’t pass a link that must keep its own styling. Custom trigger components must forward their ref and DOM event and ARIA props. Any other single element, such as a <span>, is placed inside a Lumen button.
  • Several element children, or text mixed with elements, are an error; wrap them in one element. Fragments are unwrapped first.
  • onCancel handles the Cancel button. It no longer receives a native cancel event from the root.
  • Run the confirmed operation in onConfirm. Escape, outside presses and other dismissals don’t call either callback.

React HoverCard now accepts PopoverTrigger and PopoverPanel children with controlled or uncontrolled visibility. Existing static children keep working.

React SidebarProps

SidebarProps is now a union type, so interface AppSidebarProps extends SidebarProps fails with TS2312; declare type AppSidebarProps = SidebarProps & { … } instead.

Elements hosts

  • lumen-button-link now wraps one native <a href>: the host renders no box of its own, and the link receives the button classes and data-slot="button-link".
  • lumen-back-to-top is a role="button" host in the tab order; remove any <button> nested inside it.
  • lumen-navigation-menu and lumen-sidebar set their own navigation and complementary landmark roles unless you set role, so don’t wrap them in <nav> or <aside>.

Theme toggle

React useThemeToggle and the Elements lumen-theme-toggle now share the Astro ThemeToggle contract. In Lumen 5 they saved the visitor’s choice in localStorage under theme and dispatched theme-change on window with the theme name as its detail. In Lumen 6 they:

  • read and save the choice under lumen-theme, unless you set another storage key;
  • dispatch ui:theme-change, which bubbles from the toggle to window with { previousTheme, storageKey, theme } as its detail;
  • on load, only restore a saved choice; they never write a default theme to the root.

Lumen 6 toggles ignore a choice saved under theme. To keep visitors’ saved choices, keep the old key:

const { isDark, toggleTheme } = useThemeToggle({ storageKey: 'theme' })
<lumen-theme-toggle storage-key="theme"></lumen-theme-toggle>

useThemeToggle(defaultTheme) is now useThemeToggle(options): replace useThemeToggle('dark') with useThemeToggle({ defaultTheme: 'dark' }). The options also take lightTheme, darkTheme and storageKey (Elements: light-theme, dark-theme and storage-key), and the hook returns isDark next to theme, setTheme and toggleTheme. Rename theme-change listeners to ui:theme-change and read event.detail.theme. If an inline script restores the theme before the page paints, read the same key there. The Astro ThemeToggle already used lumen-theme and ui:theme-change.

Core exports

These aliases are removed from @santi020k/lumen-core and its tokens and figma subpaths, and the color aliases from the @santi020k/lumen re-exports. lumenDarkChart was only exported from @santi020k/lumen-core/tokens. Each replacement has the same value, except exportThemeFigmaVariables, whose replacement has a different signature (see its row).

Removed Replacement
lumenColors lumenCssColorTokens.light
lumenDarkColors lumenCssColorTokens.dark
lumenChart lumenChartCssColorTokens.light
lumenDarkChart lumenChartCssColorTokens.dark
resolveLumenDateLocale resolveLumenLocale
exportThemeFigmaVariables exportLumenThemePackFigma(pack) from @santi020k/lumen-core, which takes a LumenThemePack and returns light and dark modes; for single-mode theme builder output use exportThemeBuilderValue(tokens, scheme, 'figma')

Legacy web hooks

These compatibility hooks are removed. None of them is reported by lumen doctor; MCP lumen_validate reports imports of the two removed exports.

Removed Replacement
resolveLumenGlass(value) from @santi020k/lumen-core value; the helper returned its argument unchanged
migrateLumenVersionSource from @santi020k/lumen lumen migrate v5 or migrateLumenVersion; the function never changed source
Theme builder data-ui-theme-hue data-ui-theme-brand-hue on the theme builder root or its hue input
.ui-toggle--pressed on custom markup aria-pressed="true", or data-state="on" on toolbar and rich text editor commands
React <Tour hidden={false}> <Tour defaultOpen>, or control it with open and onOpenChange; TourProps omits hidden

Icons

Lumen 6 drops the old names kept for icons that Lucide renamed. The artwork is unchanged; only the names move.

Static icon exports

These static exports are removed from @santi020k/lumen-core/icon-data and @santi020k/lumen-react/icons. removed-icon-export reports each import with its replacement.

Static icon export renames
Removed export Current export
Album SquareBookmark
ArchiveRestore ArchiveArrowUp
BadgeAlert BadgeExclamationPoint
BatteryWarning BatteryExclamationPoint
Bold LetterB
BookAlert BookExclamationPoint
BookMarked BookBookmark
Building2 BuildingComplex
CircleAlert CircleExclamationPoint
CircleArrowOutDownLeft CircleArrowDownLeftExit
CircleArrowOutDownRight CircleArrowDownRightExit
CircleArrowOutUpLeft CircleArrowUpLeftExit
CircleArrowOutUpRight CircleArrowUpRightExit
CircleParking CircleLetterP
CircleParkingOff CircleLetterPOff
ClockAlert ClockExclamationPoint
CloudAlert CloudExclamationPoint
Copyright CircleLetterC
FlipHorizontal2 CaretsToAxisDashedHorizontal
FlipVertical2 CaretsToAxisDashedVertical
FoldHorizontal ArrowsToAxisDashedVertical
FoldVertical ArrowsToAxisDashedHorizontal
Heading LetterH
MailWarning MailExclamationPoint
MessageCircleWarning MessageCircleExclamationPoint
MessageSquareWarning MessageSquareExclamationPoint
Music EighthNotes
Music2 EighthNote
Music3 HalfNote
Music4 SixteenthNotes
OctagonAlert OctagonExclamationPoint
SearchAlert SearchExclamationPoint
ShieldAlert ShieldExclamationPoint
SquareArrowOutDownLeft SquareArrowDownLeftExit
SquareArrowOutDownRight SquareArrowDownRightExit
SquareArrowOutUpLeft SquareArrowUpLeftExit
SquareArrowOutUpRight SquareArrowUpRightExit
SquareCenterlineDashedHorizontal SquareAxisDashedVertical
SquareCenterlineDashedVertical SquareAxisDashedHorizontal
SquareM SquareLetterM
SquareParking SquareLetterP
SquareParkingOff SquareLetterPOff
Trash2 Trash
TriangleAlert TriangleExclamationPoint
TrianglesCenterlineDashedHorizontal CaretsToAxisDashedHorizontal
TrianglesCenterlineDashedVertical CaretsToAxisDashedVertical
UnfoldHorizontal ArrowsFromAxisDashedVertical
UnfoldVertical ArrowsFromAxisDashedHorizontal

Icon names

Web icon names passed as strings, such as icon="…" or name="…", now resolve only canonical Lucide kebab-case names. Older Lucide alias names no longer resolve. For example, use house instead of home and circle-x instead of x-circle. The 48 renamed icons follow the same rule, so trash-2 becomes trash. Check a name against the Lucide catalog, or let removed-icon-name report it.

The native catalogs drop the same 48 names plus the brand x alias. Swift LumenIconName cases, Compose LumenIconName values, React Native icon names, and React Native static graphics (Lumen<Name>IconGraphic, using the Compose name) all move to the current name. The 49 matching @santi020k/lumen-react-native/icons/<name> subpath modules are removed too; import the current kebab-case name, such as icons/trash instead of icons/trash-2 and icons/brand-x-twitter instead of icons/brand-x. Review exhaustive Swift switch statements over LumenIconName.

Native icon name renames
Removed name Current name Swift LumenIconName Compose LumenIconName
album square-bookmark .album → .squareBookmark Album → SquareBookmark
archive-restore archive-arrow-up .archiveRestore → .archiveArrowUp ArchiveRestore → ArchiveArrowUp
badge-alert badge-exclamation-point .badgeAlert → .badgeExclamationPoint BadgeAlert → BadgeExclamationPoint
battery-warning battery-exclamation-point .batteryWarning → .batteryExclamationPoint BatteryWarning → BatteryExclamationPoint
bold letter-b .bold → .letterB Bold → LetterB
book-alert book-exclamation-point .bookAlert → .bookExclamationPoint BookAlert → BookExclamationPoint
book-marked book-bookmark .bookMarked → .bookBookmark BookMarked → BookBookmark
building-2 building-complex .building2 → .buildingComplex Building2 → BuildingComplex
circle-alert circle-exclamation-point .circleAlert → .circleExclamationPoint CircleAlert → CircleExclamationPoint
circle-arrow-out-down-left circle-arrow-down-left-exit .circleArrowOutDownLeft → .circleArrowDownLeftExit CircleArrowOutDownLeft → CircleArrowDownLeftExit
circle-arrow-out-down-right circle-arrow-down-right-exit .circleArrowOutDownRight → .circleArrowDownRightExit CircleArrowOutDownRight → CircleArrowDownRightExit
circle-arrow-out-up-left circle-arrow-up-left-exit .circleArrowOutUpLeft → .circleArrowUpLeftExit CircleArrowOutUpLeft → CircleArrowUpLeftExit
circle-arrow-out-up-right circle-arrow-up-right-exit .circleArrowOutUpRight → .circleArrowUpRightExit CircleArrowOutUpRight → CircleArrowUpRightExit
circle-parking circle-letter-p .circleParking → .circleLetterP CircleParking → CircleLetterP
circle-parking-off circle-letter-p-off .circleParkingOff → .circleLetterPOff CircleParkingOff → CircleLetterPOff
clock-alert clock-exclamation-point .clockAlert → .clockExclamationPoint ClockAlert → ClockExclamationPoint
cloud-alert cloud-exclamation-point .cloudAlert → .cloudExclamationPoint CloudAlert → CloudExclamationPoint
copyright circle-letter-c .copyright → .circleLetterC Copyright → CircleLetterC
flip-horizontal-2 carets-to-axis-dashed-horizontal .flipHorizontal2 → .caretsToAxisDashedHorizontal FlipHorizontal2 → CaretsToAxisDashedHorizontal
flip-vertical-2 carets-to-axis-dashed-vertical .flipVertical2 → .caretsToAxisDashedVertical FlipVertical2 → CaretsToAxisDashedVertical
fold-horizontal arrows-to-axis-dashed-vertical .foldHorizontal → .arrowsToAxisDashedVertical FoldHorizontal → ArrowsToAxisDashedVertical
fold-vertical arrows-to-axis-dashed-horizontal .foldVertical → .arrowsToAxisDashedHorizontal FoldVertical → ArrowsToAxisDashedHorizontal
heading letter-h .heading → .letterH Heading → LetterH
mail-warning mail-exclamation-point .mailWarning → .mailExclamationPoint MailWarning → MailExclamationPoint
message-circle-warning message-circle-exclamation-point .messageCircleWarning → .messageCircleExclamationPoint MessageCircleWarning → MessageCircleExclamationPoint
message-square-warning message-square-exclamation-point .messageSquareWarning → .messageSquareExclamationPoint MessageSquareWarning → MessageSquareExclamationPoint
music eighth-notes .music → .eighthNotes Music → EighthNotes
music-2 eighth-note .music2 → .eighthNote Music2 → EighthNote
music-3 half-note .music3 → .halfNote Music3 → HalfNote
music-4 sixteenth-notes .music4 → .sixteenthNotes Music4 → SixteenthNotes
octagon-alert octagon-exclamation-point .octagonAlert → .octagonExclamationPoint OctagonAlert → OctagonExclamationPoint
search-alert search-exclamation-point .searchAlert → .searchExclamationPoint SearchAlert → SearchExclamationPoint
shield-alert shield-exclamation-point .shieldAlert → .shieldExclamationPoint ShieldAlert → ShieldExclamationPoint
square-arrow-out-down-left square-arrow-down-left-exit .squareArrowOutDownLeft → .squareArrowDownLeftExit SquareArrowOutDownLeft → SquareArrowDownLeftExit
square-arrow-out-down-right square-arrow-down-right-exit .squareArrowOutDownRight → .squareArrowDownRightExit SquareArrowOutDownRight → SquareArrowDownRightExit
square-arrow-out-up-left square-arrow-up-left-exit .squareArrowOutUpLeft → .squareArrowUpLeftExit SquareArrowOutUpLeft → SquareArrowUpLeftExit
square-arrow-out-up-right square-arrow-up-right-exit .squareArrowOutUpRight → .squareArrowUpRightExit SquareArrowOutUpRight → SquareArrowUpRightExit
square-centerline-dashed-horizontal square-axis-dashed-vertical .squareCenterlineDashedHorizontal → .squareAxisDashedVertical SquareCenterlineDashedHorizontal → SquareAxisDashedVertical
square-centerline-dashed-vertical square-axis-dashed-horizontal .squareCenterlineDashedVertical → .squareAxisDashedHorizontal SquareCenterlineDashedVertical → SquareAxisDashedHorizontal
square-m square-letter-m .squareM → .squareLetterM SquareM → SquareLetterM
square-parking square-letter-p .squareParking → .squareLetterP SquareParking → SquareLetterP
square-parking-off square-letter-p-off .squareParkingOff → .squareLetterPOff SquareParkingOff → SquareLetterPOff
trash-2 trash .trash2 → .trash Trash2 → Trash
triangle-alert triangle-exclamation-point .triangleAlert → .triangleExclamationPoint TriangleAlert → TriangleExclamationPoint
triangles-centerline-dashed-horizontal carets-to-axis-dashed-horizontal .trianglesCenterlineDashedHorizontal → .caretsToAxisDashedHorizontal TrianglesCenterlineDashedHorizontal → CaretsToAxisDashedHorizontal
triangles-centerline-dashed-vertical carets-to-axis-dashed-vertical .trianglesCenterlineDashedVertical → .caretsToAxisDashedVertical TrianglesCenterlineDashedVertical → CaretsToAxisDashedVertical
unfold-horizontal arrows-from-axis-dashed-vertical .unfoldHorizontal → .arrowsFromAxisDashedVertical UnfoldHorizontal → ArrowsFromAxisDashedVertical
unfold-vertical arrows-from-axis-dashed-horizontal .unfoldVertical → .arrowsFromAxisDashedHorizontal UnfoldVertical → ArrowsFromAxisDashedHorizontal
brand:x brand:x-twitter .brandX → .brandXTwitter BrandX → BrandXTwitter

Compose binaries

Lumen 6 ships Compose and Wear as com.santi020k:lumen-compose:6.0.0 and com.santi020k:lumen-compose-wear:6.0.0. They skip 5.x because every Lumen package shares the umbrella major, so they move from 4.1 straight to 6.0.0. The major version covers the removed icon names. Compose 6.0.0 also removes every signature that was kept only for binary compatibility with Compose 4.1, so recompile anything built against it:

  • The hidden LumenNamedTheme, LumenTableColumn and LumenMenuItem constructor and copy overloads and the hidden LumenCascader overload without expandedLabel and collapsedLabel.
  • The forwarding overloads of LumenButton, LumenIconButton, LumenSpinner, LumenAlertDialog, LumenSheet, LumenSchedule and LumenStat. Each now has a single signature in which tone, tint, closeLabel, now or trend defaults to null.

Calls with named arguments compile unchanged. Name the argument if you pass LumenButton content, LumenSheet actions, LumenStat graphic or LumenMenuItem onClick positionally, or if you pass any of these as a trailing lambda, because new defaulted parameters now follow them: LumenSchedule formatTime, LumenCascader formatDisclosure, and onSelectionChange on LumenBarChart, LumenPieChart, LumenScatterChart and LumenComboChart. New parameters also come before the last slot of LumenAlert, LumenListRow, LumenDisclosure and LumenCarousel (content), LumenGauge (center), LumenSettingsRow (control), LumenKanbanBoard and LumenKanbanColumn (cardContent) and LumenTreeGrid (cellContent), and layout now comes before the LumenAdaptiveNavigationScaffold content slot. Trailing lambdas still compile there; name the slot when you pass it inside the parentheses.

Wear actions add loading and loadingLabel; LumenWearTheme adds a named theme option. Existing named-argument and trailing-content calls keep their defaults. Name a positional content argument and recompile Wear binaries against 6.0.0. A loading action prevents repeat activation; the application still owns work completion and the loading state.

SwiftUI initializers

SwiftUI initializers and modifiers that differed only by one omitted parameter are now a single declaration with that parameter defaulted: LumenEmptyState, LumenStat, LumenSlider, LumenTextarea, LumenSearchField, LumenSpinner, LumenCard, LumenButton, LumenIconButton, .lumenTheme and .lumenAlertDialog. The defaults are unchanged, so ordinary calls compile and render as before. Only an unapplied reference to a removed overload, such as LumenSpinner.init(_:) or lumenTheme(_:enforceColorScheme:), needs a change: wrap it in a closure such as { LumenSpinner($0) }, or annotate the full selector’s function type, because LumenSpinner.init(_:tint:) alone matches both its LocalizedStringKey and LumenTextContent overloads.

Other SwiftUI initializers gain defaulted parameters, such as the button tone, badge variant, divider orientation, chart heading and description, and toast dismissLabel. Ordinary calls compile unchanged; unapplied references need the same treatment. The contract’s swiftApiBreakages lists record every changed declaration against 5.4.0.

The new custom-label LumenDateField overload requires accessibilityLabel: LumenTextContent, which names the native picker directly rather than relying on an arbitrary label view’s text. Use .localized(...) for catalog-backed names or .verbatim(...) for application-resolved names, and match the visible label. Existing title-based initializers remain unchanged.

LumenDateField(selection: $releaseDate, accessibilityLabel: .verbatim("Publish on")) {
    LumenText(.verbatim("Publish on"), variant: .label)
}

LumenWatchActionButton adds defaulted loading and loadingAccessibilityValue parameters, and LumenWidgetCompactStat adds defaulted detail. Existing calls keep their defaults. Unapplied initializer references must use the new complete selectors or a closure. The Watch action also accepts LumenTextContent for runtime names. WidgetKit’s new LumenWidgetProgress is opt-in and does not change host timeline, privacy, or background-update policy.

Retired Field, Clay and KinJar themes and the Studio preset

Lumen 6 removes the Field named theme and the color-only Lumen 5 Studio preset. Clay and KinJar appeared only in unreleased v6 previews, so their entries below matter only for code written against a preview. Generate a palette with createLumenPalette from @santi020k/lumen-core instead, load the CSS from exportLumenPaletteCss after the Lumen stylesheet, and apply it with data-lumen-palette on top of a style preset. lumenPaletteStarters provides field, clay, kinjar and studio starting points based on the retired themes. They preserve the hues and character, but do not reproduce identical token values. See custom palettes.

import { createLumenPalette, exportLumenPaletteCss, lumenPaletteStarters } from '@santi020k/lumen-core'

const fieldCss = exportLumenPaletteCss('field', createLumenPalette(lumenPaletteStarters.field.seeds))
- <html data-theme="lumen-light" data-lumen-preset="field">
+ <html data-theme="lumen-light" data-lumen-palette="field">

Studio returns in Lumen 6 as a full product theme, with the same data-lumen-preset="studio" value and styles/themes/studio.css path. It’s a dense, quiet style for pro tools: pure grays with ink actions, one blue for links, selection, focus and the first chart series, 4/6/8px radii, flat bordered surfaces, Inter, and 32px controls with 13px control text on fine pointers. Touch screens keep 44px targets and 16px field text. Switch to it and review screens that used the Lumen 5 preset, since it changes shape, density and type as well as color. For a look closer to Lumen 5, apply the studio starter palette with ThemeBuilder’s elevation: 'flat' and radiusScale: 0.6 instead.

Removed Replacement
styles/themes/field.css, styles/themes/clay.css, and the field and clay values of data-lumen-preset Keep the default style and apply the corresponding lumenPaletteStarters palette
styles/themes/kinjar.css and data-lumen-preset="kinjar" Apply the kinjar starter palette over data-lumen-preset="luminous"
styles/themes/studio.css and data-lumen-preset="studio" from the Lumen 5 color-only preset Now apply the Studio product theme. Review its density, Inter and 4/6/8px radii, or use the studio starter palette with flat elevation and a 0.6 radius scale
createThemePreset('studio') and ThemeBuilder’s Studio option Use the Studio product theme, or the studio starter palette with ThemeBuilder’s elevation: 'flat' and radiusScale: 0.6
React Native themes/field, themes/clay, themes/kinjar; SwiftUI LumenNamedTheme.field, .clay, .kinjar; Compose LumenNamedThemes.Field, .Clay, .Kinjar Wrap the corresponding palette with lumenPaletteToThemePack and pass it to exportLumenThemePackNative
React Native preset="studio", SwiftUI LumenThemePreset.studio and Compose LumenThemePreset.Studio Use the Studio named theme (studioTheme from themes/studio, LumenNamedTheme.studio, LumenNamedThemes.Studio), or export the studio starter palette the same way
SwiftUI LumenPresetColors.studioLight and .studioDark; Compose LumenPresetColors.StudioLight and StudioDark Apply the Studio named theme (.lumenThemeScope(.studio), LumenNamedThemes.Studio), or export the studio starter palette with exportLumenThemePackNative, which writes light and dark LumenColorPalette values
@santi020k/lumen-tokens readingThemes.field and themePresets.studio Read a generated palette, or readingThemes.studio for the Studio product theme

Palettes change semantic colors, leaving typography, shape, elevation and chart tokens to the chosen style. Review those properties when replacing a retired theme. Santi020k Mono remains available as santi020k-mono-light and santi020k-mono-dark; it does not require this migration.

Retired tooling

Removed Replacement
lumen migrate v4, its programmatic v4 exports (LumenMigrationVersion is now 'v5') and the .lumen/migrations-v4.json ledger Run npx @santi020k/lumen@5 migrate v4 before upgrading a Lumen 3.x project. lumen migrate v5 stays
lumen migrate v2, lumen migrate v3, migrateLumenV2*, formatLumenV2Migration and LumenV2* exports Run npx @santi020k/lumen@5 migrate v2, then v3, v4 and v5, before upgrading Lumen 1.x or 2.x
Doctor ids deprecated-surface-glass, deprecated-datatable-event and removed-root-export None. These Lumen 1.x and 2.x checks are gone; remove them from doctor configuration and CI allowlists
MCP lumen_get_migration with targetVersion: "4.0.0" Request "5.0.0" or "6.0.0". The default is "6.0.0"
The flat components list from MCP lumen_list_components and the flat list from lumen_list_native_components Read categories[].names, or pass detail: "descriptions" and read categories[].components
migration.deprecatedExports in the release manifest None; it was always empty. Read migration.removedExports

The Lumen 6 CLI doesn’t read .lumen/migrations-v4.json. Keep the file while you still run the Lumen 5 CLI’s v4 migration for that project.

MCP server

@santi020k/lumen-mcp 6.0.0 changes what agents and scripts get by default:

  • lumen_list_components and lumen_list_native_components return names grouped by category in categories[].names. A query or detail: "descriptions" returns categories[].components with one-line descriptions. Collections and recipe membership moved to lumen_get_component.
  • The stdio server registers only the tools the project in its working directory uses, detected from its manifests, and defaults framework or platform to that project. lumen_get_migration stays while an installed Lumen package is older than 6. Pass --target all or set LUMEN_MCP_TARGET=all to keep every tool, or name targets such as --target react,swiftui. Hosted servers read the same choice from ?target=.
  • Programmatic callers pass getTokens({ theme }, data) instead of getTokens(data). The loadLumenData().migration field, the retired 4.0.0 contract, is gone; read .migrationV5 or the new .migrationV6.

4. Review the new default appearance

Applications that use the default Lumen tokens adopt the new design on upgrade; no preset or new import is needed. The default foundation now uses:

  • cool near-white surfaces in light mode and graphite surfaces in dark mode;
  • flat ink fills for primary actions, with violet for links, focus, selection and chart emphasis;
  • Inter, self-hosted from the shared font catalog on the web and bundled for native adapters;
  • the same 6px, 10px and 12px corner scale as Lumen 5, with flatter default cards and opaque tonal grouping for muted cards.
  • TagGroup tags use 6px rounded rectangles instead of pills; Badge keeps its pill shape, and named themes retain their own radius scales. Review layouts that matched the earlier tag shape.

Token names do not change, and custom theme overrides remain authoritative. Named themes such as Classic, Paper, Luminous, Voltage, Signal, Studio, santi020k and Santi020k Mono keep their own palettes. Field is removed, and Studio is now a denser product theme; see retired themes.

Review these areas before accepting new visual baselines:

  1. Product colors placed beside Lumen surfaces, such as logos, illustrations and charts.
  2. Custom --brand or --ui-font overrides that assumed the Lumen 5 values. Every component root except ChartMotion and SplitText, including Container, Stack, Grid and Form, now sets font-family: var(--ui-font); if your app sets its font only on body, set --ui-font too, or text inside these wrappers switches to the theme’s --ui-font (Inter by default).
  3. Success and danger buttons inside nested custom themes; check the actual foreground/background contrast in both schemes.
  4. Default web fields now match buttons at 40px, growing to 44px on coarse pointers and viewports up to 40rem. Set data-ui-density="comfortable" if you need 44px fields on desktop too. Fields use 16px text on phones to avoid focus zoom. Review fixed-height layouts and custom field wrappers.
  5. React Native: register Inter with the host if you want it. Without registration, text uses the system font. Android keeps its system fallback unless static Inter weights are registered.
  6. A web Button that renders a native <button> no longer carries ui-button--disabled. Its disabled look comes from :disabled, so setting button.disabled in a script restyles it. Custom CSS, tests and scripts that target the class on a native button should match :disabled instead. React Button asChild and <lumen-button> keep the class. A loading Button keeps keyboard focus: it sets aria-busy and aria-disabled="true" instead of disabled. React blocks activation itself; Astro blocks it, including form submission, only where <UIPrimitives /> is mounted. Update tests and CSS that expect :disabled on loading buttons, and pass disabled as well if you need the native state.
  7. Tree branches with aria-expanded="false" now hide their role="group". The Astro runtime toggles branches on click and from the keyboard; React, Elements and Dioxus markup must update aria-expanded from your own handlers, or the children stay hidden.
  8. The Transfer empty state is real text instead of a stylesheet No items. Authored lumen-transfer markup needs a <p class="ui-transfer__empty" data-ui-transfer-empty="source"> after the source list, and one with "target" after the target list, to show a message.
  9. Calendar and Cascader chevrons, the DatePicker and FileUpload icons, HeadingAnchor states, PageNav arrows, WorldMap zoom buttons and ReorderableList controls render catalog icons instead of text glyphs or hand-drawn paths. Their accessible names are unchanged; update UI tests and snapshots that matched ‹, ›, + or − text or the old SVG paths. Selective stylesheets for these components now include the Icon part.
  10. Grid and Stack rendered as ul or ol drop the browser bullets, indent and margins. Add role="list" so Safari keeps announcing the list.

Chart tones and stat values

The default categorical series now run indigo, green, gold, teal, rose, purple, orange and slate, where Lumen 5 ran deep teal, green, purple, orange, rose, teal, gold and slate. The first series changes from deep teal to indigo, so single-series charts change color too. The default light/dark and santi020k mono charts use the new order; Classic retains its Lumen 5 palette. If a color conveys a fixed meaning in your product, review hardcoded series indices:

Previous tone v6 tone for the same color
series-3 (purple) series-6
series-4 (orange) series-7
series-6 (teal) series-4
series-7 (gold) series-3

WaterfallChart decreases now default to series-5 (rose); an explicit step tone still wins. Stat variant="accent" no longer recolors its value. Add tone="brand" when the value should carry brand emphasis. Compare chart legends and summaries with your product’s existing meanings, including custom theme overrides.

Comparison, bullet, and box plots now use the shared readable tick engine. Automatic bounds round outward (for example, 0–83 becomes 0–100); observations and explicit domain bounds are unchanged. Web tick labels are positioned numerically, including when explicit bounds are not themselves ticks.

BarChart now defaults to a 640×240 frame, matching LineChart. To keep its earlier 480×240 proportions, set width={480} in Astro/React, width="480" in Elements, or width: 480.0 in Dioxus. RangeChart and ComboChart accept explicit width and height while retaining their 640×320 defaults. See chart sizing when composing paired charts or updating visual baselines.

Tables

Table and DataTable behave differently in ways your pages and tests may notice:

  • layout="records" stacks rows into cards when the table itself is narrower than 48rem, not the viewport, so a table in a sidebar or split view stacks on a wide screen too.
  • Records and condensed wrappers set container-type: inline-size, so their width no longer comes from the table’s content. Inside a shrink-to-fit parent, such as an inline-block, a float or a max-content grid column, the table can collapse; give the parent or the wrapper a definite width.
  • In React, a sortable header now cycles ascending, descending, then back to the original order, as Astro and Elements already did; the third activation calls onSortChange(null) and onSortingChange([]). With multiSort, the primary column keeps toggling between ascending and descending.
  • Tables that a React DataTableView renders default to stickyHeader, so a DataTable there scrolls inside a 36rem frame (--ui-table-max-height) with its header pinned; pass stickyHeader={false} to opt out. That DataTable renders no empty row, because the view’s status reports empty results; pass empty to show one anyway.
  • A sticky-header wrapper is a focusable region named “Table”. Name it with aria-label or aria-labelledby, and update tests that count regions or tab stops.
  • Every DataTable renders a visually hidden role="status" element before its table, empty until loading fills it, and a DataTableView adds statuses of its own. Scope getByRole('status') and similar queries to the element you mean. With scroll-cue, <lumen-table> keeps data-slot="table" on its generated viewport only, so update selectors that match the host.
  • With columns and no rows, every DataTable outside a DataTableView renders one “No records” row, or placeholder rows while loading. Change it with empty (React and Dioxus), the empty slot or emptyLabel (Astro) or empty-label (Elements); empty={null} in React renders no row.
  • An avatar inside a table defaults to 2rem, including an explicit size="md". Use size="lg" or set --ui-avatar-size on the avatar to keep it larger.

Toast viewport

ToastViewport in Astro, React and Elements, and the viewport React ToastProvider renders, is now a region named “Notifications”. The viewport itself is no longer a live region (aria-live="off" instead of "polite"); each toast announces itself. Update tests that count regions or find the viewport by its aria-live value.

Native components

React Native, SwiftUI and Compose now follow the same v6 component language as the web in the default theme. Named themes with their own elevation keep it.

  • Cards, neutral alerts, primary buttons and fields rest on the token shadow; toasts, menus, dialogs and sheets use the larger one. Alert, toast, banner, badge and stat tones are opaque.
  • Fields show a brand focus edge with a halo, a danger-mixed border when invalid, and a solid muted fill when read-only or disabled. Disabled buttons turn neutral instead of fading, and large controls are 48 points/dp.
  • Tabs use the segmented track, steppers and timelines use web markers, breadcrumbs use chevron separators, and tables render in one frame with hairline rows. LumenTableColumn adds an optional end alignment for numbers.
  • Tree, tree-select, cascader and command rows are quiet rows with chevrons instead of filled buttons. Words that only described state, such as a tree level or a step state, are announced rather than printed; update UI tests that matched that visible text.
  • Cascader opens its panel from a select-style trigger and closes it after a leaf is chosen.
  • Picker, autocomplete, multi-select and mentions use the web option list with a selected check; the one-time code draws grouped cells over one native input; ratings use solid stars.
  • LumenStat now defaults to the neutral tone, so a stat without a tone reads in ink beside a brand icon, as on the web. Pass the brand tone to keep a brand-colored value.
  • Button intents add an outline case: SwiftUI LumenButtonIntent.outline, Compose LumenButtonIntent.Outline and React Native 'outline'. A Swift switch or Kotlin when that lists every intent stops compiling, and so does a TypeScript never exhaustiveness check; handle the new case or add a default branch.
  • Segmented controls size to their segments on React Native and Compose, as on SwiftUI and the web. For a full-width track with equal segments, pass Modifier.fillMaxWidth() on Compose or alignSelf: 'stretch' (or a width) on React Native.
  • React Native LumenAgenda and LumenSchedule label days with localized dates instead of ISO keys such as 2026-12-05, in headings and accessible event labels. Pass formatDay={lumenCalendarDayKey} to keep the old strings, and update UI tests that matched them.
  • Compose text fields place their label above the field instead of Material’s floating label.
  • Sheets, dialogs, menus, tooltips, the navigation bar, section headers, skeletons, agenda, schedule and kanban follow the web chrome; overlays share one scrim. Kanban move controls are icon buttons with the same accessible labels.
  • Component chrome uses the shared icon catalog instead of text glyphs or platform symbols. SwiftUI checkboxes and radios draw the web marks, search, toast and banner dismiss use the catalog x, and banner and status-bar tones default to info, circle-check, triangle-exclamation-point and octagon-x on every adapter (the SwiftUI accent banner no longer shows sparkles). Number fields step with minus and plus icon buttons, and date and time triggers use the field look with a trailing calendar or clock. Accessible labels are unchanged; update UI tests that matched ▾, ✓ or visible +/− text.

Native applications can opt into localized Stat trends, labeled sheet close buttons, framed settings groups, schedule current-time markers, and Kanban card metadata. React Native menus can add separators. React Native and Compose confirmation dialogs can show a labeled close button; SwiftUI system alerts retain their native cancel action. These additions are optional. Hosts retain ownership of clock updates, localization, dismissal, and card movement; the visible Kanban move controls remain. Defaulted native parameters preserve ordinary source calls. Rebuild Swift and Compose consumers against the new package: generated initializer and Kotlin data-class JVM signatures have changed.

Keep the Lumen 5 look with Classic

Lumen Classic is the Lumen 5 default, shipped as an opt-in named theme: warm paper neutrals, a deep teal brand, Montserrat and 10px radii. Adopt it when you want the new components and fixes without an appearance change. See the Lumen Classic guide for details.

---
import '@santi020k/lumen-astro/styles/themes/classic.css'
---

<html data-theme="lumen-light" data-lumen-preset="classic">
Platform Use Classic
Astro, React, Elements Import styles/themes/classic.css from your adapter and set data-lumen-preset="classic" on the root or a section
React Native import { classicTheme } from '@santi020k/lumen-react-native/themes/classic', then <LumenProvider definition={classicTheme}>
SwiftUI .lumenThemeScope(.classic)
Compose LumenThemeScope(theme = LumenNamedThemes.Classic)

The full styles.css already includes Classic, so only the preset attribute is needed there.

5. Adopt new capabilities when ready

None of these is required for the upgrade. Browse the component catalog for framework-specific examples:

  • Button tone="danger" or tone="success" sets semantic color independently of prominence, for example variant="ghost" tone="danger" for a quiet destructive action.
  • Dialog layout="responsive" stays centered on wide screens and becomes a bottom drawer at 40rem and below.
  • New content and interaction primitives include SecretValue, CharacterCount, Timer, ReorderableList, SelectionBar and SwipeCard. Page, section and site chrome components reduce repeated layout work; AI message primitives keep provider calls and persistence in your app.
  • The motion playground covers SplitText, scroll reveals, route transitions, parallax and motion groups. The new entrance and scene durations apply to editorial entrances; interaction components retain their shorter timings.
  • Luminous, Voltage, Signal and Studio are optional product themes on web and native. Studio is a dense, quiet style for pro tools that replaces the color-only Lumen 5 Studio preset. Portable theme packs export paired light/dark palettes for web, native adapters and Figma.
  • createLumenPalette generates light and dark semantic colors from a brand seed for any style preset; see custom palettes.
  • lumen create and the Create page generate new projects; use --dry-run and a new destination. Existing applications don’t need to regenerate source.
  • Product workbenches add editable records, conversations and collection movement through installable source. Updated product recipes use the v6 foundation. Existing installed recipes remain yours; review and merge changes instead of overwriting local work. Their old lumen-template--product, __metric(s), __eyebrow, __table and __focus-progress CSS hooks are no longer included in the refreshed template stylesheet.
  • Native apps can pass shared catalog icon names where they previously needed platform symbols: SwiftUI icon: initializers on empty states, banners, stats, gauges, status bars, settings rows, navigation items and menu items plus Image(lumenIcon:); Compose lumenNavigationItem, LumenMenuItem(leadingIconName = …), a LumenFloatingActionButton(name = …) overload and lumenIconPainter; React Native iconName and selectedIconName on navigation items.
  • React Native adds LumenScreen, LumenAdaptiveModal and LumenEntrance. The adaptive modal switches at 768 points; it has a different platform contract from the web responsive Dialog.
  • The Dioxus adapter covers the web catalog with Rust components and ships as lumen-dioxus 6.0.0, sharing the Lumen major. Early experimental consumers of the checkbox/switch props must rename ToggleProps to CheckboxProps; ToggleProps now belongs to the actual Toggle component. Replace CardVariant::Glass with the Card glass prop. Extensible enums such as ButtonVariant, CardVariant and LumenPreset are now #[non_exhaustive], so matches need a wildcard arm. Use Rust 1.88 or later and review the crate changelog and renderer limitations before choosing Dioxus Native.
  • The lumen-gpui-theme, lumen-gpui and lumen-gpui-ce crates bring Lumen presets, palettes, icons and AI workbench widgets to GPUI applications; see the lumen-gpui-theme README.

6. Verify

  • Run your type checks, tests and build with the new versions.
  • Compare key screens in light and dark at phone and desktop widths, with and without Classic.
  • Check keyboard focus, enlarged text and reduced motion on custom compositions.
  • For native apps, rebuild with the new Swift package or Maven artifact and check one screen per theme.
  • Run lumen doctor --json again and confirm none of the findings above remain.
  • Check that icons render in every route, including names that come from data or configuration.
  • Check that React Popconfirm triggers open, confirm, cancel and restore focus with the keyboard.
  • Submit and reset forms containing React Select, including an unselected required control.
  • Exercise React DataTable selection, callbacks and sorting, and update tests that read row aria-selected. Confirm chart series and stat tones still communicate the intended meaning.
  • Choose a theme with each React or Elements theme toggle, reload, and confirm the choice returns, including one saved before the upgrade. Check that ui:theme-change listeners still run.
  • Remove lumen migrate v2, v3 and v4 calls and MCP migration target 4.0.0 from scripts, CI and agent prompts.
  • Update agent prompts and scripts that read the flat MCP component lists or migration.deprecatedExports, and confirm the MCP tools they call are registered for your project, or pass --target all.

Roll back

Pin the previously working Lumen 5 versions and revert the source replacements in one change. Lumen 6 does not migrate application data, so rolling back affects code and appearance, plus one stored value: unless you kept the theme storage key, theme choices made on Lumen 6 are saved under lumen-theme, which Lumen 5 React and Elements toggles don’t read.

All documentationWeb and native guides