Skip to Content
Installation

Getting Started

Installation

Install the @optiaxiom/react package using your package manager of choice:

npm install @optiaxiom/react

Make sure to configure your bundler to handle CSS Imports.

Wrap your application with AxiomProvider:

import { AxiomProvider } from "@optiaxiom/react"; export function App() { return <AxiomProvider>{/* Your app code here */}</AxiomProvider>; }

Usage

Import components from @optiaxiom/react and use them:

import { Button } from "@optiaxiom/react"; export function MyComponent() { return <Button>Hello World!</Button>; }

Box

Box is the base component for all our other components and provides a convenient way to use our design tokens and set element styles without having to write any custom CSS.

Style Props

Set an element's styles directly with utility props, backed by our design tokens.

Colors

Every text, background, and border color token, with light and dark mode values.

A

a

Typography

The type scale, and which component renders each style. Start here before reaching for font props.

Icons

Material Symbols kit for use with the Optimizely Design System

MCP

MCP server enabling AI assistants to generate accurate Axiom code.

Last updated on