Documentation menu · Theme
Theme

AuraGlassProvider

A provider that exposes theme tokens to every glass component.

Live previewProduction package import

#Overview

Loading preview
Status
live
Category
Theme
Package
aura-glass

#Install and Import

Install the package once, import the component from the public entry, and load styles a single time at the app root.

shell
npm install [email protected]
import
import { AuraGlassProvider } from 'aura-glass'
styles
import 'aura-glass/styles.css';

#Examples

Three baseline shapes flagship components use across docs and AI-agent guidance:

Basic

tsx
import { AuraGlassProvider } from 'aura-glass';
import 'aura-glass/styles.css';

export function AuraGlassProviderExample() {
  return (
    <AuraGlassProvider
      aria-label="Theme example"
    />
  );
}

Production

tsx
import { AuraGlassProvider, Card } from 'aura-glass';
import 'aura-glass/styles.css';

export function AuraGlassProviderSurface() {
  return (
    <Card>
      <AuraGlassProvider
        aria-label="Theme production surface"
      />
    </Card>
  );
}

Contained

tsx
import { AuraGlassProvider, Card } from 'aura-glass';
import 'aura-glass/styles.css';

export function AuraGlassProviderContainedPreview() {
  return (
    <Card style={{ maxWidth: 420 }}>
      <AuraGlassProvider />
    </Card>
  );
}

#Accessibility

Keep visible labels and semantic structure around this surface. Confirm keyboard order, focus visibility, disabled states, and text contrast over the actual backdrop used by the app.

#SSR and Performance

Import from the public package entrypoint, load `aura-glass/styles.css` once, and keep expensive data, media, or animation work outside the visual component unless the product needs it.

#Theming

Theme with public props, `className`, `style`, and AuraGlass CSS variables. Avoid private DOM selectors so the component can upgrade with the package.