# @codeatlasdev/ui 0.4.0: @codeatlasdev/ui 0.4.0 Page: https://ui.codeatlas.com.br/changelog/0.4.0/. Index: https://ui.codeatlas.com.br/llms/changelog.txt. 0 changesets. 0 changes. This release has no written post; the list below is generated from the changelog. ## In short ## Upgrade ```bash bun add @codeatlasdev/ui@0.4.0 ``` Across majors: `bunx @codeatlasdev/ui migrate --from --to `, or the MCP tool `get_migration`. ## Changesets ### Minor Changes - Brand themes and brand slot. - `caThemeHandle(options)` and `caThemePlugin(options)` accept `ThemeOptions`: `defaultPreset`, `defaultScheme` and `presets`, brand presets generated from one hex color and inlined in ``. Before this, the init script always fell back to `amber`/`dark` and overrode `data-preset` set in `app.html`. - `colorScheme` starts from the configured defaults instead of hardcoded `amber`/`dark`. - `PresetId` accepts custom ids; `BuiltinPresetId` lists the eight shipped presets. - Charts use the brand hex as the first series color for brand presets (they fell back to amber). - `hexToOklch` and `brandPresetCSS`/`themeHead`/`themeScript` exported for custom setups. - `tokensToCSS` dark block now includes the neutral outline/glass/scrim tokens, so generated presets no longer inherit light-mode outlines in dark mode. - `AuthLayout` panel mixes brand with neutrals in OKLab: in OKLCH the hue swung toward 0° (blue brands rendered purple). - `AuthLayout` brand panel now hides below 768px (the override lost to the scoped rule); `AuthCard` footer links use the brand color. - `ThemeToggle`: light/dark button for the AppShell rail, SSR-safe icon. - `brand` snippet for the logo in `AppShellLayout` (top of the Rail and mobile header; `MobileHeader` gains `leading`) and in `AuthLayout`. Both default to the previous "CA" text mark.