Installation
Package Manager
Section titled “Package Manager”Install the core component library and design tokens:
npm install @awc-ui/core @awc-ui/tokensOr with other package managers:
# pnpmpnpm add @awc-ui/core @awc-ui/tokens
# yarnyarn add @awc-ui/core @awc-ui/tokensTechnology Wrappers
Section titled “Technology Wrappers”For the best developer experience, install the wrapper package for your technology:
# No wrapper needed — use the core package directly
npm install @awc-ui/core @awc-ui/tokensnpm install @awc-ui/core @awc-ui/tokens @awc-ui/reactnpm install @awc-ui/core @awc-ui/tokens @awc-ui/angularnpm install @awc-ui/core @awc-ui/tokens @awc-ui/vuenpm install @awc-ui/core @awc-ui/tokens @awc-ui/svelteRequired Fonts
Section titled “Required Fonts”Add these to your HTML <head> for icons and typography:
<!-- Material Symbols Outlined — the icon font the library is built around. The four axis ranges are required: a default request returns a static instance and the FILL transition silently stops working. --><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap">
<!-- Roboto (default MD3 body font) --><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap">Or install from npm:
npm install material-icons material-symbolsimport 'material-icons/iconfont/material-icons.css';import 'material-symbols/outlined.css';Component Registration
Section titled “Component Registration”There are three ways to register components:
Option A: Auto-register all (recommended)
Section titled “Option A: Auto-register all (recommended)”import '@awc-ui/core/define';This registers every component and loads the AWC UI design-token stylesheet.
Option B: Lazy-load via the loader
Section titled “Option B: Lazy-load via the loader”import { defineCustomElements } from '@awc-ui/core/loader';defineCustomElements(window);Components are registered on-demand when first encountered in the DOM.
Option C: Per-component tree-shaking
Section titled “Option C: Per-component tree-shaking”import '@awc-ui/core/components/md-button';import '@awc-ui/core/components/md-text-field';Only the imported components are included in your bundle.
Design Tokens
Section titled “Design Tokens”The tokens CSS is automatically loaded with Option A. For Options B and C, import the tokens separately:
import '@awc-ui/tokens/tokens.css';This provides all the --md-sys-* CSS custom properties for colors, typography, shape, elevation, and motion.
Next Steps
Section titled “Next Steps”- Quick Start — build your first page with AWC UI components
- Components — browse all 48 MD3 components, each with HTML, React, Angular, Vue, and Svelte tabs in-page
- Theming — customize colors, shapes, and typography