FrontAlign v1.0.9 Released

Build modern web interfaces
without the framework chaos.

Build with utilities. Ship with components. Power everything with one lightweight runtime engine. From prototype to production at lightspeed.

theme-engine.html
The Chaos
<div class="bg-white dark:bg-slate-900 text-black dark:text-white border-gray-200 dark:border-slate-800...">
FrontAlign
<html fa-theme="dark">
  <div class="card bg-surface text-body">...</div>
</html>

The structure you need.
The freedom you crave.

FrontAlign gives you the speed of utilities, the confidence of components, and the control of a semantic design system.

Utilities + Components

Start with utility classes when you need speed. Switch to ready components when the interface needs structure.

Built-In Runtime

Modals, drawers, tabs, and dark mode work seamlessly through one lightweight JavaScript engine.

One Token System

Change a semantic token and buttons, badges, forms, and surfaces instantly follow your design language.

Framework Agnostic

Use the exact same engine in static HTML or React applications — without locking your stack.

Quick Start

Build faster with FrontAlign.

Install the framework, initialize it once, and let FrontAlign handle components, themes, dark mode, and dynamic DOM updates.

terminal
$

Switch steps or tabs to preview the matching setup code.

THE BUILD-ANYWHERE ENGINE

Any stack. Any interface.
At speed.

FrontAlign is a single engine that carries you from a CDN prototype to a production React app without a rewrite along the way.

Utility classes for speed, ready-made components for structure, and one semantic token layer that keeps every surface, button and badge in sync — on any stack you ship to.

1.0.9MIT licensedZero dependencies

Loads Only What's Visible

Every fa-component mounts through one shared IntersectionObserver, 100px before it scrolls into view. Nothing off-screen initializes.

One Observer, Any Framework

A single MutationObserver watches the DOM tree and wires up components the instant React, Vue, or plain HTML injects new markup.

Theme Is Just CSS Variables

faConfig({ theme }) writes --primary, --body, --space-* to :root. [fa-theme="dark"] swaps them, no rebuild step.

20 Hooks, One Engine

useModal, useDrawer, useTabview and 17 more call the same vanilla core through custom DOM events, not a parallel React rewrite.

ARIA Set by the Component

aria-expanded, aria-modal, aria-live and 10 more are applied automatically, not left for you to wire up by hand.

11 Components, One File

Modal, Toast, Carousel, Select, Range, Tooltip and more ship from a single ESM bundle. v1.1.0, MIT-licensed, zero dependencies.

Built for the Modern Web

Core capabilities that set FrontAlign apart from legacy frameworks.

Cascade Control

Built natively on CSS @layer. Specificity wars are over. Your custom styles always win.

@layer theme, base, components, utilities, custom;

@layertheme {
/* Token variables */
}

@layercustom {
.my-card{ ... }
}

Logical Layouts

Say goodbye to ml-4. FrontAlign uses logical properties to adapt to LTR and RTL out of the box.

JS
John Smith
Product Designer
LTR
ع.م
علي محمد
مصمم منتجات
RTL

Lightning JIT Compiler

Scans your templates and generates only the CSS you need on-demand. Ship microscopic stylesheets instantly.

$ npx frontalign build ./src

⠋ Scanning templates...
✓ Found 42 utilities

✔ Build successful in 24ms
frontalign.build.css30.4 kB
FrontAlign UI Engine

One engine for utilities, components and runtime behavior.

A premium documentation showcase should not only say what FrontAlign does. It should visually prove that one semantic system can power real interface output.

showcase.frontalignlive
<article class="card p-4">
  <span class="badge bg-primary rounded-pill">
    Semantic Layer
  </span>

  <h3 class="text-3xlarge font-extrabold">
    Build once. Align everywhere.
  </h3>

  <p class="text-muted">
    Utilities, components and interactions inherit
    the same design decision.
  </p>

  <div class="is-grid grid-cols-2 gap-3">
    <button class="button is-primary">Primary</button>
    <button class="button is-primary-outline">Outline</button>
  </div>

  <div class="is-flex place-center gap-2 text-small text-muted">
    <span>primary</span>
    <span>components</span>
    <span>runtime</span>
  </div>

  <div class="is-grid grid-cols-3 gap-2">
    <div class="card transition-transform hover:-translate-x-1">Utilities</div>
    <div class="card transition-transform hover:-translate-x-1">Components</div>
    <div class="card transition-transform hover:-translate-x-1">Themes</div>
  </div>
</article>
Live output

Change one token.

Semantic layer

Build once. Align everywhere.

Utilities, components and interactions inherit the same design decision.

primarycomponentsruntime
UtilitiesGrid, spacing, typography and layout primitives.
ComponentsButtons, badges, collapse, forms and interface blocks.
ThemesLight and dark modes powered by one semantic token system.
1semantic token
0dependency chaos
3delivery modes
Zero Install · Instant Start

Kickstart your project
in seconds

Run a single command to scaffold a fully configured FrontAlign project. Choose your template and framework — no setup required.

bash
$npx @frontalign/create-app@1.0.0 my-project --template agency
--template agency--template blog--framework nextjs

FrontAlign