Ashlar divides web applications into three clean layers: a decoupled Presentation Layer (Ashlar’s semantic SCSS design system, or any CSS framework you prefer such as Tailwind or Bootstrap), autonomous DOM Runtime components controlled through data-ln-* attributes, and a local-first Application Runtime with IndexedDB storage, FIFO offline queues, and client routing.
Stratified State Management
What lives where in an Ashlar application
Rather than mirroring every bit of state in JavaScript memory, Ashlar stratifies state by observability requirements so DevTools always shows the real truth.
State Tier
Lives In
Examples
Inspectable Via
Control State
DOM attributes (data-ln-*)
Open/closed, active tab, sort direction, filter, mode
Separate polarity (data-mode), brand palette (data-theme), and surface skin (data-skin). Any container overrides scope locally via the CSS cascade with zero specificity wars.
Independent polarity (light, dark), brand palettes, and physical skins
Every token, border, shadow, and focus ring re-derives automatically
WCAG 2.2 AA target with 1.4.6 Contrast (Enhanced) met across shipped pairs
Bring Ashlar’s SCSS design system — or any CSS framework
CSS is completely independent of JS logic. Use Ashlar’s semantic SCSS mixins and 3-axis theme tokens, opt into the Tailwind CSS v4 @theme adapter, or drop the visual theme altogether and style with Tailwind, Bootstrap, or custom CSS on top of the minimal functional core (ln-ashlar-core.css).
Zero CSS Lock-In (SCSS, Tailwind, Bootstrap, or Custom)
JavaScript components only mutate data-ln-* and native ARIA/hidden attributes — never styling classes or inline styles. Choose Ashlar’s compiled SCSS design system, its Tailwind v4 @theme adapter, or pair ln-ashlar-core.css with Tailwind, Bootstrap, or your own stylesheet.
Production Case Study: ln-mixer
Custom Layer 2 coordinators extend Ashlar beyond CRUD portals. ln-mixer is a 2-deck DJ audio workstation featuring real-time waveforms, loop cues, and offline PWA support built on Ashlar primitives and one audio waveform library with zero Virtual DOM.
Quick Start
Install and run in under two minutes
1. Install via npm
npm install @livenetworks/ashlar
2. Import prebuilt bundles (JS + CSS)
import '@livenetworks/ashlar';
import '@livenetworks/ashlar/full.css'; // or ./landing.css, ./core.css (for Tailwind, Bootstrap, or custom CSS)