Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(theme-neutral): restore --radius-none to the fixed 0px contract (#4856)

Ojas Mutreja493160e15f67
diff --git a/.changeset/theme-neutral-radius-none-fix.md b/.changeset/theme-neutral-radius-none-fix.md
new file mode 100644
index 0000000000..30353c8ec1
--- /dev/null
+++ b/.changeset/theme-neutral-radius-none-fix.md
@@ -0,0 +1,7 @@
+---
+'@astryxdesign/theme-neutral': patch
+---
+
+[fix] `--radius-none` no longer overrides to `0.25rem`. `--radius-none` and `--radius-full` are documented as always fixed (never scaled by a theme), matching `@astryxdesign/core`'s own defaults — this theme's radius group bump swept `--radius-none` along with it by mistake. Anything opting out of rounding via `--radius-none` under this theme now renders with a true `0px` radius again, instead of a silent 4px.
+
+@HelloOjasMutreja
diff --git a/packages/cli/assets/templates/themes/neutral/neutralTheme.ts b/packages/cli/assets/templates/themes/neutral/neutralTheme.ts
index ace0fd91ec..5b562372e7 100644
--- a/packages/cli/assets/templates/themes/neutral/neutralTheme.ts
+++ b/packages/cli/assets/templates/themes/neutral/neutralTheme.ts
@@ -323,8 +323,11 @@ export const neutralTheme = defineTheme({
// =========================================================================
// Radius — slightly larger than default (kept as-is)
+ // --radius-none and --radius-full are always fixed and must never be
+ // scaled by a theme (see defineTheme's radius config docs) — 0 and
+ // 9999px respectively, matching @astryxdesign/core's own defaults.
// =========================================================================
- '--radius-none': '0.25rem',
+ '--radius-none': '0px',
'--radius-inner': '0.375rem',
'--radius-element': '0.625rem',
'--radius-container': '0.75rem',
diff --git a/packages/themes/neutral/src/neutralTheme.ts b/packages/themes/neutral/src/neutralTheme.ts
index ace0fd91ec..5b562372e7 100644
--- a/packages/themes/neutral/src/neutralTheme.ts
+++ b/packages/themes/neutral/src/neutralTheme.ts
@@ -323,8 +323,11 @@ export const neutralTheme = defineTheme({
// =========================================================================
// Radius — slightly larger than default (kept as-is)
+ // --radius-none and --radius-full are always fixed and must never be
+ // scaled by a theme (see defineTheme's radius config docs) — 0 and
+ // 9999px respectively, matching @astryxdesign/core's own defaults.
// =========================================================================
- '--radius-none': '0.25rem',
+ '--radius-none': '0px',
'--radius-inner': '0.375rem',
'--radius-element': '0.625rem',
'--radius-container': '0.75rem',