Skip to content

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

TypeScript

chore: remove daily, brutalist, and default themes (migrate default→neutral) (#3059)

Cindy Zhang303b5d59b656
diff --git a/.changeset/config.json b/.changeset/config.json
index 213f674a1f..061f022d2c 100644
--- a/.changeset/config.json
+++ b/.changeset/config.json
@@ -9,8 +9,6 @@
"@astryxdesign/core",
"@astryxdesign/theme-butter",
"@astryxdesign/theme-chocolate",
- "@astryxdesign/theme-daily",
- "@astryxdesign/theme-default",
"@astryxdesign/theme-gothic",
"@astryxdesign/theme-matcha",
"@astryxdesign/theme-neutral",
diff --git a/.changeset/remove-daily-brutalist-default-themes.md b/.changeset/remove-daily-brutalist-default-themes.md
new file mode 100644
index 0000000000..d174abb4ff
--- /dev/null
+++ b/.changeset/remove-daily-brutalist-default-themes.md
@@ -0,0 +1,35 @@
+---
+'@astryxdesign/core': patch
+'@astryxdesign/cli': patch
+'@astryxdesign/build': patch
+---
+
+[breaking] Remove the daily, brutalist, and default themes; neutral is the new baseline
+@cixzhang
+
+Three theme packages are removed from the repo and will no longer be published:
+
+- `@astryxdesign/theme-daily`
+- `@astryxdesign/theme-brutalist`
+- `@astryxdesign/theme-default`
+
+Consumers importing any of these must switch to a maintained theme. The
+recommended replacement is `@astryxdesign/theme-neutral`:
+
+```
+- import {defaultTheme} from '@astryxdesign/theme-default/built';
++ import {neutralTheme} from '@astryxdesign/theme-neutral/built';
+
+- <Theme theme={defaultTheme}>...</Theme>
++ <Theme theme={neutralTheme}>...</Theme>
+```
+
+All in-repo references (example apps, docs, CLI scaffolding/doctor, build
+transpile list, Storybook stories, sandbox, and docsite registries) now point
+at `@astryxdesign/theme-neutral`. The CLI `init` flow and example apps default
+to neutral.
+
+Note: the last published versions of these three packages remain available on
+npm (`@astryxdesign/theme-default`, and the `0.0.0-bootstrap.0` builds of
+`theme-daily` / `theme-brutalist`); they are now orphaned and will receive no
+further updates. They can be deprecated on npm separately if desired.
diff --git a/.changeset/rename-scope-to-astryxdesign.md b/.changeset/rename-scope-to-astryxdesign.md
index 441339063f..133c1f9bc5 100644
--- a/.changeset/rename-scope-to-astryxdesign.md
+++ b/.changeset/rename-scope-to-astryxdesign.md
@@ -2,7 +2,6 @@
'@astryxdesign/build': patch
'@astryxdesign/cli': patch
'@astryxdesign/core': patch
-'@astryxdesign/theme-default': patch
---
[chore] Rename the npm package scope from `@xds/*` to `@astryxdesign/*`
diff --git a/.claude/commands/create-theme.md b/.claude/commands/create-theme.md
index 5b2849c5a7..c6dca81130 100644
--- a/.claude/commands/create-theme.md
+++ b/.claude/commands/create-theme.md
@@ -153,11 +153,11 @@ Use `extends` to derive from another theme — inherits tokens, components, icon
```tsx
import {defineTheme} from '@astryxdesign/core/theme';
-import {defaultTheme} from '@astryxdesign/theme-default';
+import {neutralTheme} from '@astryxdesign/theme-neutral';
export const brandTheme = defineTheme({
name: 'brand',
- extends: defaultTheme,
+ extends: neutralTheme,
icons: myIcons, // swap icons
tokens: {
'--color-accent': ['#7B61FF', '#9B85FF'], // override accent
@@ -171,9 +171,9 @@ Child values win. Tokens and components are deep-merged; scale configs (typograp
See existing themes for examples:
-- `packages/themes/default/src/defaultTheme.ts` — Complete reference theme
-- `packages/themes/neutral/src/neutralTheme.ts` — Grayscale theme with Geist font
-- `packages/themes/brutalist/src/index.ts` — Minimal showcase theme
+- `packages/themes/neutral/src/neutralTheme.ts` — Grayscale reference theme with Geist font
+- `packages/themes/stone/src/stoneTheme.ts` — Warm neutral theme with component overrides
+- `packages/themes/y2k/src/y2kTheme.ts` — Showcase theme with bold component overrides
## After Creation
diff --git a/README.md b/README.md
index 03ce572aee..6018b9cd37 100644
--- a/README.md
+++ b/README.md
@@ -27,15 +27,15 @@ Quick install:
```bash
# pnpm
-pnpm add @astryxdesign/core @astryxdesign/theme-default
+pnpm add @astryxdesign/core @astryxdesign/theme-neutral
pnpm add -D @astryxdesign/cli
# npm
-npm install @astryxdesign/core @astryxdesign/theme-default
+npm install @astryxdesign/core @astryxdesign/theme-neutral
npm install -D @astryxdesign/cli
# yarn
-yarn add @astryxdesign/core @astryxdesign/theme-default
+yarn add @astryxdesign/core @astryxdesign/theme-neutral
yarn add -D @astryxdesign/cli
```
diff --git a/apps/docsite/package.json b/apps/docsite/package.json
index 50ca1aed5d..e097336f49 100644
--- a/apps/docsite/package.json
+++ b/apps/docsite/package.json
@@ -21,7 +21,6 @@
"@astryxdesign/cli": "*",
"@astryxdesign/core": "*",
"@astryxdesign/theme-butter": "*",
- "@astryxdesign/theme-default": "*",
"@astryxdesign/theme-gothic": "*",
"@astryxdesign/theme-matcha": "*",
"@astryxdesign/theme-neutral": "*",
diff --git a/apps/docsite/scripts/generate-scope.mjs b/apps/docsite/scripts/generate-scope.mjs
index 5b711faf45..59bbd45586 100644
--- a/apps/docsite/scripts/generate-scope.mjs
+++ b/apps/docsite/scripts/generate-scope.mjs
@@ -40,7 +40,6 @@ const components = exportKeys
// Themes — add new themes here as they become available
const SCOPE_THEMES = [
- {pkg: '@astryxdesign/theme-default', name: 'defaultTheme', subpath: '/built'},
{pkg: '@astryxdesign/theme-neutral', name: 'neutralTheme', subpath: '/built'},
{pkg: '@astryxdesign/theme-matcha', name: 'matchaTheme', subpath: '/built'},
];
diff --git a/apps/docsite/src/__tests__/data-extraction.test.ts b/apps/docsite/src/__tests__/data-extraction.test.ts
index 50eec46cf0..dde0b3b491 100644
--- a/apps/docsite/src/__tests__/data-extraction.test.ts
+++ b/apps/docsite/src/__tests__/data-extraction.test.ts
@@ -96,10 +96,10 @@ describe('packageRegistry', () => {
const names = packages.map(p => p.name);
expect(names).toContain('@astryxdesign/core');
expect(names).toContain('@astryxdesign/cli');
- expect(names).toContain('@astryxdesign/theme-default');
expect(names).toContain('@astryxdesign/theme-neutral');
expect(names).toContain('@astryxdesign/theme-gothic');
expect(names).toContain('@astryxdesign/theme-stone');
+ expect(names).not.toContain('@astryxdesign/theme-default');
expect(names).not.toContain('@astryxdesign/theme-brutalist');
expect(names).not.toContain('@astryxdesign/theme-chocolate');
expect(names).not.toContain('@astryxdesign/theme-daily');
diff --git a/apps/docsite/src/__tests__/playground-scope.test.ts b/apps/docsite/src/__tests__/playground-scope.test.ts
index 8bd54119a6..a22e81a722 100644
--- a/apps/docsite/src/__tests__/playground-scope.test.ts
+++ b/apps/docsite/src/__tests__/playground-scope.test.ts
@@ -115,8 +115,6 @@ describe('playground-scope', () => {
});
it('includes all theme entries (bare and /built subpath)', () => {
- expect(scopeContent).toContain("'@astryxdesign/theme-default':");
- expect(scopeContent).toContain("'@astryxdesign/theme-default/built':");
expect(scopeContent).toContain("'@astryxdesign/theme-neutral':");
expect(scopeContent).toContain("'@astryxdesign/theme-neutral/built':");
expect(scopeContent).toContain("'@astryxdesign/theme-matcha':");
diff --git a/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx b/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx
index 438247998b..5ca95e150c 100644
--- a/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx
+++ b/apps/docsite/src/app/(site)/_landing/ThemingShowcase.tsx
@@ -34,7 +34,7 @@ const THEME_ORDER: ReadonlyArray<string> = [
];
const themePackages = packages
- .filter(p => p.name.includes('theme-') && p.name !== '@astryxdesign/theme-default')
+ .filter(p => p.name.includes('theme-'))
.sort((a, b) => {
const ai = THEME_ORDER.indexOf(a.name);
const bi = THEME_ORDER.indexOf(b.name);
diff --git a/apps/docsite/src/app/playground/previewThemes.ts b/apps/docsite/src/app/playground/previewThemes.ts
index b5f36e2127..39adba9687 100644
--- a/apps/docsite/src/app/playground/previewThemes.ts
+++ b/apps/docsite/src/app/playground/previewThemes.ts
@@ -28,7 +28,7 @@ const displayNameByPackage = new Map(
packages.map(p => [p.name, p.displayName]),
);
-/** "@astryxdesign/theme-default" → "default" */
+/** "@astryxdesign/theme-neutral" → "neutral" */
function toShortName(packageName: string): string {
return packageName.replace(/^@astryxdesign\/theme-/, '');
}
diff --git a/apps/docsite/src/components/ThemePackagePage.tsx b/apps/docsite/src/components/ThemePackagePage.tsx
index b0b41bf246..1538170bdf 100644
--- a/apps/docsite/src/components/ThemePackagePage.tsx
+++ b/apps/docsite/src/components/ThemePackagePage.tsx
@@ -612,7 +612,7 @@ export function ThemePackagePage({packageName, theme}: ThemePackagePageProps) {
return packages
.filter(
p =>
- p.name.startsWith('@astryxdesign/theme-') && p.name !== '@astryxdesign/theme-default',
+ p.name.startsWith('@astryxdesign/theme-'),
)
.sort((a, b) => {
const ai = THEME_ORDER.indexOf(a.name);
diff --git a/apps/example-nextjs-source/README.md b/apps/example-nextjs-source/README.md
index 00dd6622a5..6545a3df19 100644
--- a/apps/example-nextjs-source/README.md
+++ b/apps/example-nextjs-source/README.md
@@ -34,7 +34,7 @@ Theme sits between them in `@layer astryx-theme`, so:
### 1. Install
```bash
-npm install @stylexjs/stylex @astryxdesign/core @astryxdesign/theme-default next react react-dom
+npm install @stylexjs/stylex @astryxdesign/core @astryxdesign/theme-neutral next react react-dom
npm install -D @astryxdesign/build @stylexjs/babel-plugin @babel/core autoprefixer typescript
```
@@ -99,7 +99,7 @@ module.exports = {
```js
const nextConfig = {
- transpilePackages: ['@astryxdesign/core', '@astryxdesign/theme-default'],
+ transpilePackages: ['@astryxdesign/core', '@astryxdesign/theme-neutral'],
webpack: config => {
config.resolve.conditionNames = ['source', 'import', 'require', 'default'];
return config;
@@ -122,7 +122,7 @@ export default nextConfig;
```css
@import './layers.css';
@import '@astryxdesign/core/reset.css';
-@import '@astryxdesign/theme-default/theme.css';
+@import '@astryxdesign/theme-neutral/theme.css';
@stylex;
```
diff --git a/apps/example-nextjs-source/package.json b/apps/example-nextjs-source/package.json
index 40b8b7ac56..6e345440cc 100644
--- a/apps/example-nextjs-source/package.json
+++ b/apps/example-nextjs-source/package.json
@@ -10,7 +10,7 @@
"dependencies": {
"@stylexjs/stylex": "^0.18.3",
"@astryxdesign/core": "*",
- "@astryxdesign/theme-default": "*",
+ "@astryxdesign/theme-neutral": "*",
"next": "^15.5.16",
"react": "^19.2.7",
"react-dom": "^19.2.7"
diff --git a/apps/example-nextjs-source/src/app/globals.css b/apps/example-nextjs-source/src/app/globals.css
index 72df028285..52ade15db9 100644
--- a/apps/example-nextjs-source/src/app/globals.css
+++ b/apps/example-nextjs-source/src/app/globals.css
@@ -2,6 +2,6 @@
@import "./layers.css";
@import "@astryxdesign/core/reset.css";
-@import "@astryxdesign/theme-default/theme.css";
+@import "@astryxdesign/theme-neutral/theme.css";
@stylex;
diff --git a/apps/example-nextjs-source/src/app/providers.tsx b/apps/example-nextjs-source/src/app/providers.tsx
index a58a21ca3c..b3f153f797 100644
--- a/apps/example-nextjs-source/src/app/providers.tsx
+++ b/apps/example-nextjs-source/src/app/providers.tsx
@@ -5,11 +5,11 @@
import Link from 'next/link';
import {Theme} from '@astryxdesign/core/theme';
import {LinkProvider} from '@astryxdesign/core/Link';
-import {defaultTheme} from '@astryxdesign/theme-default';
+import {neutralTheme} from '@astryxdesign/theme-neutral';
export function Providers({children}: {children: React.ReactNode}) {
return (
- <Theme theme={defaultTheme}>
+ <Theme theme={neutralTheme}>
<LinkProvider component={Link}>{children}</LinkProvider>
</Theme>
);
diff --git a/apps/example-nextjs-stylex/README.md b/apps/example-nextjs-stylex/README.md
index 87dc99a28e..de0bafb2f8 100644
--- a/apps/example-nextjs-stylex/README.md
+++ b/apps/example-nextjs-stylex/README.md
@@ -38,7 +38,7 @@ Product-level StyleX styles always win over XDS component defaults without needi
### 1. Install dependencies
```bash
-npm install @stylexjs/stylex @astryxdesign/core @astryxdesign/theme-default next react react-dom
+npm install @stylexjs/stylex @astryxdesign/core @astryxdesign/theme-neutral next react react-dom
npm install --save-dev @stylexjs/babel-plugin @stylexjs/postcss-plugin \
@babel/preset-react @babel/preset-typescript typescript @types/react @types/react-dom
```
@@ -105,7 +105,7 @@ module.exports = {
```css
@import '@astryxdesign/core/reset.css';
@import '@astryxdesign/core/astryx.css';
-@import '@astryxdesign/theme-default/theme.css';
+@import '@astryxdesign/theme-neutral/theme.css';
@stylex;
```
@@ -117,11 +117,11 @@ module.exports = {
import Link from 'next/link';
import {Theme} from '@astryxdesign/core/theme';
import {LinkProvider} from '@astryxdesign/core/Link';
-import {defaultTheme} from '@astryxdesign/theme-default/built';
+import {neutralTheme} from '@astryxdesign/theme-neutral/built';
export function Providers({children}) {
return (
- <Theme theme={defaultTheme}>
+ <Theme theme={neutralTheme}>
<LinkProvider component={Link}>{children}</LinkProvider>
</Theme>
);
diff --git a/apps/example-nextjs-stylex/package.json b/apps/example-nextjs-stylex/package.json
index 4441f35edb..47cdc2e61f 100644
--- a/apps/example-nextjs-stylex/package.json
+++ b/apps/example-nextjs-stylex/package.json
@@ -10,7 +10,7 @@
"dependencies": {
"@stylexjs/stylex": "^0.18.3",
"@astryxdesign/core": "*",
- "@astryxdesign/theme-default": "*",
+ "@astryxdesign/theme-neutral": "*",
"next": "^15.5.16",
"react": "^19.2.7",
"react-dom": "^19.2.7"
diff --git a/apps/example-nextjs-stylex/src/app/globals.css b/apps/example-nextjs-stylex/src/app/globals.css
index ddf1fc9996..c8bfcdce22 100644
--- a/apps/example-nextjs-stylex/src/app/globals.css
+++ b/apps/example-nextjs-stylex/src/app/globals.css
@@ -2,7 +2,7 @@
@import "@astryxdesign/core/reset.css";
@import "@astryxdesign/core/astryx.css";
-@import "@astryxdesign/theme-default/theme.css";
+@import "@astryxdesign/theme-neutral/theme.css";
/* StyleX app styles are injected here. The postcss plugin declares
reset, astryx-base, and astryx-theme as layersBefore so the full layer order
diff --git a/apps/example-nextjs-stylex/src/app/providers.tsx b/apps/example-nextjs-stylex/src/app/providers.tsx
index 03c3feecc5..e456e45b6b 100644
--- a/apps/example-nextjs-stylex/src/app/providers.tsx
+++ b/apps/example-nextjs-stylex/src/app/providers.tsx
@@ -5,11 +5,11 @@
import Link from 'next/link';
import {Theme} from '@astryxdesign/core/theme';
import {LinkProvider} from '@astryxdesign/core/Link';
-import {defaultTheme} from '@astryxdesign/theme-default/built';
+import {neutralTheme} from '@astryxdesign/theme-neutral/built';
export function Providers({children}: {children: React.ReactNode}) {
return (
- <Theme theme={defaultTheme}>
+ <Theme theme={neutralTheme}>
<LinkProvider component={Link}>{children}</LinkProvider>
</Theme>
);
diff --git a/apps/example-nextjs-tailwind/package.json b/apps/example-nextjs-tailwind/package.json
index 87a4beb3de..daf4f1dbd1 100644
--- a/apps/example-nextjs-tailwind/package.json
+++ b/apps/example-nextjs-tailwind/package.json
@@ -9,7 +9,7 @@
},
"dependencies": {
"@astryxdesign/core": "*",
- "@astryxdesign/theme-default": "*",
+ "@astryxdesign/theme-neutral": "*",
"next": "^15.5.16",
"react": "^19.2.7",
"react-dom": "^19.2.7"
diff --git a/apps/example-nextjs-tailwind/src/app/globals.css b/apps/example-nextjs-tailwind/src/app/globals.css
index 553fd1eeb1..0d17353e36 100644
--- a/apps/example-nextjs-tailwind/src/app/globals.css
+++ b/apps/example-nextjs-tailwind/src/app/globals.css
@@ -23,6 +23,6 @@
@import "tailwindcss/preflight.css" layer(base);
@import "@astryxdesign/core/reset.css";
@import "@astryxdesign/core/astryx.css";
-@import "@astryxdesign/theme-default/theme.css";
+@import "@astryxdesign/theme-neutral/theme.css";
@import "@astryxdesign/core/tailwind-theme.css";
@import "tailwindcss/utilities.css" layer(utilities);
diff --git a/apps/example-nextjs-tailwind/src/app/providers.tsx b/apps/example-nextjs-tailwind/src/app/providers.tsx
index 03c3feecc5..e456e45b6b 100644
--- a/apps/example-nextjs-tailwind/src/app/providers.tsx
+++ b/apps/example-nextjs-tailwind/src/app/providers.tsx
@@ -5,11 +5,11 @@
import Link from 'next/link';
import {Theme} from '@astryxdesign/core/theme';
import {LinkProvider} from '@astryxdesign/core/Link';
-import {defaultTheme} from '@astryxdesign/theme-default/built';
+import {neutralTheme} from '@astryxdesign/theme-neutral/built';
export function Providers({children}: {children: React.ReactNode}) {
return (
- <Theme theme={defaultTheme}>
+ <Theme theme={neutralTheme}>
<LinkProvider component={Link}>{children}</LinkProvider>
</Theme>
);
diff --git a/apps/example-nextjs/README.md b/apps/example-nextjs/README.md
index a6f0c6ed1b..aa84ec01a9 100644
--- a/apps/example-nextjs/README.md
+++ b/apps/example-nextjs/README.md
@@ -9,7 +9,7 @@ No StyleX build plugin needed; XDS ships pre-compiled CSS and JS. This is the si
### 1. Install dependencies
```bash
-npm install @astryxdesign/core @astryxdesign/theme-default next react react-dom
+npm install @astryxdesign/core @astryxdesign/theme-neutral next react react-dom
npm install --save-dev @types/react @types/react-dom typescript
```
@@ -20,7 +20,7 @@ In `src/app/globals.css`, import the reset, component styles, and theme:
```css
@import '@astryxdesign/core/reset.css';
@import '@astryxdesign/core/astryx.css';
-@import '@astryxdesign/theme-default/theme.css';
+@import '@astryxdesign/theme-neutral/theme.css';
```
The CSS import order matters:
@@ -43,11 +43,11 @@ import './globals.css';
import Link from 'next/link';
import {Theme} from '@astryxdesign/core/theme';
import {LinkProvider} from '@astryxdesign/core/Link';
-import {defaultTheme} from '@astryxdesign/theme-default/built';
+import {neutralTheme} from '@astryxdesign/theme-neutral/built';
export function Providers({children}) {
return (
- <Theme theme={defaultTheme}>
+ <Theme theme={neutralTheme}>
<LinkProvider component={Link}>{children}</LinkProvider>
</Theme>
);
diff --git a/apps/example-nextjs/package.json b/apps/example-nextjs/package.json
index be8e7574d4..60d52a7b77 100644
--- a/apps/example-nextjs/package.json
+++ b/apps/example-nextjs/package.json
@@ -9,7 +9,7 @@
},
"dependencies": {
"@astryxdesign/core": "*",
- "@astryxdesign/theme-default": "*",
+ "@astryxdesign/theme-neutral": "*",
"next": "^15.5.16",
"react": "^19.2.7",
"react-dom": "^19.2.7"
diff --git a/apps/example-nextjs/src/app/globals.css b/apps/example-nextjs/src/app/globals.css
index dce8db89bf..b9bc0329f2 100644
--- a/apps/example-nextjs/src/app/globals.css
+++ b/apps/example-nextjs/src/app/globals.css
@@ -2,4 +2,4 @@
@import "@astryxdesign/core/reset.css";
@import "@astryxdesign/core/astryx.css";
-@import "@astryxdesign/theme-default/theme.css";
+@import "@astryxdesign/theme-neutral/theme.css";
diff --git a/apps/example-nextjs/src/app/providers.tsx b/apps/example-nextjs/src/app/providers.tsx
index 03c3feecc5..e456e45b6b 100644
--- a/apps/example-nextjs/src/app/providers.tsx
+++ b/apps/example-nextjs/src/app/providers.tsx
@@ -5,11 +5,11 @@
import Link from 'next/link';
import {Theme} from '@astryxdesign/core/theme';
import {LinkProvider} from '@astryxdesign/core/Link';
-import {defaultTheme} from '@astryxdesign/theme-default/built';
+import {neutralTheme} from '@astryxdesign/theme-neutral/built';
export function Providers({children}: {children: React.ReactNode}) {
return (
- <Theme theme={defaultTheme}>
+ <Theme theme={neutralTheme}>
<LinkProvider component={Link}>{children}</LinkProvider>
</Theme>
);
diff --git a/apps/example-vite-tailwind/package.json b/apps/example-vite-tailwind/package.json
index f0cfc7722c..e0b538b9c8 100644
--- a/apps/example-vite-tailwind/package.json
+++ b/apps/example-vite-tailwind/package.json
@@ -10,7 +10,7 @@
},
"dependencies": {
"@astryxdesign/core": "*",
- "@astryxdesign/theme-default": "*",
+ "@astryxdesign/theme-neutral": "*",
"react": "^19.2.7",
"react-dom": "^19.2.7"
},
diff --git a/apps/example-vite-tailwind/src/App.tsx b/apps/example-vite-tailwind/src/App.tsx
index 6461239ec0..50c3e7aea3 100644
--- a/apps/example-vite-tailwind/src/App.tsx
+++ b/apps/example-vite-tailwind/src/App.tsx
@@ -2,7 +2,7 @@
import {useState} from 'react';
import {Theme} from '@astryxdesign/core/theme';
-import {defaultTheme} from '@astryxdesign/theme-default/built';
+import {neutralTheme} from '@astryxdesign/theme-neutral/built';
import {VStack, HStack} from '@astryxdesign/core/Layout';
import {Button} from '@astryxdesign/core/Button';
import {Text, Heading} from '@astryxdesign/core/Text';
@@ -26,7 +26,7 @@ export default function App() {
const [name, setName] = useState('');
return (
- <Theme theme={defaultTheme}>
+ <Theme theme={neutralTheme}>
<main className="min-h-screen bg-body p-8">
<div className="mx-auto max-w-3xl">
<VStack gap={8}>
diff --git a/apps/example-vite-tailwind/src/index.css b/apps/example-vite-tailwind/src/index.css
index b7d3418bca..6d5a49641d 100644
--- a/apps/example-vite-tailwind/src/index.css
+++ b/apps/example-vite-tailwind/src/index.css
@@ -12,6 +12,6 @@
@import "tailwindcss/preflight.css" layer(base);
@import "@astryxdesign/core/reset.css";
@import "@astryxdesign/core/astryx.css";
-@import "@astryxdesign/theme-default/theme.css";
+@import "@astryxdesign/theme-neutral/theme.css";
@import "@astryxdesign/core/tailwind-theme.css";
@import "tailwindcss/utilities.css" layer(utilities);
diff --git a/apps/example-vite/README.md b/apps/example-vite/README.md
index 2433270a0c..d83bc93088 100644
--- a/apps/example-vite/README.md
+++ b/apps/example-vite/README.md
@@ -18,7 +18,7 @@ XDS ships as raw TypeScript + StyleX source. Consumers compile it at the applica
### 1. Install dependencies
```bash
-npm install @stylexjs/stylex @astryxdesign/core @astryxdesign/theme-default react react-dom
+npm install @stylexjs/stylex @astryxdesign/core @astryxdesign/theme-neutral react react-dom
npm install --save-dev @stylexjs/unplugin @vitejs/plugin-react typescript \
@types/react @types/react-dom vite
```
@@ -104,7 +104,7 @@ export default defineConfig({
// that must be compiled by the StyleX plugin — pre-bundling strips the
// stylex.create/defineVars calls and causes a runtime error.
optimizeDeps: {
- exclude: ['@astryxdesign/core', '@astryxdesign/theme-default'],
+ exclude: ['@astryxdesign/core', '@astryxdesign/theme-neutral'],
},
});
```
@@ -125,7 +125,7 @@ Import it in `src/main.tsx`, along with the base reset and theme CSS:
```tsx
import '@astryxdesign/core/reset.css';
-import '@astryxdesign/theme-default/theme.css';
+import '@astryxdesign/theme-neutral/theme.css';
import './index.css';
```
@@ -141,10 +141,10 @@ Wrap your app with `Theme` and the default theme:
```tsx
import {Theme} from '@astryxdesign/core/theme';
-import {defaultTheme} from '@astryxdesign/theme-default';
+import {neutralTheme} from '@astryxdesign/theme-neutral';
export default function App() {
- return <Theme theme={defaultTheme}>{/* your app */}</Theme>;
+ return <Theme theme={neutralTheme}>{/* your app */}</Theme>;
}
```
@@ -168,7 +168,7 @@ npm run preview
| Issue | Symptom | Fix |
| ----------------------------- | ------------------------------------------- | ---------------------------------------------------------------------------- |
| Missing `lightningcssOptions` | Colors broken: `light-dark()` gets lowered | Add `lightningcssOptions: { targets: lightningcssTargets }` to StyleX plugin |
-| Vite pre-bundles XDS | `Unexpected stylex.defineVars at runtime` | Add `optimizeDeps: { exclude: ['@astryxdesign/core', '@astryxdesign/theme-default'] }` |
+| Vite pre-bundles XDS | `Unexpected stylex.defineVars at runtime` | Add `optimizeDeps: { exclude: ['@astryxdesign/core', '@astryxdesign/theme-neutral'] }` |
| Missing resolve aliases | Module not found errors for `@astryxdesign/core` | Add `resolve.alias` pointing to source directory |
| Missing CSS entry point | StyleX has no CSS asset to append to | Create a minimal `index.css` and import it in `main.tsx` |
| Plugin order | Styles not extracted or HMR broken | `stylex.vite()` must come before `react()` in the plugins array |
diff --git a/apps/example-vite/package.json b/apps/example-vite/package.json
index 407633ebfd..0b538cd311 100644
--- a/apps/example-vite/package.json
+++ b/apps/example-vite/package.json
@@ -11,7 +11,7 @@
"dependencies": {
"@stylexjs/stylex": "^0.18.3",
"@astryxdesign/core": "*",
- "@astryxdesign/theme-default": "*",
+ "@astryxdesign/theme-neutral": "*",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"unplugin": "^3.0.0"
diff --git a/apps/example-vite/src/App.tsx b/apps/example-vite/src/App.tsx
index c56ee76946..3608f7d149 100644
--- a/apps/example-vite/src/App.tsx
+++ b/apps/example-vite/src/App.tsx
@@ -3,7 +3,7 @@
import {useState} from 'react';
import * as stylex from '@stylexjs/stylex';
import {Theme} from '@astryxdesign/core/theme';
-import {defaultTheme} from '@astryxdesign/theme-default/built';
+import {neutralTheme} from '@astryxdesign/theme-neutral/built';
import {VStack, HStack} from '@astryxdesign/core/Layout';
import {Button} from '@astryxdesign/core/Button';
import {Text, Heading} from '@astryxdesign/core/Text';
@@ -50,7 +50,7 @@ export default function App() {
const [email, setEmail] = useState('');
return (
- <Theme theme={defaultTheme}>
+ <Theme theme={neutralTheme}>
<main {...stylex.props(styles.main)}>
<div {...stylex.props(styles.container)}>
<VStack gap={6}>
diff --git a/apps/example-vite/src/main.tsx b/apps/example-vite/src/main.tsx
index 672bc35b3c..0a283c4620 100644
--- a/apps/example-vite/src/main.tsx
+++ b/apps/example-vite/src/main.tsx
@@ -3,7 +3,7 @@
import {StrictMode} from 'react';
import {createRoot} from 'react-dom/client';
import '@astryxdesign/core/reset.css';
-import '@astryxdesign/theme-default/theme.css';
+import '@astryxdesign/theme-neutral/theme.css';
import './index.css';
import App from './App';
diff --git a/apps/sandbox/package.json b/apps/sandbox/package.json
index 75c46e3d04..d10900e76c 100644
--- a/apps/sandbox/package.json
+++ b/apps/sandbox/package.json
@@ -3,7 +3,7 @@
"version": "0.0.1",
"private": true,
"scripts": {
- "build:deps": "pnpm -F @astryxdesign/theme-default build && pnpm -F @astryxdesign/theme-neutral build && pnpm -F @astryxdesign/theme-brutalist build && pnpm -F @astryxdesign/theme-matcha build && pnpm -F @astryxdesign/theme-daily build && pnpm -F @astryxdesign/theme-stone build && pnpm -F @astryxdesign/theme-gothic build && pnpm -F @astryxdesign/theme-chocolate build && pnpm -F @astryxdesign/theme-y2k build && pnpm -F @astryxdesign/theme-butter build",
+ "build:deps": "pnpm -F @astryxdesign/theme-neutral build && pnpm -F @astryxdesign/theme-matcha build && pnpm -F @astryxdesign/theme-stone build && pnpm -F @astryxdesign/theme-gothic build && pnpm -F @astryxdesign/theme-chocolate build && pnpm -F @astryxdesign/theme-y2k build && pnpm -F @astryxdesign/theme-butter build",
"generate:changelog": "node scripts/generate-changelog.js",
"generate:cli": "node scripts/generate-cli-registry.mjs",
"generate": "node ../../scripts/sync-templates.js && pnpm generate:changelog && pnpm generate:cli && node scripts/generate-foundation-docs.mjs",
@@ -18,11 +18,8 @@
"@astryxdesign/cli": "*",
"@astryxdesign/core": "*",
"@astryxdesign/lab": "*",
- "@astryxdesign/theme-default": "*",
"@astryxdesign/theme-neutral": "*",
- "@astryxdesign/theme-brutalist": "*",
"@astryxdesign/theme-matcha": "*",
- "@astryxdesign/theme-daily": "*",
"next": "^15.5.16",
"react": "^19.2.7",
"react-dom": "^19.2.7",
diff --git a/apps/sandbox/scripts/generate-changelog.js b/apps/sandbox/scripts/generate-changelog.js
index 3f0608d2f3..ffc7c8c26a 100644
--- a/apps/sandbox/scripts/generate-changelog.js
+++ b/apps/sandbox/scripts/generate-changelog.js
@@ -19,11 +19,8 @@ const GITHUB_REPO = 'facebookexperimental/xds';
const CHANGELOG_SOURCES = [
{pkg: '@astryxdesign/core', file: 'packages/core/CHANGELOG.md'},
{pkg: '@astryxdesign/cli', file: 'packages/cli/CHANGELOG.md'},
- {pkg: '@astryxdesign/theme-default', file: 'packages/themes/default/CHANGELOG.md'},
{pkg: '@astryxdesign/theme-neutral', file: 'packages/themes/neutral/CHANGELOG.md'},
- {pkg: '@astryxdesign/theme-brutalist', file: 'packages/themes/brutalist/CHANGELOG.md'},
{pkg: '@astryxdesign/theme-matcha', file: 'packages/themes/matcha/CHANGELOG.md'},
- {pkg: '@astryxdesign/theme-daily', file: 'packages/themes/daily/CHANGELOG.md'},
];
const DEPRECATED_SCAN_DIRS = [
diff --git a/apps/sandbox/src/app/(fullscreen)/pages/daily-palette/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/daily-palette/page.tsx
deleted file mode 100644
index 5a34094e94..0000000000
--- a/apps/sandbox/src/app/(fullscreen)/pages/daily-palette/page.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-'use client';
-
-import {VStack} from '@astryxdesign/core/Layout';
-import {Text} from '@astryxdesign/core/Text';
-import {dailyTheme} from '@astryxdesign/theme-daily/built';
-import {ThemePalettePreview} from '@/components/ThemePalettePreview';
-import type {TonalColor} from '@/components/ThemePalettePreview';
-
-const TONAL_COLORS: TonalColor[] = [
- {name: 'Neutral', sourceHex: '#E6E3DE'},
- {name: 'Blue', sourceHex: '#BBDBFE'},
- {name: 'Cyan', sourceHex: '#ACE3F0'},
- {name: 'Green', sourceHex: '#C0E3C0'},
- {name: 'Teal', sourceHex: '#ADE6D9'},
- {name: 'Yellow', sourceHex: '#FDE29A'},
- {name: 'Orange', sourceHex: '#F8CEB2'},
- {name: 'Red', sourceHex: '#FDC9C7'},
- {name: 'Pink', sourceHex: '#F9C8DA'},
- {name: 'Purple', sourceHex: '#EACBF2'},
- {name: 'Info', sourceHex: '#1779FA', semantic: 'Info'},
- {name: 'Error', sourceHex: '#FD0000', semantic: 'Error'},
- {name: 'Warning', sourceHex: '#F8C722', semantic: 'Warning'},
- {name: 'Success', sourceHex: '#009936', semantic: 'Success'},
-];
-
-const CORE = [
- {hex: '#292724', name: 'Astryx 900'},
- {hex: '#85817A', name: 'Astryx 500'},
- {hex: '#E6E3DE', name: 'Astryx 300'},
- {hex: '#F8F4ED', name: 'Astryx 100'},
- {hex: '#FFFFFF', name: 'White'},
-];
-
-const sectionTitle: React.CSSProperties = {
- fontSize: 13,
- fontWeight: 600,
- margin: 0,
- marginBottom: 12,
-};
-
-function DisplayTextSection() {
- return (
- <div>
- <h3 style={sectionTitle}>Display Text (PT Serif Italic)</h3>
- <VStack gap={2}>
- <Text type="display-1">Display 1</Text>
- <Text type="display-2">Display 2</Text>
- <Text type="display-3">Display 3</Text>
- </VStack>
- </div>
- );
-}
-
-export default function DailyPalettePage() {
- return (
- <ThemePalettePreview
- theme={dailyTheme}
- title="Astryx Theme Palette"
- subtitle="A warm, productivity-focused theme with earthy cream tones. PT Serif italic for display, Figtree for headings and body, pill-shaped buttons."
- tonalColors={TONAL_COLORS}
- coreSwatches={CORE}
- leadingExtras={<DisplayTextSection />}
- />
- );
-}
diff --git a/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsx b/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsx
index 838e45ee50..6f935b450e 100644
--- a/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsx
+++ b/apps/sandbox/src/app/(fullscreen)/pages/example-cards/page.tsx
@@ -109,12 +109,9 @@ export default function ExampleCardsPage() {
const {themeName, setThemeName, mode, setMode} = useThemeControls();
const themeOptions = [
- 'Default',
'Neutral',
- 'Brutalist',
'Meta',
'WhatsApp',
- 'Daily',
'Stone',
'Gothic',
'Chocolate',
diff --git a/apps/sandbox/src/app/globals.css b/apps/sandbox/src/app/globals.css
index 94f1ff4ad8..274192dea6 100644
--- a/apps/sandbox/src/app/globals.css
+++ b/apps/sandbox/src/app/globals.css
@@ -3,11 +3,8 @@
@import "./layers.css";
@import "@astryxdesign/core/reset.css";
@import "@astryxdesign/core/astryx.css";
-@import "@astryxdesign/theme-default/theme.css";
@import "@astryxdesign/theme-neutral/theme.css";
-@import "@astryxdesign/theme-brutalist/theme.css";
@import "@astryxdesign/theme-matcha/theme.css";
-@import "@astryxdesign/theme-daily/theme.css";
@import "@astryxdesign/theme-stone/theme.css";
@import "@astryxdesign/theme-gothic/theme.css";
@import "@astryxdesign/theme-chocolate/theme.css";
diff --git a/apps/sandbox/src/app/providers.tsx b/apps/sandbox/src/app/providers.tsx
index 247a04e927..530723c625 100644
--- a/apps/sandbox/src/app/providers.tsx
+++ b/apps/sandbox/src/app/providers.tsx
@@ -5,11 +5,8 @@
import {useState, createContext, useContext, useEffect} from 'react';
import {Theme} from '@astryxdesign/core/theme';
import {LayerProvider} from '@astryxdesign/core/Layer';
-import {defaultTheme} from '@astryxdesign/theme-default/built';
import {neutralTheme} from '@astryxdesign/theme-neutral/built';
-import {brutalistTheme} from '@astryxdesign/theme-brutalist/built';
import {matchaTheme} from '@astryxdesign/theme-matcha/built';
-import {dailyTheme} from '@astryxdesign/theme-daily/built';
import {stoneTheme} from '@astryxdesign/theme-stone/built';
import {gothicTheme} from '@astryxdesign/theme-gothic/built';
import {chocolateTheme} from '@astryxdesign/theme-chocolate/built';
@@ -28,11 +25,8 @@ export const SANDBOX_THEMES: ReadonlyArray<{
label: string;
theme: DefinedTheme;
}> = [
- {id: 'default', label: 'Default', theme: defaultTheme},
{id: 'neutral', label: 'Neutral', theme: neutralTheme},
- {id: 'brutalist', label: 'Brutalist', theme: brutalistTheme},
{id: 'matcha', label: 'Matcha', theme: matchaTheme},
- {id: 'daily', label: 'Daily', theme: dailyTheme},
{id: 'stone', label: 'Stone', theme: stoneTheme},
{id: 'gothic', label: 'Gothic', theme: gothicTheme},
{id: 'chocolate', label: 'Chocolate', theme: chocolateTheme},
@@ -51,7 +45,7 @@ type ThemeContextValue = {
};
const ThemeContext = createContext<ThemeContextValue>({
- themeName: 'default',
+ themeName: 'neutral',
setThemeName: () => {},
mode: 'light',
setMode: () => {},
@@ -77,7 +71,7 @@ function getEmbedThemeParams(): {
isEmbed: boolean;
} {
if (typeof window === 'undefined') {
- return {initialTheme: 'default', initialMode: 'light', isEmbed: false};
+ return {initialTheme: 'neutral', initialMode: 'light', isEmbed: false};
}
const params = new URLSearchParams(window.location.search);
const isEmbed = params.get('embed') === '1';
@@ -86,7 +80,7 @@ function getEmbedThemeParams(): {
return {
initialTheme:
- isEmbed && paramTheme && paramTheme in themes ? paramTheme : 'default',
+ isEmbed && paramTheme && paramTheme in themes ? paramTheme : 'neutral',
initialMode:
isEmbed && (paramMode === 'light' || paramMode === 'dark')
? (paramMode as ThemeMode)
@@ -174,7 +168,7 @@ export function Providers({children}: {children: React.ReactNode}) {
document.documentElement.style.setProperty('color-scheme', mode);
}, [mode]);
- const theme = themes[themeName] || defaultTheme;
+ const theme = themes[themeName] || neutralTheme;
return (
<ThemeContext.Provider value={{themeName, setThemeName, mode, setMode}}>
diff --git a/apps/sandbox/src/app/sandboxPages.ts b/apps/sandbox/src/app/sandboxPages.ts
index 9fecb051b8..28bee1d42c 100644
--- a/apps/sandbox/src/app/sandboxPages.ts
+++ b/apps/sandbox/src/app/sandboxPages.ts
@@ -123,12 +123,6 @@ export const categories: SandboxCategory[] = [
description:
'Neutral theme — pure grayscale spine, OKLCH categorical palette, vivid T60 semantic badges, soft T90 categorical pastels, Figtree typography',
},
- {
- name: 'Daily Palette',
- href: '/pages/daily-palette/',
- description:
- 'Daily theme — warm earthy cream tones, PT Serif headings, Figtree body, pill-shaped buttons',
- },
{
name: 'Stone Palette',
href: '/pages/stone-palette/',
diff --git a/apps/sandbox/src/components/ThemePalettePreview.tsx b/apps/sandbox/src/components/ThemePalettePreview.tsx
index 0b2c1cea3a..7b045e3606 100644
--- a/apps/sandbox/src/components/ThemePalettePreview.tsx
+++ b/apps/sandbox/src/components/ThemePalettePreview.tsx
@@ -19,7 +19,7 @@ import {Text, Heading} from '@astryxdesign/core/Text';
import {Theme} from '@astryxdesign/core/theme';
import type {DefinedTheme} from '@astryxdesign/core/theme';
import {LayerProvider} from '@astryxdesign/core/Layer';
-import {defaultTheme} from '@astryxdesign/theme-default/built';
+import {neutralTheme} from '@astryxdesign/theme-neutral/built';
import {ThemeAuditDrawer, useThemeAudit} from './themePreview/ThemeAuditDrawer';
import {
@@ -1400,7 +1400,7 @@ export function ThemePalettePreview({
neutral default theme so it always looks the same across all 5
palette pages. Position-fixed elements inside the drawer
attach to the viewport, not this wrapper. */}
- <Theme theme={defaultTheme} mode="light">
+ <Theme theme={neutralTheme} mode="light">
<LayerProvider>
<ThemeAuditDrawer
audit={audit}
diff --git a/apps/storybook/.storybook/main.ts b/apps/storybook/.storybook/main.ts
index 038ee2311d..ce905a4c4d 100644
--- a/apps/storybook/.storybook/main.ts
+++ b/apps/storybook/.storybook/main.ts
@@ -75,18 +75,20 @@ const config: StorybookConfig = {
dev: false,
styleResolution: 'application-order',
aliases: {
- '@astryxdesign/core/*': [path.join(rootDir, 'packages/core/src/*')],
+ '@astryxdesign/core/*': [
+ path.join(rootDir, 'packages/core/src/*'),
+ ],
'@astryxdesign/core': [path.join(rootDir, 'packages/core/src')],
'@astryxdesign/lab/*': [path.join(rootDir, 'packages/lab/src/*')],
'@astryxdesign/lab': [path.join(rootDir, 'packages/lab/src')],
- '@astryxdesign/theme-default/*': [
- path.join(rootDir, 'packages/themes/default/src/*'),
- ],
'@astryxdesign/theme-neutral/*': [
path.join(rootDir, 'packages/themes/neutral/src/*'),
],
- '@astryxdesign/theme-brutalist/*': [
- path.join(rootDir, 'packages/themes/brutalist/src/*'),
+ '@astryxdesign/theme-stone/*': [
+ path.join(rootDir, 'packages/themes/stone/src/*'),
+ ],
+ '@astryxdesign/theme-y2k/*': [
+ path.join(rootDir, 'packages/themes/y2k/src/*'),
],
},
unstable_moduleResolution: {
@@ -106,17 +108,17 @@ const config: StorybookConfig = {
...config.resolve?.alias,
'@astryxdesign/core': path.resolve(rootDir, 'packages/core/src'),
'@astryxdesign/lab': path.resolve(rootDir, 'packages/lab/src'),
- '@astryxdesign/theme-default': path.resolve(
- rootDir,
- 'packages/themes/default/src/source.ts',
- ),
'@astryxdesign/theme-neutral': path.resolve(
rootDir,
'packages/themes/neutral/src/source.ts',
),
- '@astryxdesign/theme-brutalist': path.resolve(
+ '@astryxdesign/theme-stone': path.resolve(
+ rootDir,
+ 'packages/themes/stone/src/source.ts',
+ ),
+ '@astryxdesign/theme-y2k': path.resolve(
rootDir,
- 'packages/themes/brutalist/src/source.ts',
+ 'packages/themes/y2k/src/source.ts',
),
'@astryxdesign/vega': path.resolve(rootDir, 'packages/vega/src'),
},
diff --git a/apps/storybook/.storybook/preview.tsx b/apps/storybook/.storybook/preview.tsx
index 30395ee5d2..526991e121 100644
--- a/apps/storybook/.storybook/preview.tsx
+++ b/apps/storybook/.storybook/preview.tsx
@@ -3,9 +3,9 @@
import type {Preview, Decorator} from '@storybook/react';
import * as React from 'react';
import {Theme, LayerProvider} from '@astryxdesign/core';
-import {defaultTheme} from '@astryxdesign/theme-default';
import {neutralTheme} from '@astryxdesign/theme-neutral';
-import {brutalistTheme} from '@astryxdesign/theme-brutalist';
+import {stoneTheme} from '@astryxdesign/theme-stone';
+import {y2kTheme} from '@astryxdesign/theme-y2k';
// Import the base reset stylesheet
import '@astryxdesign/core/reset.css';
@@ -13,9 +13,9 @@ import '@astryxdesign/core/reset.css';
* Map of available themes
*/
const themes = {
- default: defaultTheme,
neutral: neutralTheme,
- brutalist: brutalistTheme,
+ stone: stoneTheme,
+ y2k: y2kTheme,
};
/**
@@ -29,7 +29,7 @@ const themes = {
*/
const withTheme: Decorator = (Story, context) => {
// Get theme selection from toolbar
- const themeKey = (context.globals?.xdsTheme || 'default') as string;
+ const themeKey = (context.globals?.xdsTheme || 'neutral') as string;
const mode = context.globals?.colorMode === 'dark' ? 'dark' : 'light';
// Sync color-scheme to the document root so light-dark() works
@@ -52,7 +52,7 @@ const withTheme: Decorator = (Story, context) => {
);
}
- const theme = themes[themeKey as keyof typeof themes] || defaultTheme;
+ const theme = themes[themeKey as keyof typeof themes] || neutralTheme;
return (
<Theme theme={theme} mode={mode}>
@@ -90,9 +90,9 @@ const preview: Preview = {
icon: 'paintbrush',
items: [
{value: 'none', title: 'None (base tokens)', icon: 'close'},
- {value: 'default', title: 'Default', icon: 'circlehollow'},
{value: 'neutral', title: 'Neutral', icon: 'circle'},
- {value: 'brutalist', title: 'Brutalist', icon: 'lightning'},
+ {value: 'stone', title: 'Stone', icon: 'circlehollow'},
+ {value: 'y2k', title: 'Y2K', icon: 'lightning'},
],
dynamicTitle: true,
},
@@ -111,7 +111,7 @@ const preview: Preview = {
},
},
initialGlobals: {
- xdsTheme: 'default',
+ xdsTheme: 'neutral',
colorMode: 'light',
},
decorators: [withTheme],
diff --git a/apps/storybook/package.json b/apps/storybook/package.json
index 37ca24ed6e..c7d7584c5b 100644
--- a/apps/storybook/package.json
+++ b/apps/storybook/package.json
@@ -10,9 +10,9 @@
"dependencies": {
"@astryxdesign/core": "*",
"@astryxdesign/lab": "*",
- "@astryxdesign/theme-brutalist": "*",
- "@astryxdesign/theme-default": "*",
"@astryxdesign/theme-neutral": "*",
+ "@astryxdesign/theme-stone": "*",
+ "@astryxdesign/theme-y2k": "*",
"@astryxdesign/vega": "*",
"react": "^19.2.7",
"react-dom": "^19.2.7",
diff --git a/apps/storybook/stories/Layout.stories.tsx b/apps/storybook/stories/Layout.stories.tsx
index 5129ed8875..cee708ebd2 100644
--- a/apps/storybook/stories/Layout.stories.tsx
+++ b/apps/storybook/stories/Layout.stories.tsx
@@ -24,7 +24,7 @@ import {
} from '@astryxdesign/core/theme/tokens.stylex';
import {AppShell} from '@astryxdesign/core/AppShell';
import {Theme} from '@astryxdesign/core';
-import {defaultTheme} from '@astryxdesign/theme-default';
+import {stoneTheme} from '@astryxdesign/theme-stone';
import {neutralTheme} from '@astryxdesign/theme-neutral';
const styles = stylex.create({
@@ -739,26 +739,25 @@ export const ContentOnly: Story = {
};
export const ThemedLayout: Story = {
- name: 'Themed Layout (Neutral vs Default)',
+ name: 'Themed Layout (Neutral vs Stone)',
render: () => (
<HStack gap={6} xstyle={styles.storySection}>
<VStack gap={3}>
<p {...stylex.props(styles.sectionLabel)}>
- Default Theme (16px padding)
+ Stone Theme
</p>
- <Theme theme={defaultTheme}>
+ <Theme theme={stoneTheme}>
<Card width={400}>
<Layout
header={
<LayoutHeader hasDivider>
- <h3 {...stylex.props(styles.heading)}>Default Theme</h3>
+ <h3 {...stylex.props(styles.heading)}>Stone Theme</h3>
</LayoutHeader>
}
content={
<LayoutContent>
<p {...stylex.props(styles.bodyText)}>
- This card uses the default theme with 16px padding around
- the layout areas.
+ This card uses the stone theme around the layout areas.
</p>
</LayoutContent>
}
@@ -781,7 +780,7 @@ export const ThemedLayout: Story = {
<VStack gap={3}>
<p {...stylex.props(styles.sectionLabel)}>
- Neutral Theme (12px padding)
+ Neutral Theme
</p>
<Theme theme={neutralTheme}>
<Card width={400}>
@@ -794,8 +793,7 @@ export const ThemedLayout: Story = {
content={
<LayoutContent>
<p {...stylex.props(styles.bodyText)}>
- This card uses the neutral theme with 12px padding around
- the layout areas.
+ This card uses the neutral theme around the layout areas.
</p>
</LayoutContent>
}
diff --git a/apps/storybook/stories/XDSMediaTheme.stories.tsx b/apps/storybook/stories/XDSMediaTheme.stories.tsx
index ed2b81fac7..f99dc0c820 100644
--- a/apps/storybook/stories/XDSMediaTheme.stories.tsx
+++ b/apps/storybook/stories/XDSMediaTheme.stories.tsx
@@ -10,9 +10,8 @@ import {Badge} from '@astryxdesign/core/Badge';
import {Icon} from '@astryxdesign/core/Icon';
import {Stack} from '@astryxdesign/core/Stack';
import {Theme} from '@astryxdesign/core/theme';
-import {defaultTheme} from '@astryxdesign/theme-default';
import {neutralTheme} from '@astryxdesign/theme-neutral';
-import {brutalistTheme} from '@astryxdesign/theme-brutalist';
+import {y2kTheme} from '@astryxdesign/theme-y2k';
import {Card} from '@astryxdesign/core/Card';
// =============================================================================
@@ -89,7 +88,7 @@ export const OnDark: StoryObj = {
function OnLightDemo() {
return (
- <Theme theme={defaultTheme} mode="dark">
+ <Theme theme={neutralTheme} mode="dark">
<div
style={{
padding: 16,
@@ -221,19 +220,20 @@ export const ToastExample: StoryObj = {
// =============================================================================
/**
- * This is the key demo: themes with component overrides (brutalist has pill
- * buttons, uppercase text, thick borders on cards/ghost buttons). Inside
- * MediaTheme, those component overrides STILL apply — structural styling
- * is preserved. Only the color tokens change for the inverted surface.
+ * This is the key demo: themes with component overrides (y2k has sharp
+ * square buttons with visible borders, bordered secondary/destructive
+ * variants, and pill-shaped badges). Inside MediaTheme, those component
+ * overrides STILL apply — structural styling is preserved. Only the color
+ * tokens change for the inverted surface.
*/
function ComponentOverrideBoundaryDemo() {
return (
- <Theme theme={brutalistTheme}>
+ <Theme theme={y2kTheme}>
<Stack gap={4}>
<Text weight="semibold">
- Brutalist theme, notice the component overrides: pill buttons,
- uppercase text, thick card borders, bordered ghost buttons.
+ Y2K theme, notice the component overrides: square buttons with
+ visible borders, bordered button variants, pill-shaped badges.
</Text>
{/* Normal surface — themed component overrides apply */}
@@ -288,7 +288,7 @@ export const ComponentOverrideBoundary: StoryObj = {
docs: {
description: {
story:
- 'Shows component overrides flowing through to the media context. Brutalist theme applies bold component overrides (pill buttons, uppercase, thick borders); these are preserved inside MediaTheme. Only the color tokens change for the inverted surface.',
+ 'Shows component overrides flowing through to the media context. Y2K theme applies bold component overrides (square bordered buttons, pill badges); these are preserved inside MediaTheme. Only the color tokens change for the inverted surface.',
},
},
},
@@ -302,9 +302,8 @@ function ThemedDemo() {
return (
<Stack gap={4}>
{[
- {theme: defaultTheme, label: 'Default Theme'},
{theme: neutralTheme, label: 'Neutral Theme'},
- {theme: brutalistTheme, label: 'Brutalist Theme'},
+ {theme: y2kTheme, label: 'Y2K Theme'},
].map(({theme, label}) => (
<Theme key={label} theme={theme}>
<Stack gap={2}>
diff --git a/apps/storybook/stories/XDSTheme.stories.tsx b/apps/storybook/stories/XDSTheme.stories.tsx
index a460757963..ee9ac10520 100644
--- a/apps/storybook/stories/XDSTheme.stories.tsx
+++ b/apps/storybook/stories/XDSTheme.stories.tsx
@@ -7,7 +7,7 @@ import {Card} from '@astryxdesign/core/Card';
import {Stack} from '@astryxdesign/core/Stack';
import {Heading} from '@astryxdesign/core/Text';
import {Badge} from '@astryxdesign/core/Badge';
-import {defaultTheme} from '@astryxdesign/theme-default';
+import {neutralTheme} from '@astryxdesign/theme-neutral';
// =============================================================================
// Sample data for the chart
@@ -340,7 +340,7 @@ export default meta;
*/
export const BarChart: StoryObj = {
render: () => (
- <Theme theme={defaultTheme} mode="light">
+ <Theme theme={neutralTheme} mode="light">
<Stack direction="vertical" gap={4}>
<Heading level={3}>Weekly Activity</Heading>
<Card>
@@ -357,7 +357,7 @@ export const BarChart: StoryObj = {
*/
export const BarChartDark: StoryObj = {
render: () => (
- <Theme theme={defaultTheme} mode="dark">
+ <Theme theme={neutralTheme} mode="dark">
<Stack direction="vertical" gap={4}>
<Heading level={3}>Weekly Activity</Heading>
<Card>
@@ -374,7 +374,7 @@ export const BarChartDark: StoryObj = {
*/
export const GroupedChart: StoryObj = {
render: () => (
- <Theme theme={defaultTheme} mode="light">
+ <Theme theme={neutralTheme} mode="light">
<Stack direction="vertical" gap={4}>
<Heading level={3}>Quarterly Metrics</Heading>
<Card>
@@ -392,7 +392,7 @@ export const GroupedChart: StoryObj = {
export const ThemeComparison: StoryObj = {
render: () => (
<div style={{display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 16}}>
- <Theme theme={defaultTheme} mode="light">
+ <Theme theme={neutralTheme} mode="light">
<Stack direction="vertical" gap={2}>
<Heading level={4}>Default Theme</Heading>
<Card>
@@ -420,7 +420,7 @@ export const TokenInspectorStory: StoryObj = {
name: 'Token Inspector',
render: () => (
<div style={{display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 16}}>
- <Theme theme={defaultTheme} mode="light">
+ <Theme theme={neutralTheme} mode="light">
<TokenInspector />
</Theme>
<Theme theme={oceanTheme} mode="dark">
diff --git a/internal/vibe-tests/AdminPanel.tsx b/internal/vibe-tests/AdminPanel.tsx
index eee7bce04d..b7711dbb49 100644
--- a/internal/vibe-tests/AdminPanel.tsx
+++ b/internal/vibe-tests/AdminPanel.tsx
@@ -4,7 +4,7 @@
import {useState} from 'react';
import {XDSTheme} from '@astryxdesign/core';
-import {defaultTheme} from '@astryxdesign/theme/default';
+import {neutralTheme} from '@astryxdesign/theme/neutral';
import {XDSAppShell} from '@astryxdesign/core/AppShell';
import {XDSTopNav, XDSTopNavHeading} from '@astryxdesign/core/TopNav';
import {
@@ -40,7 +40,7 @@ export default function AdminPanel() {
const [isSideNavCollapsed, setIsSideNavCollapsed] = useState(false);
return (
- <XDSTheme theme={defaultTheme}>
+ <XDSTheme theme={neutralTheme}>
<XDSAppShell
topNav={
<XDSTopNav
diff --git a/internal/vibe-tests/app/src/preview.tsx b/internal/vibe-tests/app/src/preview.tsx
index 86ad5626e0..4cebdd158a 100644
--- a/internal/vibe-tests/app/src/preview.tsx
+++ b/internal/vibe-tests/app/src/preview.tsx
@@ -2,7 +2,7 @@
import React, {Suspense, lazy} from 'react';
import {XDSTheme} from '@astryxdesign/core/theme';
-import {defaultTheme} from '@astryxdesign/theme/default';
+import {neutralTheme} from '@astryxdesign/theme/neutral';
import '@astryxdesign/core/reset.css';
import '../tailwind.css';
@@ -24,7 +24,7 @@ export default function Preview({theme}: {theme: string}) {
}
return (
- <XDSTheme theme={defaultTheme} mode={theme === 'dark' ? 'dark' : 'light'}>
+ <XDSTheme theme={neutralTheme} mode={theme === 'dark' ? 'dark' : 'light'}>
<Suspense fallback={<div>Loading...</div>}>
<Component />
</Suspense>
diff --git a/internal/vibe-tests/app/src/report/Report.tsx b/internal/vibe-tests/app/src/report/Report.tsx
index 29a4af3350..63566b3979 100644
--- a/internal/vibe-tests/app/src/report/Report.tsx
+++ b/internal/vibe-tests/app/src/report/Report.tsx
@@ -10,7 +10,7 @@ import {XDSTabList} from '@astryxdesign/core/TabList';
import {XDSTab} from '@astryxdesign/core/TabList';
import {XDSCard} from '@astryxdesign/core/Card';
import {XDSButton} from '@astryxdesign/core/Button';
-import {defaultTheme} from '@astryxdesign/theme-default';
+import {neutralTheme} from '@astryxdesign/theme-neutral';
import type {ReportData} from './types';
import {ALL_DIMENSIONS, DIMENSION_LABELS} from './utils';
import {ScoreCard} from './ScoreCard';
@@ -181,7 +181,7 @@ export function Report() {
if (!data) {
return (
- <XDSTheme theme={defaultTheme} mode={themeMode}>
+ <XDSTheme theme={neutralTheme} mode={themeMode}>
<div className="report-root">
<div className="report-container">
<div className="report-emptyState">
@@ -202,7 +202,7 @@ export function Report() {
const {universal, comparison, screenshots} = data;
return (
- <XDSTheme theme={defaultTheme} mode={themeMode}>
+ <XDSTheme theme={neutralTheme} mode={themeMode}>
<div className="report-root">
<div className="report-container">
<XDSVStack gap={5}>
diff --git a/internal/vibe-tests/app/vite.config.preview.ts b/internal/vibe-tests/app/vite.config.preview.ts
index 9be3ad6697..9f7820bf98 100644
--- a/internal/vibe-tests/app/vite.config.preview.ts
+++ b/internal/vibe-tests/app/vite.config.preview.ts
@@ -70,14 +70,6 @@ export default defineConfig({
'packages/core/src/theme/tokens.stylex.ts',
),
'@astryxdesign/core': path.resolve(repoRoot, 'packages/core/src'),
- '@astryxdesign/theme-default': path.resolve(
- repoRoot,
- 'packages/themes/default/src/source.ts',
- ),
- '@astryxdesign/theme/default': path.resolve(
- repoRoot,
- 'packages/themes/default/src/source.ts',
- ),
'@astryxdesign/theme-neutral': path.resolve(
repoRoot,
'packages/themes/neutral/src',
diff --git a/internal/vibe-tests/app/vite.config.report.ts b/internal/vibe-tests/app/vite.config.report.ts
index 8f4961ca7c..81b2fb324a 100644
--- a/internal/vibe-tests/app/vite.config.report.ts
+++ b/internal/vibe-tests/app/vite.config.report.ts
@@ -13,7 +13,7 @@ const repoRoot = path.resolve(__dirname, '../../..');
* Vite config for building reports ONLY — no StyleX plugin required.
*
* Reports use pre-compiled CSS from @astryxdesign/core/dist/astryx.css and
- * @astryxdesign/theme-default/dist/theme.css. XDS component JS is loaded from
+ * @astryxdesign/theme-neutral/dist/theme.css. XDS component JS is loaded from
* the built dist (which has stylex.create already compiled away by tsup).
* Report-specific styles live in plain CSS (report.css).
*
@@ -65,7 +65,7 @@ export default defineConfig({
find: 'xds-theme-css',
replacement: path.resolve(
repoRoot,
- 'packages/themes/default/dist/theme.css',
+ 'packages/themes/neutral/dist/theme.css',
),
},
// Core CSS files live in src/
@@ -85,12 +85,12 @@ export default defineConfig({
},
// Theme: resolve to source (no StyleX usage, just defineTheme + icons).
{
- find: '@astryxdesign/theme-default',
- replacement: path.resolve(repoRoot, 'packages/themes/default/src/source.ts'),
+ find: '@astryxdesign/theme-neutral',
+ replacement: path.resolve(repoRoot, 'packages/themes/neutral/src/source.ts'),
},
{
- find: '@astryxdesign/theme/default',
- replacement: path.resolve(repoRoot, 'packages/themes/default/src/source.ts'),
+ find: '@astryxdesign/theme/neutral',
+ replacement: path.resolve(repoRoot, 'packages/themes/neutral/src/source.ts'),
},
],
},
diff --git a/internal/vibe-tests/app/vite.config.ts b/internal/vibe-tests/app/vite.config.ts
index 83023385d2..bf8b1c5c8b 100644
--- a/internal/vibe-tests/app/vite.config.ts
+++ b/internal/vibe-tests/app/vite.config.ts
@@ -60,14 +60,6 @@ export default defineConfig({
'packages/core/src/theme/tokens.stylex.ts',
),
'@astryxdesign/core': path.resolve(repoRoot, 'packages/core/src'),
- '@astryxdesign/theme-default': path.resolve(
- repoRoot,
- 'packages/themes/default/src/source.ts',
- ),
- '@astryxdesign/theme/default': path.resolve(
- repoRoot,
- 'packages/themes/default/src/source.ts',
- ),
'@astryxdesign/theme-neutral': path.resolve(
repoRoot,
'packages/themes/neutral/src',
diff --git a/internal/vibe-tests/environments/project-astryx/package.json b/internal/vibe-tests/environments/project-astryx/package.json
index 7e66154d65..bfd2cb450e 100644
--- a/internal/vibe-tests/environments/project-astryx/package.json
+++ b/internal/vibe-tests/environments/project-astryx/package.json
@@ -3,7 +3,7 @@
"private": true,
"dependencies": {
"@astryxdesign/core": "*",
- "@astryxdesign/theme-default": "*",
+ "@astryxdesign/theme-neutral": "*",
"@stylexjs/stylex": "^0.10",
"react": "^19",
"react-dom": "^19"
diff --git a/internal/vibe-tests/environments/project-xds-tailwind/globals.css b/internal/vibe-tests/environments/project-xds-tailwind/globals.css
index 63a872ab2b..fe9002cb62 100644
--- a/internal/vibe-tests/environments/project-xds-tailwind/globals.css
+++ b/internal/vibe-tests/environments/project-xds-tailwind/globals.css
@@ -6,6 +6,6 @@
@import "tailwindcss/preflight.css" layer(base);
@import "@astryxdesign/core/reset.css";
@import "@astryxdesign/core/astryx.css";
-@import "@astryxdesign/theme-default/theme.css";
+@import "@astryxdesign/theme-neutral/theme.css";
@import "@astryxdesign/core/tailwind-theme.css";
@import "tailwindcss/utilities.css" layer(utilities);
diff --git a/internal/vibe-tests/environments/project-xds-tailwind/package.json b/internal/vibe-tests/environments/project-xds-tailwind/package.json
index e00463c894..50f2f657d6 100644
--- a/internal/vibe-tests/environments/project-xds-tailwind/package.json
+++ b/internal/vibe-tests/environments/project-xds-tailwind/package.json
@@ -3,7 +3,7 @@
"private": true,
"dependencies": {
"@astryxdesign/core": "*",
- "@astryxdesign/theme-default": "*",
+ "@astryxdesign/theme-neutral": "*",
"react": "^19",
"react-dom": "^19",
"tailwindcss": "^4"
diff --git a/internal/vibe-tests/environments/project-xds/package.json b/internal/vibe-tests/environments/project-xds/package.json
index 7e66154d65..bfd2cb450e 100644
--- a/internal/vibe-tests/environments/project-xds/package.json
+++ b/internal/vibe-tests/environments/project-xds/package.json
@@ -3,7 +3,7 @@
"private": true,
"dependencies": {
"@astryxdesign/core": "*",
- "@astryxdesign/theme-default": "*",
+ "@astryxdesign/theme-neutral": "*",
"@stylexjs/stylex": "^0.10",
"react": "^19",
"react-dom": "^19"
diff --git a/internal/vibe-tests/scripts/smoke-test.sh b/internal/vibe-tests/scripts/smoke-test.sh
index 4fd2a480b7..64812d4b40 100644
--- a/internal/vibe-tests/scripts/smoke-test.sh
+++ b/internal/vibe-tests/scripts/smoke-test.sh
@@ -303,7 +303,7 @@ if [ -n "$ITER_ID" ] && [ -n "${ITER_ID2:-}" ]; then
PASS=$((PASS + 1))
else
# Check if this is the known vite theme alias bug (pre-existing, not our fault)
- if echo "$REPORT_OUTPUT" | grep -q "EISDIR\|themes/default/src"; then
+ if echo "$REPORT_OUTPUT" | grep -q "EISDIR\|themes/neutral/src"; then
echo -e " ${YELLOW}⊘${NC} pnpm report:build skipped (known vite theme alias issue — not related to scoring)"
SKIP=$((SKIP + 1))
else
diff --git a/internal/vibe-tests/src/build-previews.ts b/internal/vibe-tests/src/build-previews.ts
index e6e7dd7c11..ec207d6a97 100644
--- a/internal/vibe-tests/src/build-previews.ts
+++ b/internal/vibe-tests/src/build-previews.ts
@@ -165,12 +165,12 @@ function createEntryFile(
import {createRoot} from 'react-dom/client';
import '@astryxdesign/core/reset.css';${tailwindImport}
import {XDSTheme} from '@astryxdesign/core/theme';
-import {defaultTheme} from '@astryxdesign/theme/default';
+import {neutralTheme} from '@astryxdesign/theme/neutral';
import Component from '${componentPath.replace(/\\/g, '/')}';
function App() {
return (
- <XDSTheme theme={defaultTheme} mode="light">
+ <XDSTheme theme={neutralTheme} mode="light">
<Component />
</XDSTheme>
);
@@ -383,9 +383,6 @@ import {viteSingleFile} from 'vite-plugin-singlefile';`;
'@astryxdesign/core': '${path
.resolve(REPO_ROOT, 'packages/core/src')
.replace(/\\/g, '/')}',
- '@astryxdesign/theme/default': '${path
- .resolve(REPO_ROOT, 'packages/themes/default/src/source.ts')
- .replace(/\\/g, '/')}',
'@astryxdesign/theme/neutral': '${path
.resolve(REPO_ROOT, 'packages/themes/neutral/src/source.ts')
.replace(/\\/g, '/')}',
diff --git a/internal/vibe-tests/src/build-report.ts b/internal/vibe-tests/src/build-report.ts
index 6f26225ee4..36b37c368d 100644
--- a/internal/vibe-tests/src/build-report.ts
+++ b/internal/vibe-tests/src/build-report.ts
@@ -29,7 +29,7 @@ const REPO_ROOT = path.join(import.meta.dirname, '../../..');
*
* The report build uses pre-compiled CSS from:
* - packages/core/dist/astryx.css (component styles)
- * - packages/themes/default/dist/theme.css (theme tokens)
+ * - packages/themes/neutral/dist/theme.css (theme tokens)
*
* These are generated by `pnpm build` but may not exist if the repo
* was freshly cloned or only `pnpm install` was run.
@@ -38,7 +38,7 @@ function ensureCssDist(): void {
const astryxCss = path.join(REPO_ROOT, 'packages/core/dist/astryx.css');
const themeCss = path.join(
REPO_ROOT,
- 'packages/themes/default/dist/theme.css',
+ 'packages/themes/neutral/dist/theme.css',
);
const missing: string[] = [];
@@ -46,7 +46,7 @@ function ensureCssDist(): void {
missing.push('@astryxdesign/core/dist/astryx.css');
}
if (!fs.existsSync(themeCss)) {
- missing.push('@astryxdesign/theme-default/dist/theme.css');
+ missing.push('@astryxdesign/theme-neutral/dist/theme.css');
}
if (missing.length > 0) {
@@ -63,7 +63,7 @@ function ensureCssDist(): void {
// Build theme packages
if (!fs.existsSync(themeCss)) {
- execSync('pnpm -F @astryxdesign/theme-default build', {
+ execSync('pnpm -F @astryxdesign/theme-neutral build', {
cwd: REPO_ROOT,
stdio: 'inherit',
});
diff --git a/internal/vibe-tests/src/setup-environment.mjs b/internal/vibe-tests/src/setup-environment.mjs
index 3a625102e9..852119d589 100644
--- a/internal/vibe-tests/src/setup-environment.mjs
+++ b/internal/vibe-tests/src/setup-environment.mjs
@@ -71,9 +71,9 @@ export function createAgentProject(target, iterDir, promptId) {
const cliLink = path.join(projectDir, 'node_modules', '@astryxdesign', 'cli');
fs.symlinkSync(path.join(REPO_ROOT, 'packages', 'cli'), cliLink, 'dir');
- // Symlink node_modules/@astryxdesign/theme-default → packages/themes/default
- const themeDefaultLink = path.join(projectDir, 'node_modules', '@astryxdesign', 'theme-default');
- fs.symlinkSync(path.join(REPO_ROOT, 'packages', 'themes', 'default'), themeDefaultLink, 'dir');
+ // Symlink node_modules/@astryxdesign/theme-neutral → packages/themes/neutral
+ const themeNeutralLink = path.join(projectDir, 'node_modules', '@astryxdesign', 'theme-neutral');
+ fs.symlinkSync(path.join(REPO_ROOT, 'packages', 'themes', 'neutral'), themeNeutralLink, 'dir');
// Symlink node_modules/.bin/astryx → cli bin so npx astryx works
const binDir = path.join(projectDir, 'node_modules', '.bin');
diff --git a/internal/vibe-tests/test-sets/default.json b/internal/vibe-tests/test-sets/default.json
index 7c28892810..6c226c8932 100644
--- a/internal/vibe-tests/test-sets/default.json
+++ b/internal/vibe-tests/test-sets/default.json
@@ -330,10 +330,10 @@
{
"id": "ps-2",
"category": "page-setup",
- "prompt": "Set up the root layout for a new internal tool. Include proper body styling, theme provider with defaultTheme, and a layout with header and main content area.",
+ "prompt": "Set up the root layout for a new internal tool. Include proper body styling, theme provider with neutralTheme, and a layout with header and main content area.",
"expectedComponents": [
"Theme",
- "defaultTheme",
+ "neutralTheme",
"XDSLayout",
"XDSLayoutHeader",
"XDSLayoutContent"
diff --git a/internal/vibe-tests/tsconfig.xds.json b/internal/vibe-tests/tsconfig.xds.json
index 12aad8e06e..3dc89cde37 100644
--- a/internal/vibe-tests/tsconfig.xds.json
+++ b/internal/vibe-tests/tsconfig.xds.json
@@ -9,7 +9,7 @@
"paths": {
"@astryxdesign/core": ["../../packages/core/src"],
"@astryxdesign/core/*": ["../../packages/core/src/*"],
- "@astryxdesign/theme/default": ["../../packages/themes/default/src/source.ts"],
+ "@astryxdesign/theme/neutral": ["../../packages/themes/neutral/src/source.ts"],
"@stylexjs/stylex": ["../../node_modules/@stylexjs/stylex"]
}
},
diff --git a/package.json b/package.json
index 3a90e1dcff..3200d8e1ea 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"private": true,
"license": "MIT",
"scripts": {
- "build": "pnpm -F @astryxdesign/build build && pnpm -F @astryxdesign/core build && pnpm -F @astryxdesign/vega build && pnpm -F @astryxdesign/theme-default build && pnpm -F @astryxdesign/theme-neutral build && pnpm -F @astryxdesign/theme-brutalist build && pnpm -F @astryxdesign/theme-daily build && pnpm -F @astryxdesign/theme-matcha build && pnpm -F @astryxdesign/theme-stone build && pnpm -F @astryxdesign/theme-gothic build && pnpm -F @astryxdesign/theme-chocolate build && pnpm -F @astryxdesign/theme-y2k build && pnpm -F @astryxdesign/theme-butter build",
+ "build": "pnpm -F @astryxdesign/build build && pnpm -F @astryxdesign/core build && pnpm -F @astryxdesign/vega build && pnpm -F @astryxdesign/theme-neutral build && pnpm -F @astryxdesign/theme-matcha build && pnpm -F @astryxdesign/theme-stone build && pnpm -F @astryxdesign/theme-gothic build && pnpm -F @astryxdesign/theme-chocolate build && pnpm -F @astryxdesign/theme-y2k build && pnpm -F @astryxdesign/theme-butter build",
"dev": "pnpm -F @astryxdesign/storybook dev",
"test": "vitest run",
"test:watch": "vitest",
diff --git a/packages/build/README.md b/packages/build/README.md
index 89772f72fb..7792fa9aa3 100644
--- a/packages/build/README.md
+++ b/packages/build/README.md
@@ -100,7 +100,7 @@ module.exports = {
```js
const nextConfig = {
- transpilePackages: ['@astryxdesign/core', '@astryxdesign/theme-default'],
+ transpilePackages: ['@astryxdesign/core', '@astryxdesign/theme-neutral'],
webpack: config => {
// Resolve to source TypeScript instead of dist
config.resolve.conditionNames = ['source', 'import', 'require', 'default'];
@@ -124,7 +124,7 @@ export default nextConfig;
```css
@import './layers.css';
@import '@astryxdesign/core/reset.css';
-@import '@astryxdesign/theme-default/theme.css';
+@import '@astryxdesign/theme-neutral/theme.css';
@stylex;
```
@@ -168,7 +168,7 @@ export default defineConfig({
},
},
optimizeDeps: {
- exclude: ['@astryxdesign/core', '@astryxdesign/theme-default'],
+ exclude: ['@astryxdesign/core', '@astryxdesign/theme-neutral'],
},
});
```
diff --git a/packages/build/src/next.js b/packages/build/src/next.js
index 2d9a9b5fc8..d4f205fafa 100644
--- a/packages/build/src/next.js
+++ b/packages/build/src/next.js
@@ -22,10 +22,7 @@
function withXDS(nextConfig = {}) {
const xdsPackages = [
'@astryxdesign/core',
- '@astryxdesign/theme-default',
'@astryxdesign/theme-neutral',
- '@astryxdesign/theme-brutalist',
- '@astryxdesign/theme-daily',
'@astryxdesign/lab',
];
diff --git a/packages/cli/README.md b/packages/cli/README.md
index a7d1f589d0..0d4e21bfbd 100644
--- a/packages/cli/README.md
+++ b/packages/cli/README.md
@@ -341,7 +341,7 @@ astryx doctor — diagnosing your setup
@astryxdesign/core v0.0.14 is in step with @astryxdesign/cli v0.0.14.
⚠ Theme packages
No @astryxdesign/theme-* packages are installed.
- → fix: Install a theme, e.g. `npm install @astryxdesign/theme-default`, then import its CSS or set xds.theme.
+ → fix: Install a theme, e.g. `npm install @astryxdesign/theme-neutral`, then import its CSS or set xds.theme.
ℹ astryx.config.mjs
No astryx.config.mjs found — using defaults.
ℹ AI agent docs
diff --git a/packages/cli/package.json b/packages/cli/package.json
index b90907ba66..a323da9f48 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -60,7 +60,6 @@
"peerDependencies": {
"@astryxdesign/core": "*",
"@astryxdesign/lab": "*",
- "@astryxdesign/theme-default": "*",
"@astryxdesign/theme-neutral": "*"
},
"peerDependenciesMeta": {
@@ -70,9 +69,6 @@
"@astryxdesign/lab": {
"optional": true
},
- "@astryxdesign/theme-default": {
- "optional": true
- },
"@astryxdesign/theme-neutral": {
"optional": true
}
@@ -80,7 +76,6 @@
"devDependencies": {
"@astryxdesign/core": "*",
"@astryxdesign/lab": "*",
- "@astryxdesign/theme-default": "*",
"@astryxdesign/theme-neutral": "*"
}
}
diff --git a/packages/cli/src/api/doctor.mjs b/packages/cli/src/api/doctor.mjs
index bdd08be277..2ac88dbcda 100644
--- a/packages/cli/src/api/doctor.mjs
+++ b/packages/cli/src/api/doctor.mjs
@@ -240,7 +240,7 @@ export function checkThemes(ctx) {
label: 'Theme packages',
status: 'warn',
message: 'No @astryxdesign/theme-* packages are installed.',
- fix: 'Install a theme, e.g. `npm install @astryxdesign/theme-default`, then import its CSS or set xds.theme.',
+ fix: 'Install a theme, e.g. `npm install @astryxdesign/theme-neutral`, then import its CSS or set xds.theme.',
};
}
diff --git a/packages/cli/src/commands/doctor.test.mjs b/packages/cli/src/commands/doctor.test.mjs
index 3aebf6d6a6..798df77697 100644
--- a/packages/cli/src/commands/doctor.test.mjs
+++ b/packages/cli/src/commands/doctor.test.mjs
@@ -106,14 +106,14 @@ describe('doctor — individual checks', () => {
});
it('themes: WARN when theme installed but not wired', () => {
- installPkg('@astryxdesign/theme-default', '0.0.14');
+ installPkg('@astryxdesign/theme-neutral', '0.0.14');
const res = checkThemes({cwd: tmpDir, configTheme: null});
expect(res.status).toBe('warn');
- expect(res.message).toContain('@astryxdesign/theme-default');
+ expect(res.message).toContain('@astryxdesign/theme-neutral');
});
it('themes: PASS when theme installed and wired via config', () => {
- installPkg('@astryxdesign/theme-default', '0.0.14');
+ installPkg('@astryxdesign/theme-neutral', '0.0.14');
const res = checkThemes({cwd: tmpDir, configTheme: 'default'});
expect(res.status).toBe('pass');
});
diff --git a/packages/cli/src/commands/init.mjs b/packages/cli/src/commands/init.mjs
index ba7f67cf98..1755640709 100644
--- a/packages/cli/src/commands/init.mjs
+++ b/packages/cli/src/commands/init.mjs
@@ -246,8 +246,8 @@ export function registerInit(program) {
humanLog(' Next steps:');
humanLog(" 1. Import components: import { Button } from '@astryxdesign/core'");
humanLog(' 2. Optionally add a theme:');
- humanLog(" import { defaultTheme } from '@astryxdesign/theme-default'");
- humanLog(' <Theme theme={defaultTheme}>...</Theme>');
+ humanLog(" import { neutralTheme } from '@astryxdesign/theme-neutral'");
+ humanLog(' <Theme theme={neutralTheme}>...</Theme>');
humanLog(` 3. ${run} xds --help for all commands`);
humanLog('');
});
diff --git a/packages/core/README.md b/packages/core/README.md
index 6c0afc6c9d..38869c8f95 100644
--- a/packages/core/README.md
+++ b/packages/core/README.md
@@ -51,9 +51,7 @@ npx astryx gap-report # report a missing capability
| Package | Description |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| [`@astryxdesign/cli`](https://github.com/facebook/astryx/tree/main/packages/cli) | CLI tooling: component docs, templates, scaffolding, codemods |
-| [`@astryxdesign/theme-default`](https://github.com/facebook/astryx/tree/main/packages/themes/default) | Default theme (Heroicons) |
| [`@astryxdesign/theme-neutral`](https://github.com/facebook/astryx/tree/main/packages/themes/neutral) | Muted, minimal theme (Lucide icons) |
-| [`@astryxdesign/theme-daily`](https://github.com/facebook/astryx/tree/main/packages/themes/daily) | Warm, productivity-focused theme (Lucide icons) |
## Resources
@@ -67,7 +65,7 @@ npx astryx gap-report # report a missing capability
Install XDS and a theme:
```bash
-npm install @astryxdesign/core @astryxdesign/theme-default
+npm install @astryxdesign/core @astryxdesign/theme-neutral
```
Then pick your setup below based on your framework and styling approach.
@@ -85,7 +83,7 @@ No build plugins needed; XDS ships pre-built CSS that works alongside Tailwind.
@import 'tailwindcss/preflight.css' layer(base);
@import '@astryxdesign/core/reset.css';
@import '@astryxdesign/core/astryx.css';
-@import '@astryxdesign/theme-default/theme.css';
+@import '@astryxdesign/theme-neutral/theme.css';
@import '@astryxdesign/core/tailwind-theme.css';
@import 'tailwindcss/utilities.css' layer(utilities);
```
@@ -122,11 +120,11 @@ Spacing references `var(--spacing-1)` as the base unit, so `p-4` = 16px, matchin
import Link from 'next/link';
import {Theme} from '@astryxdesign/core/theme';
import {LinkProvider} from '@astryxdesign/core/Link';
-import {defaultTheme} from '@astryxdesign/theme-default/built';
+import {neutralTheme} from '@astryxdesign/theme-neutral/built';
export function Providers({children}: {children: React.ReactNode}) {
return (
- <Theme theme={defaultTheme}>
+ <Theme theme={neutralTheme}>
<LinkProvider component={Link}>{children}</LinkProvider>
</Theme>
);
@@ -165,7 +163,7 @@ export default function Page() {
Use the pre-built dist alongside StyleX for your own styles.
```bash
-npm install @astryxdesign/core @astryxdesign/theme-default
+npm install @astryxdesign/core @astryxdesign/theme-neutral
```
**`src/app/globals.css`**
@@ -173,15 +171,15 @@ npm install @astryxdesign/core @astryxdesign/theme-default
```css
@import '@astryxdesign/core/reset.css';
@import '@astryxdesign/core/astryx.css';
-@import '@astryxdesign/theme-default/theme.css';
+@import '@astryxdesign/theme-neutral/theme.css';
```
-Providers and layout are the same as the Tailwind example (use `@astryxdesign/theme-default/built`).
+Providers and layout are the same as the Tailwind example (use `@astryxdesign/theme-neutral/built`).
### Vite
```bash
-npm install @astryxdesign/core @astryxdesign/theme-default
+npm install @astryxdesign/core @astryxdesign/theme-neutral
```
Same CSS imports and providers as above. No build plugins needed; XDS ships pre-built.
diff --git a/packages/core/src/reset.css b/packages/core/src/reset.css
index 238610d85f..8dde7f9558 100644
--- a/packages/core/src/reset.css
+++ b/packages/core/src/reset.css
@@ -23,7 +23,7 @@
* 2. Combine with base styles and theme:
* import '@astryxdesign/core/reset.css'; // @layer reset — clean slate
* import '@astryxdesign/core/astryx.css'; // @layer astryx-base — component styles
- * import '@astryxdesign/theme-default/theme.css'; // @layer astryx-theme — theme overrides
+ * import '@astryxdesign/theme-neutral/theme.css'; // @layer astryx-theme — theme overrides
*
* Layer order: reset → astryx-base → astryx-theme
* Consumer styles (unlayered) always override all Astryx layers.
diff --git a/packages/core/src/tailwind-theme.css b/packages/core/src/tailwind-theme.css
index ed6f7dc0e3..34027e7dcf 100644
--- a/packages/core/src/tailwind-theme.css
+++ b/packages/core/src/tailwind-theme.css
@@ -20,7 +20,7 @@
* @import "tailwindcss/preflight.css" layer(base);
* @import "@astryxdesign/core/reset.css";
* @import "@astryxdesign/core/astryx.css";
- * @import "@astryxdesign/theme-default/theme.css";
+ * @import "@astryxdesign/theme-neutral/theme.css";
* @import "@astryxdesign/core/tailwind-theme.css";
* @import "tailwindcss/utilities.css" layer(utilities);
*
diff --git a/packages/core/src/theme/defineTheme.ts b/packages/core/src/theme/defineTheme.ts
index 22e914824b..7c3813596c 100644
--- a/packages/core/src/theme/defineTheme.ts
+++ b/packages/core/src/theme/defineTheme.ts
@@ -173,11 +173,11 @@ export interface DefineThemeInput {
*
* @example
* ```tsx
- * import {defaultTheme} from '@astryxdesign/theme-default';
+ * import {neutralTheme} from '@astryxdesign/theme-neutral';
*
* const myTheme = defineTheme({
* name: 'my-brand',
- * extends: defaultTheme,
+ * extends: neutralTheme,
* icons: myIcons,
* tokens: { '--color-accent': '#FF0000' },
* });
diff --git a/packages/core/src/theme/index.ts b/packages/core/src/theme/index.ts
index 667020027a..b86c88416c 100644
--- a/packages/core/src/theme/index.ts
+++ b/packages/core/src/theme/index.ts
@@ -11,7 +11,7 @@
* - Token exports for direct use in StyleX
*
* Themes are in separate packages:
- * import { defaultTheme } from '@astryxdesign/theme-default';
+ * import { neutralTheme } from '@astryxdesign/theme-neutral';
* import { neutralTheme } from '@astryxdesign/theme-neutral';
*/
diff --git a/packages/lab/src/Chart/getChartColors.ts b/packages/lab/src/Chart/getChartColors.ts
index 038c85536f..01c3f845bf 100644
--- a/packages/lab/src/Chart/getChartColors.ts
+++ b/packages/lab/src/Chart/getChartColors.ts
@@ -216,8 +216,8 @@ export function getChartColorsFromResolver(
*
* @example
* ```
- * import { defaultTheme } from '@astryxdesign/theme-default';
- * const colors = getChartColors(defaultTheme, 'light');
+ * import { neutralTheme } from '@astryxdesign/theme-neutral';
+ * const colors = getChartColors(neutralTheme, 'light');
* colors.categorical(5)
* ```
*/
diff --git a/packages/themes/brutalist/CHANGELOG.md b/packages/themes/brutalist/CHANGELOG.md
deleted file mode 100644
index 18f985dda9..0000000000
--- a/packages/themes/brutalist/CHANGELOG.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# @xds/theme-brutalist
-
-# 0.0.15
-
-#### Changes
-
-- Tracks `@xds/[email protected]` (bare-name migration + data-attribute selector surface).
-
-# 0.0.13
-
-#### Changes
-
-- Derived var expansion — CSS properties to internal vars (#1467)
-- `expandColorScale` support — derive color tokens from accent hex (#1452)
-
-#### Patch Changes
-
-- Aligned version with other packages
-
----
-
-# 0.0.5
-
-#### Patch Changes
-
-- Aligned version with other packages
-
----
-
-# 0.0.4
-
-#### Minor Changes
-
-- Initial release — brutalist theme with zero radius, monospace typography, heavy borders
-- Added to Storybook (#560)
diff --git a/packages/themes/brutalist/README.md b/packages/themes/brutalist/README.md
deleted file mode 100644
index 1d69dc30fa..0000000000
--- a/packages/themes/brutalist/README.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# @astryxdesign/theme-brutalist
-
-Zero radius, monospace, heavy borders.
-> **Note:** This theme is private and not published to npm.
-## Install
-
-```bash
-npm install @astryxdesign/theme-brutalist
-```
-
-## Usage
-
-Wrap your app with `XDSTheme` and pass the theme:
-
-```tsx
-import {XDSTheme} from '@astryxdesign/core/theme';
-import {brutalistTheme} from '@astryxdesign/theme-brutalist/built';
-
-function App() {
- return (
- <XDSTheme theme={brutalistTheme}>
- {/* your app */}
- </XDSTheme>
- );
-}
-```
-
-### Import paths
-
-| Path | Use case |
-|------|----------|
-| `@astryxdesign/theme-brutalist` | Source build (StyleX compilation via `@astryxdesign/build`) |
-| `@astryxdesign/theme-brutalist/built` | Pre-built dist (Tailwind, plain CSS, or no build step) |
-| `@astryxdesign/theme-brutalist/theme.css` | Pre-built CSS file (import in your stylesheet) |
-
-If you're using `@astryxdesign/build` for StyleX source compilation, import from the bare path. Otherwise, use `/built`.
-
-### CSS import
-
-Add the theme CSS to your stylesheet:
-
-```css
-@import "@astryxdesign/theme-brutalist/theme.css";
-```
-
-This is required for component-level theme overrides (colors, radii, typography) to take effect.
-
-## Related Packages
-
-| Package | Description |
-|---------|-------------|
-| [`@astryxdesign/core`](https://github.com/facebook/astryx/tree/main/packages/core) | Core components and theme system |
-| [`@astryxdesign/build`](https://github.com/facebook/astryx/tree/main/packages/build) | Build plugins for StyleX source builds |
-| [`@astryxdesign/cli`](https://github.com/facebook/astryx/tree/main/packages/cli) | CLI tooling including `astryx docs theme` |
diff --git a/packages/themes/brutalist/package.json b/packages/themes/brutalist/package.json
deleted file mode 100644
index ee02c0600f..0000000000
--- a/packages/themes/brutalist/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "name": "@astryxdesign/theme-brutalist",
- "version": "0.0.15",
- "private": true,
- "description": "Brutalist theme for Astryx — zero radius, monospace, heavy borders",
- "author": "Meta Open Source",
- "license": "MIT",
- "homepage": "https://github.com/facebook/astryx#readme",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/facebook/astryx.git",
- "directory": "packages/themes/brutalist"
- },
- "bugs": {
- "url": "https://github.com/facebook/astryx/issues"
- },
- "keywords": [
- "xds",
- "theme",
- "brutalist",
- "design-system",
- "design-tokens"
- ],
- "sideEffects": false,
- "main": "./dist/source.js",
- "module": "./dist/source.mjs",
- "types": "./dist/source.d.ts",
- "exports": {
- ".": {
- "types": "./dist/source.d.ts",
- "import": "./dist/source.mjs",
- "require": "./dist/source.js"
- },
- "./built": {
- "types": "./dist/brutalist.d.ts",
- "import": "./dist/brutalist.js",
- "require": "./dist/brutalist.js"
- },
- "./theme.css": {
- "types": "./theme.css.d.ts",
- "default": "./dist/theme.css"
- }
- },
- "files": [
- "dist",
- "src"
- ],
- "scripts": {
- "build": "astryx theme build src/brutalistTheme.ts -o dist/theme.css && tsup && tsc --project tsconfig.build.json"
- },
- "peerDependencies": {
- "@astryxdesign/core": "0.0.15"
- },
- "devDependencies": {
- "@astryxdesign/cli": "0.0.15"
- }
-}
diff --git a/packages/themes/brutalist/src/brutalistTheme.ts b/packages/themes/brutalist/src/brutalistTheme.ts
deleted file mode 100644
index ad5a2e1a48..0000000000
--- a/packages/themes/brutalist/src/brutalistTheme.ts
+++ /dev/null
@@ -1,122 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-/**
- * Brutalist theme for Astryx
- *
- * Zero radius, monospace everything, hot pink accent, heavy borders.
- * Demonstrates the full power of defineTheme: typography roles,
- * component-level style overrides, and variant targeting.
- */
-
-import {defineTheme} from '@astryxdesign/core/theme';
-
-export const brutalistTheme = defineTheme({
- name: 'brutalist',
-
- // Hot pink accent — derives accent, background, text, border tokens via HCT
- color: {accent: '#FF1493'},
-
- // Monospace everything — body sets Courier, heading inherits
- typography: {
- body: {family: 'Courier New', fallbacks: '"Courier", monospace'},
- },
-
- // Zero radius everywhere — multiplier 0 makes all scalable radii 0px
- radius: {base: 4, multiplier: 0},
-
- // Motion: near-instant — brutalism doesn't wait.
- // Produces: fast-min=50ms, fast=65ms, fast-max=85ms,
- // medium-min=115ms, medium=150ms, medium-max=200ms.
- // Linear easing — no curves, no polish, just movement.
- motion: {fast: 65, medium: 150, slow: 350, ratio: 0.75, easing: 'linear'},
-
- tokens: {
- // Contrast on hot pink accent — white in both modes
- '--color-on-accent': ['#FFFFFF', '#FFFFFF'],
- '--color-on-success': ['#FFFFFF', '#FFFFFF'],
- '--color-on-error': ['#FFFFFF', '#FFFFFF'],
- '--color-on-warning': ['#000000', '#000000'],
- '--color-on-light': ['#000000', '#000000'],
- '--color-on-dark': ['#FFFFFF', '#FFFFFF'],
-
- // Even pills are sharp in brutalist
- '--radius-full': '0px',
- },
- components: {
- // Custom banner status — danger
- banner: {
- 'status:danger': {
- backgroundColor: '#FF0000',
- color: '#FFFFFF',
- fontWeight: '900',
- textTransform: 'uppercase',
- },
- },
- // Cards get heavy borders + explicit padding via derived expansion
- card: {
- base: {
- borderWidth: '3px',
- borderStyle: 'solid',
- borderColor: 'var(--color-text-primary)',
- padding: '24px',
- },
- },
- // Dropdown menus: sharp corners + tight padding via derived expansion
- 'dropdown-menu': {
- base: {
- borderRadius: '0px',
- padding: '4px',
- borderWidth: '2px',
- borderStyle: 'solid',
- borderColor: 'var(--color-text-primary)',
- },
- },
- // Buttons are loud — 9999px radius override tests layer ordering.
- // Everything else in brutalist is 0px radius, but buttons are
- // deliberately pill-shaped. If this override works without !important,
- // CSS layers are doing their job.
- // (same pattern that needed !important in Meta theme #692)
- button: {
- base: {
- borderRadius: '9999px',
- textTransform: 'uppercase',
- letterSpacing: '0.1em',
- fontWeight: '800',
- },
- 'variant:ghost': {
- borderWidth: '2px',
- borderStyle: 'solid',
- borderColor: 'var(--color-text-primary)',
- },
- },
- // Badges are blocky
- badge: {
- base: {
- fontWeight: '900',
- textTransform: 'uppercase',
- letterSpacing: '0.05em',
- },
- },
- // Dividers are thick
- divider: {
- base: {
- borderTopWidth: '3px',
- borderTopColor: 'var(--color-text-primary)',
- },
- },
- // Headings are aggressive
- heading: {
- base: {
- textTransform: 'uppercase',
- letterSpacing: '0.05em',
- },
- },
- // Code gets a background
- text: {
- 'type:code': {
- backgroundColor: 'var(--color-background-body)',
- padding: '2px 4px',
- },
- },
- },
-});
diff --git a/packages/themes/brutalist/src/source.ts b/packages/themes/brutalist/src/source.ts
deleted file mode 100644
index d9efc23d0c..0000000000
--- a/packages/themes/brutalist/src/source.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-export {brutalistTheme} from './brutalistTheme';
diff --git a/packages/themes/brutalist/theme.css.d.ts b/packages/themes/brutalist/theme.css.d.ts
deleted file mode 100644
index e976d8c27c..0000000000
--- a/packages/themes/brutalist/theme.css.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-export {};
diff --git a/packages/themes/brutalist/tsconfig.build.json b/packages/themes/brutalist/tsconfig.build.json
deleted file mode 100644
index 03d4647cd5..0000000000
--- a/packages/themes/brutalist/tsconfig.build.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "extends": "../../../tsconfig.json",
- "compilerOptions": {
- "outDir": "./dist",
- "rootDir": "./src",
- "noEmit": false,
- "declaration": true,
- "emitDeclarationOnly": true
- },
- "include": [
- "src"
- ]
-}
diff --git a/packages/themes/brutalist/tsup.config.ts b/packages/themes/brutalist/tsup.config.ts
deleted file mode 100644
index 7b9ec1af1b..0000000000
--- a/packages/themes/brutalist/tsup.config.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-import {defineConfig} from 'tsup';
-
-export default defineConfig({
- entry: ['src/source.ts'],
- format: ['cjs', 'esm'],
- dts: false,
- clean: false, // Don't clean — astryx theme build already put theme files in dist/
- external: ['@astryxdesign/core', 'react'],
-});
diff --git a/packages/themes/daily/CHANGELOG.md b/packages/themes/daily/CHANGELOG.md
deleted file mode 100644
index 8819ff4de9..0000000000
--- a/packages/themes/daily/CHANGELOG.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# @xds/theme-daily
-
-# 0.0.15
-
-#### Changes
-
-- Tracks `@xds/[email protected]` (bare-name migration + data-attribute selector surface).
-
-# 0.0.13
-
-#### Changes
-
-- Fleshed out with complete token set and component overrides (#1802)
-
-#### Patch Changes
-
-- Updated dependencies
diff --git a/packages/themes/daily/README.md b/packages/themes/daily/README.md
deleted file mode 100644
index e464933818..0000000000
--- a/packages/themes/daily/README.md
+++ /dev/null
@@ -1,74 +0,0 @@
-# @astryxdesign/theme-daily
-
-Warm, productivity-focused theme. Uses [Lucide](https://lucide.dev) icons.
-
-## Install
-
-```bash
-npm install @astryxdesign/theme-daily
-```
-
-## Usage
-
-Wrap your app with `XDSTheme` and pass the theme:
-
-```tsx
-import {XDSTheme} from '@astryxdesign/core/theme';
-import {dailyTheme} from '@astryxdesign/theme-daily/built';
-
-function App() {
- return <XDSTheme theme={dailyTheme}>{/* your app */}</XDSTheme>;
-}
-```
-
-### Import paths
-
-| Path | Use case |
-| ---------------------------- | ------------------------------------------------------ |
-| `@astryxdesign/theme-daily` | Source build (StyleX compilation via `@astryxdesign/build`) |
-| `@astryxdesign/theme-daily/built` | Pre-built dist (Tailwind, plain CSS, or no build step) |
-| `@astryxdesign/theme-daily/theme.css` | Pre-built CSS file (import in your stylesheet) |
-
-If you're using `@astryxdesign/build` for StyleX source compilation, import from the bare path. Otherwise, use `/built`.
-
-### CSS import
-
-Add the theme CSS to your stylesheet:
-
-```css
-@import '@astryxdesign/theme-daily/theme.css';
-```
-
-This is required for component-level theme overrides (colors, radii, typography) to take effect.
-
-## Fonts
-
-This theme uses custom typefaces:
-
-| Role | Font |
-| ------- | -------------- |
-| Body | Figtree |
-| Heading | PT Serif |
-| Code | JetBrains Mono |
-
-**These fonts must be loaded separately.** The theme references them by name but does not bundle the font files.
-
-Add this to your HTML `<head>`:
-
-```html
-<link rel="preconnect" href="https://fonts.googleapis.com" />
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
-<link
- rel="stylesheet"
- href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=PT+Serif:wght@400;700&display=swap" />
-```
-
-Without this, the theme falls back to system fonts.
-
-## Related Packages
-
-| Package | Description |
-| ------------------------------------------------------------------------------------ | -------------------------------------- |
-| [`@astryxdesign/core`](https://github.com/facebook/astryx/tree/main/packages/core) | Core components and theme system |
-| [`@astryxdesign/build`](https://github.com/facebook/astryx/tree/main/packages/build) | Build plugins for StyleX source builds |
-| [`@astryxdesign/cli`](https://github.com/facebook/astryx/tree/main/packages/cli) | CLI tooling including `astryx docs theme` |
diff --git a/packages/themes/daily/package.json b/packages/themes/daily/package.json
deleted file mode 100644
index 52dea99c0b..0000000000
--- a/packages/themes/daily/package.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "name": "@astryxdesign/theme-daily",
- "version": "0.0.15",
- "private": false,
- "description": "Daily theme for Astryx — warm, productivity-focused palette with Lucide icon set",
- "author": "Meta Open Source",
- "license": "MIT",
- "homepage": "https://github.com/facebook/astryx#readme",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/facebook/astryx.git",
- "directory": "packages/themes/daily"
- },
- "bugs": {
- "url": "https://github.com/facebook/astryx/issues"
- },
- "keywords": [
- "xds",
- "theme",
- "design-system",
- "lucide",
- "design-tokens"
- ],
- "sideEffects": false,
- "main": "./dist/source.js",
- "types": "./dist/source.d.ts",
- "exports": {
- ".": {
- "types": "./dist/source.d.ts",
- "import": "./dist/source.mjs",
- "require": "./dist/source.js"
- },
- "./built": {
- "types": "./dist/daily.d.ts",
- "import": "./dist/daily.js",
- "require": "./dist/daily.js"
- },
- "./theme.css": {
- "types": "./theme.css.d.ts",
- "default": "./dist/theme.css"
- }
- },
- "files": [
- "dist",
- "src"
- ],
- "scripts": {
- "build": "astryx theme build src/dailyTheme.ts -o dist/theme.css && tsup && tsc --project tsconfig.build.json"
- },
- "dependencies": {
- "lucide-react": "^1.18.0"
- },
- "peerDependencies": {
- "@astryxdesign/core": "0.0.15",
- "react": ">=19"
- },
- "devDependencies": {
- "@astryxdesign/cli": "0.0.15"
- },
- "module": "./dist/source.mjs"
-}
diff --git a/packages/themes/daily/src/dailyTheme.ts b/packages/themes/daily/src/dailyTheme.ts
deleted file mode 100644
index da53f8d732..0000000000
--- a/packages/themes/daily/src/dailyTheme.ts
+++ /dev/null
@@ -1,318 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-/**
- * Astryx Theme
- *
- * A warm, productivity-focused theme with earthy cream tones.
- * Core palette: #292724, #85817A, #E6E3DE, #F8F4ED, #FFFFFF
- * Uses PT Serif italic for display text and Figtree for headings/body.
- */
-
-import {defineTheme, defineSyntaxTheme} from '@astryxdesign/core/theme';
-import {dailyIconRegistry} from './icons';
-
-/** Astryx syntax palette — warm, muted tones to match the earthy aesthetic. */
-const dailySyntax = defineSyntaxTheme({
- name: 'xds-daily',
- tokens: {
- keyword: ['#7c5e3a', '#c4a882'],
- string: ['#2e6b4a', '#7bc49e'],
- comment: ['#85817A', '#85817A'],
- number: ['#a16830', '#d4a06a'],
- function: ['#3a5e8c', '#7ba8d4'],
- type: ['#6b4a8c', '#b08ed4'],
- variable: ['#292724', '#E6E3DE'],
- operator: ['#85817A', '#a19d96'],
- constant: ['#a16830', '#d4a06a'],
- tag: ['#b5463a', '#e08a82'],
- attribute: ['#8c6b30', '#d4b870'],
- property: ['#3a7c6b', '#70c4b0'],
- punctuation: ['#85817A', '#5c5955'],
- background: ['#F8F4ED', '#1a1917'],
- },
-});
-
-export const dailyTheme = defineTheme({
- name: 'daily',
-
- typography: {
- scale: {base: 16, ratio: 1.25},
- body: {
- family: 'Figtree',
- fallbacks:
- '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
- },
- heading: {
- family: 'Figtree',
- fallbacks:
- '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
- weights: {3: 'bold', 4: 'bold'},
- },
- code: {
- family: 'JetBrains Mono',
- fallbacks: '"SF Mono", Monaco, Consolas, monospace',
- },
- },
-
- motion: {fast: 150, medium: 350, slow: 800, ratio: 0.75},
-
- syntax: dailySyntax,
-
- tokens: {
- // =========================================================================
- // Colors — warm astryx palette
- // Core: #292724, #85817A, #E6E3DE, #F8F4ED, #FFFFFF
- // =========================================================================
-
- // Core semantic
- '--color-accent': ['#292724', '#F8F4ED'],
- '--color-accent-muted': ['#1779FA40', '#1779FA40'],
- '--color-neutral': ['#2927240F', '#F8F4ED1A'],
- '--color-background-surface': ['#FFFFFF', '#1a1917'],
- '--color-background-body': ['#F8F4ED', '#121110'],
- '--color-overlay': ['#29272480', '#292724CC'],
- '--color-overlay-hover': ['#2927240D', '#F8F4ED0D'],
- '--color-overlay-pressed': ['#2927241A', '#F8F4ED1A'],
- '--color-background-muted': ['#E6E3DE', '#292724'],
-
- // Text
- '--color-text-primary': ['#292724', '#F8F4ED'],
- '--color-text-secondary': ['#85817A', '#a19d96'],
- '--color-text-disabled': ['#c9c6c1', '#5c5955'],
- '--color-text-accent': ['#292724', '#F8F4ED'],
- '--color-on-dark': '#FFFFFF',
- '--color-on-light': '#292724',
- '--color-on-accent': ['#FFFFFF', '#292724'],
- '--color-on-success': ['#FFFFFF', '#292724'],
- '--color-on-error': ['#FFFFFF', '#292724'],
- '--color-on-warning': ['#292724', '#292724'],
-
- // Icon
- '--color-icon-accent': ['#292724', '#F8F4ED'],
- '--color-icon-primary': ['#292724', '#F8F4ED'],
- '--color-icon-secondary': ['#85817A', '#a19d96'],
- '--color-icon-disabled': ['#c9c6c1', '#5c5955'],
-
- // Surface variants
- '--color-background-card': ['#FFFFFF', '#1e1d1b'],
- '--color-background-popover': ['#FFFFFF', '#292724'],
- '--color-background-inverted': ['#292724', '#F8F4ED'],
-
- // Status / Sentiment
- '--color-success': ['#009936', '#34c265'],
- '--color-success-muted': ['#00993640', '#34c26540'],
- '--color-error': ['#FD0000', '#ff5c5c'],
- '--color-error-muted': ['#FD000040', '#ff5c5c40'],
- '--color-warning': ['#F8C722', '#ffd94d'],
- '--color-warning-muted': ['#F8C72240', '#ffd94d40'],
-
- // Border
- '--color-border': ['#E6E3DE', '#F8F4ED1A'],
- '--color-border-emphasized': ['#85817A', '#5c5955'],
-
- // Effects
- '--color-skeleton': ['#E6E3DE', '#5c5955'],
- '--color-shadow': ['#2927241A', '#0000004D'],
- '--color-tint-hover': ['black', 'white'],
-
- // Categorical — Blue
- '--color-background-blue': ['#cee5ff', '#002840'],
- '--color-border-blue': ['#192973', '#BBDBFE'],
- '--color-icon-blue': ['#192973', '#BBDBFE'],
- '--color-text-blue': ['#192973', '#aacaec'],
-
- // Categorical — Cyan
- '--color-background-cyan': ['#b4ecf9', '#002a32'],
- '--color-border-cyan': ['#003C4F', '#ACE3F0'],
- '--color-icon-cyan': ['#003C4F', '#ACE3F0'],
- '--color-text-cyan': ['#003C4F', '#99cfdc'],
-
- // Categorical — Gray
- '--color-background-gray': ['#85817A33', '#5c595533'],
- '--color-border-gray': ['#85817A', '#85817A'],
- '--color-icon-gray': ['#85817A', '#a19d96'],
- '--color-text-gray': ['#292724', '#F8F4ED'],
-
- // Categorical — Green
- '--color-background-green': ['#c8ecc8', '#002d08'],
- '--color-border-green': ['#006410', '#C0E3C0'],
- '--color-icon-green': ['#006410', '#C0E3C0'],
- '--color-text-green': ['#006410', '#adcfad'],
-
- // Categorical — Orange
- '--color-background-orange': ['#ffdcc5', '#3d1e00'],
- '--color-border-orange': ['#590801', '#F8CEB2'],
- '--color-icon-orange': ['#590801', '#F8CEB2'],
- '--color-text-orange': ['#590801', '#e8bea3'],
-
- // Categorical — Pink
- '--color-background-pink': ['#ffd8e6', '#4f032c'],
- '--color-border-pink': ['#8E2149', '#F9C8DA'],
- '--color-icon-pink': ['#8E2149', '#F9C8DA'],
- '--color-text-pink': ['#8E2149', '#eab9cb'],
-
- // Categorical — Purple
- '--color-background-purple': ['#f7d8ff', '#3d114d'],
- '--color-border-purple': ['#6A218E', '#EACBF2'],
- '--color-icon-purple': ['#6A218E', '#EACBF2'],
- '--color-text-purple': ['#6A218E', '#dbbce3'],
-
- // Categorical — Red
- '--color-background-red': ['#ffdad8', '#500713'],
- '--color-border-red': ['#A1211D', '#FDC9C7'],
- '--color-icon-red': ['#A1211D', '#FDC9C7'],
- '--color-text-red': ['#A1211D', '#edbab8'],
-
- // Categorical — Teal
- '--color-background-teal': ['#b5eee1', '#002c25'],
- '--color-border-teal': ['#0D4C3E', '#ADE6D9'],
- '--color-icon-teal': ['#0D4C3E', '#ADE6D9'],
- '--color-text-teal': ['#0D4C3E', '#99d2c5'],
-
- // Categorical — Yellow
- '--color-background-yellow': ['#fbe098', '#2e2500'],
- '--color-border-yellow': ['#634F19', '#FDE29A'],
- '--color-icon-yellow': ['#634F19', '#FDE29A'],
- '--color-text-yellow': ['#634F19', '#dec47e'],
-
- // =========================================================================
- // Spacing
- // =========================================================================
- '--spacing-0-5': '3px',
- '--spacing-1': '6px',
- '--spacing-1-5': '9px',
- '--spacing-2': '12px',
- '--spacing-3': '18px',
- '--spacing-4': '24px',
- '--spacing-5': '30px',
- '--spacing-6': '36px',
- '--spacing-7': '42px',
- '--spacing-8': '48px',
- '--spacing-9': '54px',
- '--spacing-10': '60px',
- '--spacing-11': '66px',
- '--spacing-12': '72px',
-
- // =========================================================================
- // Radius — clean and rounded
- // =========================================================================
- '--radius-inner': '6px',
- '--radius-element': '12px',
- '--radius-container': '18px',
- '--radius-page': '42px',
-
- // =========================================================================
- // Font sizes
- // =========================================================================
- '--font-size-4xs': '0.3125rem',
- '--font-size-sm': '0.8125rem',
- '--font-size-base': '1rem',
- '--font-size-lg': '1.25rem',
- '--font-size-xl': '1.5625rem',
- '--font-size-2xl': '1.9375rem',
- '--font-size-3xl': '2.4375rem',
- '--font-size-4xl': '3.0625rem',
- '--font-size-5xl': '3.8125rem',
-
- // =========================================================================
- // Element sizes
- // =========================================================================
- '--size-element-sm': '34px',
- '--size-element-md': '40px',
- '--size-element-lg': '46px',
-
- // =========================================================================
- // Shadows
- // =========================================================================
- '--shadow-low': '0 2px 4px #2927240D, 0 4px 8px #2927241A',
- '--shadow-med': '0 2px 4px #2927240D, 0 4px 12px #2927241A',
- '--shadow-high': '0 4px 6px #2927241A, 0 12px 24px #29272426',
- '--shadow-inset-hover': 'inset 0px 0px 0px 2px #29272430',
- '--shadow-inset-selected': 'inset 0px 0px 0px 2px #29272450',
- '--shadow-inset-success': 'inset 0px 0px 0px 2px #00993650',
- '--shadow-inset-warning': 'inset 0px 0px 0px 2px #FFB60050',
- '--shadow-inset-error': 'inset 0px 0px 0px 2px #FD000050',
- },
-
- components: {
- button: {
- base: {
- borderRadius: 'var(--radius-full)',
- },
- 'variant:primary': {
- backgroundColor: '#292724',
- color: '#FFFFFF',
- },
- 'variant:secondary': {
- backgroundColor: '#E6E3DE',
- color: '#292724',
- },
- },
-
- // Info badge uses blue instead of the theme accent
- badge: {
- 'variant:info': {
- backgroundColor: '#1779FA',
- color: '#FFFFFF',
- },
- },
-
- // Banner text uses semantic colors for each status
- banner: {
- 'status:info': {
- '--color-text-primary': 'light-dark(#1779FA, #79b8ff)',
- '--color-text-secondary': 'light-dark(#1779FA, #79b8ff)',
- },
- 'status:success': {
- '--color-text-primary': 'light-dark(#009936, #34c265)',
- '--color-text-secondary': 'light-dark(#009936, #34c265)',
- },
- 'status:error': {
- '--color-text-primary': 'light-dark(#FD0000, #ff5c5c)',
- '--color-text-secondary': 'light-dark(#FD0000, #ff5c5c)',
- },
- 'status:warning': {
- '--color-text-primary': 'light-dark(#9a7800, #ffd94d)',
- '--color-text-secondary': 'light-dark(#9a7800, #ffd94d)',
- },
- },
-
- // Info banner icon uses blue — override --color-accent so the
- // child XDSIcon (which reads var(--color-accent)) picks it up
- 'banner-icon': {
- 'status:info': {
- '--color-accent': '#1779FA',
- },
- },
-
- // Display text uses PT Serif italic — the signature editorial display face
- text: {
- 'type:display-1': {
- fontFamily: '"PT Serif", Georgia, "Times New Roman", Times, serif',
- fontStyle: 'italic',
- },
- 'type:display-2': {
- fontFamily: '"PT Serif", Georgia, "Times New Roman", Times, serif',
- fontStyle: 'italic',
- },
- 'type:display-3': {
- fontFamily: '"PT Serif", Georgia, "Times New Roman", Times, serif',
- fontStyle: 'italic',
- },
- },
-
- card: {
- base: {
- padding: 'var(--spacing-3)',
- },
- },
-
- section: {
- base: {
- padding: 'var(--spacing-3)',
- },
- },
- },
-
- icons: dailyIconRegistry,
-});
diff --git a/packages/themes/daily/src/icons.tsx b/packages/themes/daily/src/icons.tsx
deleted file mode 100644
index 9ab0d42bb6..0000000000
--- a/packages/themes/daily/src/icons.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-import React from 'react';
-import type {IconRegistry} from '@astryxdesign/core/Icon';
-
-import {
- X,
- ChevronDown,
- ChevronLeft,
- ChevronRight,
- Check,
- CheckCircle,
- XCircle,
- AlertTriangle,
- Info,
- Calendar,
- Clock,
- ExternalLink,
- Menu,
- MoreHorizontal,
- Search,
- ArrowUp,
- ArrowDown,
- ArrowUpDown,
- Filter,
- EyeOff,
- Columns,
- Copy,
- CheckCheck,
- Wrench,
- Square,
- Mic,
-} from 'lucide-react';
-
-const iconProps = {
- size: '1em',
- 'aria-hidden': true as const,
-};
-
-export const dailyIconRegistry: IconRegistry = {
- close: <X {...iconProps} />,
- chevronDown: <ChevronDown {...iconProps} />,
- chevronLeft: <ChevronLeft {...iconProps} />,
- chevronRight: <ChevronRight {...iconProps} />,
- check: <Check {...iconProps} />,
- success: <CheckCircle {...iconProps} />,
- error: <XCircle {...iconProps} />,
- warning: <AlertTriangle {...iconProps} />,
- info: <Info {...iconProps} />,
- calendar: <Calendar {...iconProps} />,
- clock: <Clock {...iconProps} />,
- externalLink: <ExternalLink {...iconProps} />,
- menu: <Menu {...iconProps} />,
- moreHorizontal: <MoreHorizontal {...iconProps} />,
- search: <Search {...iconProps} />,
- arrowUp: <ArrowUp {...iconProps} />,
- arrowDown: <ArrowDown {...iconProps} />,
- arrowsUpDown: <ArrowUpDown {...iconProps} />,
- funnel: <Filter {...iconProps} />,
- eyeSlash: <EyeOff {...iconProps} />,
- viewColumns: <Columns {...iconProps} />,
- copy: <Copy {...iconProps} />,
- checkDouble: <CheckCheck {...iconProps} />,
- wrench: <Wrench {...iconProps} />,
- stop: <Square {...iconProps} />,
- microphone: <Mic {...iconProps} />,
-};
diff --git a/packages/themes/daily/src/source.ts b/packages/themes/daily/src/source.ts
deleted file mode 100644
index 56e920c955..0000000000
--- a/packages/themes/daily/src/source.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-export {dailyTheme} from './dailyTheme';
-export {dailyIconRegistry} from './icons';
diff --git a/packages/themes/daily/theme.css.d.ts b/packages/themes/daily/theme.css.d.ts
deleted file mode 100644
index e976d8c27c..0000000000
--- a/packages/themes/daily/theme.css.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-export {};
diff --git a/packages/themes/daily/tsconfig.build.json b/packages/themes/daily/tsconfig.build.json
deleted file mode 100644
index 03d4647cd5..0000000000
--- a/packages/themes/daily/tsconfig.build.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "extends": "../../../tsconfig.json",
- "compilerOptions": {
- "outDir": "./dist",
- "rootDir": "./src",
- "noEmit": false,
- "declaration": true,
- "emitDeclarationOnly": true
- },
- "include": [
- "src"
- ]
-}
diff --git a/packages/themes/daily/tsup.config.ts b/packages/themes/daily/tsup.config.ts
deleted file mode 100644
index c08a781f88..0000000000
--- a/packages/themes/daily/tsup.config.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-import {defineConfig} from 'tsup';
-
-export default defineConfig({
- entry: ['src/source.ts', 'src/icons.tsx'],
- format: ['cjs', 'esm'],
- dts: false,
- clean: false, // Don't clean — astryx theme build already put theme files in dist/
- external: ['@astryxdesign/core', 'react', 'lucide-react'],
-});
diff --git a/packages/themes/default/CHANGELOG.md b/packages/themes/default/CHANGELOG.md
deleted file mode 100644
index 6e6adcedfa..0000000000
--- a/packages/themes/default/CHANGELOG.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# @xds/theme-default
-
-# 0.0.15
-
-#### Changes
-
-- Tracks `@xds/[email protected]` — components now also emit `data-*` attributes (e.g. `data-level`, `data-type`) alongside legacy class selectors, giving theme override rules a stable selector surface.
-
-# 0.0.13
-
-#### Changes
-
-- Icon renames: `checkCircle`/`xCircle` → `success`/`error` (#1503)
-
-#### Patch Changes
-
-- Updated dependencies
-
----
-
-# 0.0.5
-
-#### Changes
-
-- Updated token names to match naming audit (shadow, radius, elevation renames)
-- Motion token primitives: duration and easing values
-- Dynamic radius and type scale support via `defineTheme` config
-
-#### Patch Changes
-
-- Updated dependencies
-
----
-
-# 0.0.4
-
-#### Patch Changes
-
-- Updated dependencies — aligned with @xds/[email protected]
-
----
-
-# 0.0.3
-
-#### Patch Changes
-
-- Fix theme package to produce proper JS/TS module output via tsup (#541)
-
----
-
-# 0.0.2
-
-#### Changes
-
-- Migrated to CSS-based theming with `defineTheme()`
-
----
-
-# 0.0.1
-
-- Initial release — default theme with Heroicons
diff --git a/packages/themes/default/README.md b/packages/themes/default/README.md
deleted file mode 100644
index 9ac4bddcdb..0000000000
--- a/packages/themes/default/README.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# @astryxdesign/theme-default
-
-Clean, professional default theme. Uses [Heroicons](https://heroicons.com) icons.
-
-## Install
-
-```bash
-npm install @astryxdesign/theme-default
-```
-
-## Usage
-
-Wrap your app with `XDSTheme` and pass the theme:
-
-```tsx
-import {XDSTheme} from '@astryxdesign/core/theme';
-import {defaultTheme} from '@astryxdesign/theme-default/built';
-
-function App() {
- return (
- <XDSTheme theme={defaultTheme}>
- {/* your app */}
- </XDSTheme>
- );
-}
-```
-
-### Import paths
-
-| Path | Use case |
-|------|----------|
-| `@astryxdesign/theme-default` | Source build (StyleX compilation via `@astryxdesign/build`) |
-| `@astryxdesign/theme-default/built` | Pre-built dist (Tailwind, plain CSS, or no build step) |
-| `@astryxdesign/theme-default/theme.css` | Pre-built CSS file (import in your stylesheet) |
-
-If you're using `@astryxdesign/build` for StyleX source compilation, import from the bare path. Otherwise, use `/built`.
-
-### CSS import
-
-Add the theme CSS to your stylesheet:
-
-```css
-@import "@astryxdesign/theme-default/theme.css";
-```
-
-This is required for component-level theme overrides (colors, radii, typography) to take effect.
-
-## Related Packages
-
-| Package | Description |
-|---------|-------------|
-| [`@astryxdesign/core`](https://github.com/facebook/astryx/tree/main/packages/core) | Core components and theme system |
-| [`@astryxdesign/build`](https://github.com/facebook/astryx/tree/main/packages/build) | Build plugins for StyleX source builds |
-| [`@astryxdesign/cli`](https://github.com/facebook/astryx/tree/main/packages/cli) | CLI tooling including `astryx docs theme` |
diff --git a/packages/themes/default/package.json b/packages/themes/default/package.json
deleted file mode 100644
index 1ff69f381c..0000000000
--- a/packages/themes/default/package.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "name": "@astryxdesign/theme-default",
- "version": "0.0.15",
- "displayName": "Default Theme",
- "private": false,
- "description": "Clean neutrals with a blue accent. The safe, professional starting point for any product.",
- "author": "Meta Open Source",
- "license": "MIT",
- "homepage": "https://github.com/facebook/astryx#readme",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/facebook/astryx.git",
- "directory": "packages/themes/default"
- },
- "bugs": {
- "url": "https://github.com/facebook/astryx/issues"
- },
- "keywords": [
- "xds",
- "theme",
- "design-system",
- "heroicons",
- "design-tokens"
- ],
- "sideEffects": false,
- "main": "./dist/source.js",
- "types": "./dist/source.d.ts",
- "exports": {
- ".": {
- "types": "./dist/source.d.ts",
- "import": "./dist/source.mjs",
- "require": "./dist/source.js"
- },
- "./built": {
- "types": "./dist/default.d.ts",
- "import": "./dist/default.js",
- "require": "./dist/default.js"
- },
- "./theme.css": {
- "types": "./theme.css.d.ts",
- "default": "./dist/theme.css"
- }
- },
- "files": [
- "dist",
- "src"
- ],
- "scripts": {
- "build": "astryx theme build src/defaultTheme.ts -o dist/theme.css && tsup && tsc --project tsconfig.build.json"
- },
- "dependencies": {
- "@heroicons/react": "^2.2.0"
- },
- "peerDependencies": {
- "@astryxdesign/core": "0.0.15",
- "react": ">=19"
- },
- "devDependencies": {
- "@astryxdesign/cli": "0.0.15"
- },
- "module": "./dist/source.mjs"
-}
diff --git a/packages/themes/default/src/defaultTheme.ts b/packages/themes/default/src/defaultTheme.ts
deleted file mode 100644
index 70069ff2bc..0000000000
--- a/packages/themes/default/src/defaultTheme.ts
+++ /dev/null
@@ -1,108 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-/**
- * Astryx Default Theme
- *
- * The reference theme — provides the standard Astryx visual language.
- * Uses defineTheme for CSS-based theming (no StyleX build required for consumers).
- *
- * Typography sizing is driven by typography.scale, which auto-generates both
- * the token values (--text-heading-1-size, --text-body-size, etc.) and the
- * component override rules (currently legacy class selectors such as
- * .xds-heading.level-1 { font-size: ... }; components also emit matching
- * data-level/data-type attributes for the selector migration).
- *
- * Only non-typography component overrides need to be specified manually.
- */
-
-import {defineTheme, defineSyntaxTheme} from '@astryxdesign/core/theme';
-import {defaultIconRegistry} from './icons';
-
-/**
- * Default syntax palette — GitHub Light (light) + GitHub Dark (dark).
- *
- * Color values sourced from the GitHub VS Code theme by the Primer team.
- * Original theme: https://github.com/primer/github-vscode-theme (MIT license).
- */
-const defaultSyntax = defineSyntaxTheme({
- name: 'xds-default',
- tokens: {
- keyword: ['#cf222e', '#ff7b72'],
- string: ['#0a3069', '#a5d6ff'],
- comment: ['#6e7781', '#8b949e'],
- number: ['#0550ae', '#79c0ff'],
- function: ['#8250df', '#d2a8ff'],
- type: ['#953800', '#ffa657'],
- variable: ['#24292f', '#e6edf3'],
- operator: ['#cf222e', '#ff7b72'],
- constant: ['#0550ae', '#79c0ff'],
- tag: ['#116329', '#7ee787'],
- attribute: ['#0550ae', '#79c0ff'],
- property: ['#0550ae', '#79c0ff'],
- punctuation: ['#24292f', '#c9d1d9'],
- background: ['#ffffff', '#0d1117'],
- },
-});
-
-export const defaultTheme = defineTheme({
- name: 'default',
-
- // Typography: base=14px, ratio=1.2, h4 anchored to base.
- // Generates all heading + text tokens AND component overrides automatically.
- typography: {scale: {base: 14, ratio: 1.2}},
-
- // Motion: base durations from Ted's proposal (#674), ratio=0.75.
- // Generates: fast-min=130ms, fast=175ms, fast-max=235ms,
- // medium-min=310ms, medium=410ms, medium-max=545ms.
- motion: {fast: 175, medium: 410, slow: 975, ratio: 0.75},
-
- // Syntax highlighting — tuned to the default palette
- syntax: defaultSyntax,
-
- // The default theme uses the built-in token defaults from tokens.stylex.ts.
- tokens: {},
-
- components: {
- // =========================================================================
- // Button
- // =========================================================================
- button: {
- 'variant:secondary': {
- backgroundColor:
- 'light-dark(rgba(5, 54, 89, 0.1), rgba(223, 226, 229, 0.2))',
- },
- },
-
- // Heading and text component overrides are auto-generated by typography.scale.
- // No manual heading: { ... } or text: { ... } blocks needed.
- },
-
- // =========================================================================
- // On-media overrides
- // =========================================================================
- // Customize how components look on inverted surfaces (e.g. dark toast on
- // a light page). color-scheme + base token overrides are provided by
- // default; these add component-level adjustments.
-
- onDark: {
- components: {
- button: {
- 'variant:secondary': {
- backgroundColor: 'color-mix(in srgb, white 20%, transparent)',
- },
- },
- },
- },
-
- onLight: {
- components: {
- button: {
- 'variant:secondary': {
- backgroundColor: 'color-mix(in srgb, black 10%, transparent)',
- },
- },
- },
- },
-
- icons: defaultIconRegistry,
-});
diff --git a/packages/themes/default/src/icons.tsx b/packages/themes/default/src/icons.tsx
deleted file mode 100644
index ddf2e3b75c..0000000000
--- a/packages/themes/default/src/icons.tsx
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-/**
- * @file icons.tsx
- * @input Uses @heroicons/react outline and solid icon components, IconRegistry type
- * @output Exports defaultIconRegistry for the default theme
- * @position Icon configuration for the default theme; consumed by index.ts
- *
- * Maps semantic icon names to Heroicons components.
- * These icons are bundled with the theme, not with @astryxdesign/core.
- */
-
-import React from 'react';
-import type {IconRegistry} from '@astryxdesign/core/Icon';
-
-import {
- XMarkIcon,
- ChevronDownIcon,
- ChevronLeftIcon,
- ChevronRightIcon,
- CheckIcon,
- CalendarDaysIcon,
- ClockIcon,
- InformationCircleIcon,
- Bars3Icon,
- EllipsisHorizontalIcon,
- MagnifyingGlassIcon,
- ArrowUpIcon,
- ArrowDownIcon,
- ArrowsUpDownIcon,
- FunnelIcon,
- EyeSlashIcon,
- ViewColumnsIcon,
- ClipboardDocumentIcon,
- WrenchIcon,
- MicrophoneIcon,
-} from '@heroicons/react/24/outline';
-
-import {
- CheckCircleIcon,
- XCircleIcon,
- ExclamationTriangleIcon,
- ArrowTopRightOnSquareIcon,
- StopIcon,
-} from '@heroicons/react/24/solid';
-
-const iconProps = {
- width: '1em',
- height: '1em',
- 'aria-hidden': true as const,
-};
-
-export const defaultIconRegistry: IconRegistry = {
- close: <XMarkIcon {...iconProps} />,
- chevronDown: <ChevronDownIcon {...iconProps} />,
- chevronLeft: <ChevronLeftIcon {...iconProps} />,
- chevronRight: <ChevronRightIcon {...iconProps} />,
- check: <CheckIcon {...iconProps} />,
- success: <CheckCircleIcon {...iconProps} />,
- error: <XCircleIcon {...iconProps} />,
- warning: <ExclamationTriangleIcon {...iconProps} />,
- info: <InformationCircleIcon {...iconProps} />,
- calendar: <CalendarDaysIcon {...iconProps} />,
- clock: <ClockIcon {...iconProps} />,
- externalLink: <ArrowTopRightOnSquareIcon {...iconProps} />,
- menu: <Bars3Icon {...iconProps} />,
- moreHorizontal: <EllipsisHorizontalIcon {...iconProps} />,
- search: <MagnifyingGlassIcon {...iconProps} />,
- arrowUp: <ArrowUpIcon {...iconProps} />,
- arrowDown: <ArrowDownIcon {...iconProps} />,
- arrowsUpDown: <ArrowsUpDownIcon {...iconProps} />,
- funnel: <FunnelIcon {...iconProps} />,
- eyeSlash: <EyeSlashIcon {...iconProps} />,
- viewColumns: <ViewColumnsIcon {...iconProps} />,
- copy: <ClipboardDocumentIcon {...iconProps} />,
- checkDouble: <CheckIcon {...iconProps} />,
- wrench: <WrenchIcon {...iconProps} />,
- stop: <StopIcon {...iconProps} />,
- microphone: <MicrophoneIcon {...iconProps} />,
-};
diff --git a/packages/themes/default/src/source.ts b/packages/themes/default/src/source.ts
deleted file mode 100644
index 64bc4849c7..0000000000
--- a/packages/themes/default/src/source.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-export {defaultTheme} from './defaultTheme';
-export {defaultIconRegistry} from './icons';
diff --git a/packages/themes/default/theme.css.d.ts b/packages/themes/default/theme.css.d.ts
deleted file mode 100644
index e976d8c27c..0000000000
--- a/packages/themes/default/theme.css.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-export {};
diff --git a/packages/themes/default/tsconfig.build.json b/packages/themes/default/tsconfig.build.json
deleted file mode 100644
index 03d4647cd5..0000000000
--- a/packages/themes/default/tsconfig.build.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "extends": "../../../tsconfig.json",
- "compilerOptions": {
- "outDir": "./dist",
- "rootDir": "./src",
- "noEmit": false,
- "declaration": true,
- "emitDeclarationOnly": true
- },
- "include": [
- "src"
- ]
-}
diff --git a/packages/themes/default/tsup.config.ts b/packages/themes/default/tsup.config.ts
deleted file mode 100644
index e4fafe2b41..0000000000
--- a/packages/themes/default/tsup.config.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// Copyright (c) Meta Platforms, Inc. and affiliates.
-
-import {defineConfig} from 'tsup';
-
-export default defineConfig({
- entry: ['src/source.ts', 'src/icons.tsx'],
- format: ['cjs', 'esm'],
- dts: false,
- clean: false, // Don't clean — astryx theme build already put theme files in dist/
- external: ['@astryxdesign/core', 'react', '@heroicons/react'],
-});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e8c810cfed..953a348f3d 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -104,9 +104,6 @@ importers:
'@astryxdesign/theme-butter':
specifier: '*'
version: link:../../packages/themes/butter
- '@astryxdesign/theme-default':
- specifier: '*'
- version: link:../../packages/themes/default
'@astryxdesign/theme-gothic':
specifier: '*'
version: link:../../packages/themes/gothic
@@ -201,9 +198,9 @@ importers:
'@astryxdesign/core':
specifier: '*'
version: link:../../packages/core
- '@astryxdesign/theme-default':
+ '@astryxdesign/theme-neutral':
specifier: '*'
- version: link:../../packages/themes/default
+ version: link:../../packages/themes/neutral
next:
specifier: ^15.5.16
@@ -229,9 +226,9 @@ importers:
'@astryxdesign/core':
specifier: '*'
version: link:../../packages/core
- '@astryxdesign/theme-default':
+ '@astryxdesign/theme-neutral':
specifier: '*'
- version: link:../../packages/themes/default
+ version: link:../../packages/themes/neutral
'@stylexjs/stylex':
specifier: ^0.18.3
version: 0.18.3
@@ -278,9 +275,9 @@ importers:
'@astryxdesign/core':
specifier: '*'
version: link:../../packages/core
- '@astryxdesign/theme-default':
+ '@astryxdesign/theme-neutral':
specifier: '*'
- version: link:../../packages/themes/default
+ version: link:../../packages/themes/neutral
'@stylexjs/stylex':
specifier: ^0.18.3
version: 0.18.3
@@ -324,9 +321,9 @@ importers:
'@astryxdesign/core':
specifier: '*'
version: link:../../packages/core
- '@astryxdesign/theme-default':
+ '@astryxdesign/theme-neutral':
specifier: '*'
- version: link:../../packages/themes/default
+ version: link:../../packages/themes/neutral
next:
specifier: ^15.5.16
@@ -358,9 +355,9 @@ importers:
'@astryxdesign/core':
specifier: '*'
version: link:../../packages/core
- '@astryxdesign/theme-default':
+ '@astryxdesign/theme-neutral':
specifier: '*'
- version: link:../../packages/themes/default
+ version: link:../../packages/themes/neutral
'@stylexjs/stylex':
specifier: ^0.18.3
version: 0.18.3
@@ -401,9 +398,9 @@ importers:
'@astryxdesign/core':
specifier: '*'
version: link:../../packages/core
- '@astryxdesign/theme-default':
+ '@astryxdesign/theme-neutral':
specifier: '*'
- version: link:../../packages/themes/default
+ version: link:../../packages/themes/neutral
react:
specifier: ^19.2.7
version: 19.2.7
@@ -444,21 +441,12 @@ importers:
'@astryxdesign/lab':
specifier: '*'
version: link:../../packages/lab
- '@astryxdesign/theme-brutalist':
- specifier: '*'
- version: link:../../packages/themes/brutalist
'@astryxdesign/theme-butter':
specifier: '*'
version: link:../../packages/themes/butter
'@astryxdesign/theme-chocolate':
specifier: '*'
version: link:../../packages/themes/chocolate
- '@astryxdesign/theme-daily':
- specifier: '*'
- version: link:../../packages/themes/daily
- '@astryxdesign/theme-default':
- specifier: '*'
- version: link:../../packages/themes/default
'@astryxdesign/theme-gothic':
specifier: '*'
version: link:../../packages/themes/gothic
@@ -532,15 +520,15 @@ importers:
'@astryxdesign/lab':
specifier: '*'
version: link:../../packages/lab
- '@astryxdesign/theme-brutalist':
- specifier: '*'
- version: link:../../packages/themes/brutalist
- '@astryxdesign/theme-default':
- specifier: '*'
- version: link:../../packages/themes/default
'@astryxdesign/theme-neutral':
specifier: '*'
version: link:../../packages/themes/neutral
+ '@astryxdesign/theme-stone':
+ specifier: '*'
+ version: link:../../packages/themes/stone
+ '@astryxdesign/theme-y2k':
+ specifier: '*'
+ version: link:../../packages/themes/y2k
'@astryxdesign/vega':
specifier: '*'
version: link:../../packages/vega
@@ -734,9 +722,6 @@ importers:
'@astryxdesign/lab':
specifier: '*'
version: link:../lab
- '@astryxdesign/theme-default':
- specifier: '*'
- version: link:../themes/default
'@astryxdesign/theme-neutral':
specifier: '*'
version: link:../themes/neutral
@@ -812,16 +797,6 @@ importers:
specifier: ^3.1.8
version: 3.1.8
- packages/themes/brutalist:
- dependencies:
- '@astryxdesign/core':
- specifier: 0.0.15
- version: link:../../core
- devDependencies:
- '@astryxdesign/cli':
- specifier: 0.0.15
- version: link:../../cli
-
packages/themes/butter:
dependencies:
'@astryxdesign/core':
@@ -854,38 +829,6 @@ importers:
specifier: 0.0.15
version: link:../../cli
- packages/themes/daily:
- dependencies:
- '@astryxdesign/core':
- specifier: 0.0.15
- version: link:../../core
- lucide-react:
- specifier: ^1.18.0
- version: 1.18.0([email protected])
- react:
- specifier: '>=19'
- version: 19.2.7
- devDependencies:
- '@astryxdesign/cli':
- specifier: 0.0.15
- version: link:../../cli
-
- packages/themes/default:
- dependencies:
- '@astryxdesign/core':
- specifier: 0.0.15
- version: link:../../core
- '@heroicons/react':
- specifier: ^2.2.0
- version: 2.2.0([email protected])
- react:
- specifier: '>=19'
- version: 19.2.7
- devDependencies:
- '@astryxdesign/cli':
- specifier: 0.0.15
- version: link:../../cli
-
packages/themes/gothic:
dependencies:
'@astryxdesign/core':