Skip to content

Installation

Install @airframeui/core, import one CSS file, and start using patterns. No build plugin required.

npm install @airframeui/core

# or

yarn add @airframeui/core
pnpm add @airframeui/core

Add Airframe to your global stylesheet (recommended):

@import "@airframeui/core/core.css";

Or link it from HTML:

<link rel="stylesheet" href="node_modules/@airframeui/core/core.css">

Use semantic pattern classes immediately:

<button class="af-btn">
  Primary action
</button>
<div class="af-card">
  <h2 class="af-card__title">
    Card Title
  </h2>
  <p class="af-card__body">
    Card content goes here.
  </p>
</div>

Prefer a framework-specific entrypoint? Use these and skip the generic steps above.

Add to app/globals.css or styles/globals.css:

@import "@airframeui/core/core.css";

See the full Next.js guide.

Add to your main CSS file (e.g. src/index.css):

@import "@airframeui/core/core.css";

Add to angular.json under projects.<app>.architect.build.options:

"styles": [
  "node_modules/@airframeui/core/core.css",
  "src/styles.scss"
]

Or import in src/styles.scss:

@import "@airframeui/core/core.css";

See the full Angular guide.

Add to your main CSS file or import from main.js / main.ts:

@import "@airframeui/core/core.css";