Introduction

matix/ui is a high-performance React component library built on Base UI primitives and StyleX for zero-runtime styling.

Why matix/ui?

matix/ui combines the accessibility guarantees of Base UI with the performance of StyleX's compile-time CSS extraction. Every component ships under 5KB gzipped, supports dark mode via CSS media queries (no JavaScript), and is accessible by default.

Zero Runtime

StyleX compiles all styles at build time into atomic CSS classes. No CSS-in-JS runtime, no style injection, no FOUC.

Accessible

Built on Base UI with full WAI-ARIA support, keyboard navigation, and screen reader compatibility.

Server Components

Static components (Badge, Card, Separator, Kbd, Code, Skeleton) are RSC-safe and ship zero JavaScript.

Composable

Override any style with the sx prop. Uncontrolled by default, controlled as opt-in.

Architecture

The library is structured as a monorepo with clear dependency layers:

@matix/tokens    → Design tokens (colors, spacing, motion, typography)
@matix/core      → Shared hooks, animations, utilities
@matix/components → 36 UI components built on Base UI + StyleX

Next Steps

Installation →Theming Guide →Browse Components →