Skip to content

Installation

Install the core component library and design tokens:

Terminal window
npm install @awc-ui/core @awc-ui/tokens

Or with other package managers:

Terminal window
# pnpm
pnpm add @awc-ui/core @awc-ui/tokens
# yarn
yarn add @awc-ui/core @awc-ui/tokens

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/tokens

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:

Terminal window
npm install material-icons material-symbols
import 'material-icons/iconfont/material-icons.css';
import 'material-symbols/outlined.css';

There are three ways to register components:

import '@awc-ui/core/define';

This registers every component and loads the AWC UI design-token stylesheet.

import { defineCustomElements } from '@awc-ui/core/loader';
defineCustomElements(window);

Components are registered on-demand when first encountered in the DOM.

import '@awc-ui/core/components/md-button';
import '@awc-ui/core/components/md-text-field';

Only the imported components are included in your bundle.

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.

  • 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