Skip to content

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

TypeScript

chore: remove stale typography.css references (#1068)

Cindy Zhang2adb5d6ae893
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 100e4cfdaa..dd51d57df9 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -99,11 +99,9 @@ xds/
│
├── packages/
│ ├── core/ # Core components (Button, Input, etc.)
-│ ├── foundations/ # Design tokens, typography, colors
-│ ├── patterns/ # Composed patterns (TablePage, FormWizard)
-│ ├── icons/ # Icon library
-│ ├── themes/ # Theme presets
-│ └── utils/ # Shared utilities
+│ ├── cli/ # CLI tooling (npx xds)
+│ ├── lab/ # Experimental components (not yet stable)
+│ └── themes/ # Theme presets (default, neutral, brutalist)
│
├── internal/ # Internal tooling (not published)
│ └── test-utils/ # Shared test helpers
diff --git a/apps/storybook/.storybook/main.ts b/apps/storybook/.storybook/main.ts
index 1c9ccd24e9..25ca8e53b7 100644
--- a/apps/storybook/.storybook/main.ts
+++ b/apps/storybook/.storybook/main.ts
@@ -67,7 +67,7 @@ const config: StorybookConfig = {
// In Vite dev mode the StyleX unplugin's transformIndexHtml injects
// a <link> for /virtual:stylex.css before preview.tsx CSS imports
// are processed, which would otherwise cause priority1-9 layers to
- // be declared first (lowest priority) and reset/typography last
+ // be declared first (lowest priority) and the reset layer last
// (highest priority) — the reverse of what we need.
{
name: 'xds-css-layer-order',
diff --git a/apps/storybook/.storybook/preview.tsx b/apps/storybook/.storybook/preview.tsx
index a72086e337..57d725b213 100644
--- a/apps/storybook/.storybook/preview.tsx
+++ b/apps/storybook/.storybook/preview.tsx
@@ -5,7 +5,7 @@ import {defaultTheme} from '@xds/theme-default';
import {neutralTheme} from '@xds/theme-neutral';
import {brutalistTheme} from '@xds/theme-brutalist';
-// Import the base reset and typography stylesheets
+// Import the base reset stylesheet
import '@xds/core/reset.css';
/**
@@ -42,7 +42,6 @@ const withXDSTheme: Decorator = (Story, context) => {
if (themeKey === 'none') {
return (
<div
- className="xds-typography"
style={{
colorScheme: mode,
padding: 16,
@@ -57,7 +56,6 @@ const withXDSTheme: Decorator = (Story, context) => {
return (
<XDSTheme theme={theme} mode={mode}>
<div
- className="xds-typography"
style={{
backgroundColor: 'var(--color-background-surface)',
padding: 16,
diff --git a/packages/core/src/README.md b/packages/core/src/README.md
index 6df984dc29..07fb9751e9 100644
--- a/packages/core/src/README.md
+++ b/packages/core/src/README.md
@@ -4,9 +4,8 @@ Source code for core UI components.
<!-- SYNC: When files in this directory change, update this document. -->
-| File/Directory | Role | Purpose |
-| ---------------- | --------- | ---------------------------------------------------- |
-| `index.ts` | Entry | Package entry point; re-exports all components |
-| `reset.css` | Styles | Base CSS reset for consistent cross-browser defaults |
-| `typography.css` | Styles | Prose typography styles for native HTML elements |
-| `Button/` | Component | Button component with variants and loading states |
+| File/Directory | Role | Purpose |
+| -------------- | --------- | ---------------------------------------------------- |
+| `index.ts` | Entry | Package entry point; re-exports all components |
+| `reset.css` | Styles | Base CSS reset for consistent cross-browser defaults |
+| `Button/` | Component | Button component with variants and loading states |
diff --git a/scripts/package-source.js b/scripts/package-source.js
index 96054eb221..7ea7da4cc5 100644
--- a/scripts/package-source.js
+++ b/scripts/package-source.js
@@ -68,7 +68,7 @@ function deriveSourceExports() {
const sourceExports = {};
for (const [key, value] of Object.entries(PKG.exports)) {
- // Handle string exports (e.g., "./typography.css": "./src/typography.css")
+ // Handle string exports (e.g., "./reset.css": "./src/reset.css")
if (typeof value === 'string') {
if (value.startsWith('./src/')) {
sourceExports[key] = value.replace('./src/', './');