# Lightweight CSS framework and design system

> A lightweight CSS framework and design system: 46 accessible UI components, design tokens, dark mode, optional JavaScript and zero runtime dependencies.

Source: https://ivolt.intervolutions.com/ · iVOLT 1.1.2 · English

v1.1.2 · MIT · **zero runtime dependencies**

# The CSS frameworkwith no *build step*.

**iVOLT is an open-source CSS framework and design system.** Forty-six accessible components, a finite set of utilities and design tokens as the visual contract. Link one stylesheet and you are building — plain HTML, WordPress, Astro or any bundler.

[Get started](https://ivolt.intervolutions.com/getting-started)

[Browse the components](https://ivolt.intervolutions.com/components/button)

```cdn
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@intervolutions/ivolt@1/dist/css/ivolt.min.css">
<script type="module" src="https://cdn.jsdelivr.net/npm/@intervolutions/ivolt@1/dist/js/auto.min.js"></script>
```

```npm
npm install @intervolutions/ivolt
```

[Star on GitHub](https://github.com/iNTERVOLUTIONS-Labs/iVOLT)

- **0**runtime dependencies
- **38.6 KiB**CSS, min + gzip
- **46.1 KiB**JS (IIFE), min + gzip
- **3**browser engines tested

New in 1.1 · “Spark”

## One colour, thirteen new families, and everything made to share.

What this release brings, without changing anything that already worked: every addition is additive and follows SemVer.

- [One-colour themingOne variable repaints buttons, focus, glows and gradients. Mixed in CSS.](https://ivolt.intervolutions.com/foundations/tokens-and-themes#oc-title)
- [Thirteen new componentsSegmented control, chip, banner, empty state, rating, code block, mockups and more.](https://ivolt.intervolutions.com/components/segmented)
- [Theme galleryTwelve themes with measured contrast; download theme.css or share them by URL.](https://ivolt.intervolutions.com/themes)
- [BlocksCopy-paste sections: heroes, pricing, FAQ, footers, sign-in.](https://ivolt.intervolutions.com/blocks)
- [CompareiVOLT next to Bootstrap, Tailwind, Pico and Bulma, with measured sizes.](https://ivolt.intervolutions.com/compare)

01 — Why

## Learn the grammar once, use it everywhere.

Every class, token, attribute and event follows the same prefixed contract, so what you learn on the first page still works on the last.

### It works before JavaScript does

Links navigate, buttons act, native controls do their job. Content components need no script at all; interactive ones enhance markup that already works and put it back on destroy.

### One token repaints the system

Set --iv-color-primary or --iv-radius-md on any scope and every component follows. Light, dark and system themes ship built in, no JavaScript required.

### JavaScript only where it earns it

Idempotent init, clean destroy, cancelable events, keyboard patterns from the APG, no global observers, no eval, imports that are safe to render on the server.

### Files, not a toolchain

Layered and flat CSS, one sheet per component, ES modules with real exports, an IIFE with a single global, TypeScript types and the tokens as JSON.

02 — Components

## Forty-six components,
live on this page.

Couldn't load the demo. [Open alone](https://ivolt.intervolutions.com/stage/button/variants.html?id=fx-button-variants)

```html
<div class="iv-cluster">
  <button class="iv-button iv-button--primary" type="button">Primary</button>
  <button class="iv-button iv-button--secondary" type="button">Secondary</button>
  <button class="iv-button iv-button--ghost" type="button">Ghost</button>
  <button class="iv-button iv-button--danger" type="button">Danger</button>
  <button class="iv-button" type="button">Neutral</button>
  <a class="iv-button iv-button--secondary" href="#docs">Link as button</a>
</div>
```

Couldn't load the demo. [Open alone](https://ivolt.intervolutions.com/stage/form/float.html?id=fx-form-float)

```html
<div class="iv-stack" style="max-width: 30rem">
  <p class="iv-u-text-sm iv-u-text-muted iv-u-m-0">Demo fields with made-up values. Nothing is submitted; the CSS here needs no JavaScript.</p>

  <div class="iv-field iv-field--float">
    <input class="iv-input" id="fl-email" name="email" type="email" placeholder=" " autocomplete="email">
    <label class="iv-label" for="fl-email">Work email</label>
  </div>

  <div class="iv-field iv-field--float">
    <input class="iv-input" id="fl-company" name="company" type="text" placeholder=" " value="iNTERVOLUTIONS" autocomplete="organization">
    <label class="iv-label" for="fl-company">Company</label>
  </div>

  <div class="iv-field iv-field--float">
    <select class="iv-select" id="fl-plan" name="plan">
      <option value="">Choose a plan</option>
      <option value="starter">Starter</option>
      <option value="team">Team</option>
      <option value="enterprise">Enterprise</option>
    </select>
    <label class="iv-label" for="fl-plan">Plan</label>
  </div>

  <div class="iv-field iv-field--float">
    <textarea class="iv-textarea" id="fl-notes" name="notes" placeholder=" "></textarea>
    <label class="iv-label" for="fl-notes">Notes for the team</label>
  </div>

  <div class="iv-field">
    <label class="iv-label" for="fg-site">Site address</label>
    <div class="iv-input-group">
      <span class="iv-input-group__addon">https://</span>
      <input class="iv-input" id="fg-site" name="site" type="text" value="intervolutions" autocomplete="off">
      <span class="iv-input-group__addon">.com</span>
    </div>
  </div>

  <div class="iv-field">
    <label class="iv-label" for="fg-key">API key</label>
    <div class="iv-input-group">
      <input class="iv-input" id="fg-key" name="key" type="text" value="iv_demo_8f2c" readonly autocomplete="off">
      <button class="iv-input-group__addon iv-input-group__addon--button" type="button">Copy</button>
    </div>
    <p class="iv-field__help iv-u-m-0">Made-up key. The button is a demo: it copies nothing.</p>
  </div>
</div>
```

Couldn't load the demo. [Open alone](https://ivolt.intervolutions.com/stage/tabs/basic.html?id=fx-tabs-basic)

```html
<div class="iv-tabs" data-iv-component="tabs" data-iv-activation="automatic">
  <div class="iv-tabs__list" aria-label="Plans">
    <a class="iv-tabs__tab" href="#p-monthly" id="t-monthly">Monthly</a>
    <a class="iv-tabs__tab" href="#p-yearly" id="t-yearly">Yearly</a>
    <a class="iv-tabs__tab" href="#p-enterprise" id="t-enterprise">Enterprise</a>
  </div>
  <section class="iv-tabs__panel" id="p-monthly">
    <h3 class="iv-tabs__heading">Monthly</h3>
    <p>29 € per seat and month. Every feature of the yearly plan, billed at the end of each period and cancellable at any time.</p>
  </section>
  <section class="iv-tabs__panel" id="p-yearly">
    <h3 class="iv-tabs__heading">Yearly</h3>
    <p>24 € per seat and month, billed once a year. Includes two additional sandbox environments and priority support during business hours.</p>
  </section>
  <section class="iv-tabs__panel" id="p-enterprise">
    <h3 class="iv-tabs__heading">Enterprise</h3>
    <p>Custom pricing with a signed service level agreement, single sign-on and a named technical contact. Talk to sales to get a quote.</p>
  </section>
</div>
```

```js
// data-iv-component="tabs"
{
  activation: "automatic",
}
```

Couldn't load the demo. [Open alone](https://ivolt.intervolutions.com/stage/dialog/basic.html?id=fx-dialog-basic)

```html
<a class="iv-button iv-button--primary" href="#signup" data-iv-open="signup">Create account</a>

<dialog class="iv-dialog" id="signup" data-iv-component="dialog" data-iv-initial-focus="#signup-email" aria-labelledby="signup-title">
  <form method="dialog" class="iv-dialog__panel">
    <header class="iv-dialog__header">
      <h2 class="iv-dialog__title" id="signup-title">Create account</h2>
      <button class="iv-button iv-button--ghost iv-button--icon" type="button" data-iv-close aria-label="Close">
        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18"/></svg>
      </button>
    </header>
    <div class="iv-dialog__body iv-stack">
      <p class="iv-u-m-0">Demo dialog. Nothing is sent anywhere.</p>
      <div class="iv-field">
        <label class="iv-label" for="signup-email">Work email</label>
        <input class="iv-input" id="signup-email" type="email" autocomplete="email">
      </div>
    </div>
    <footer class="iv-dialog__footer">
      <a class="iv-button iv-button--ghost" href="#" data-iv-close>Cancel</a>
      <button class="iv-button iv-button--primary" value="confirm">Continue</button>
    </footer>
  </form>
</dialog>
```

```js
// data-iv-component="dialog"
{
  open: "signup",
  initialFocus: "#signup-email",
  close: true,
}
```

Couldn't load the demo. [Open alone](https://ivolt.intervolutions.com/stage/combobox/basic.html?id=fx-combobox-basic)

```html
<div class="iv-field" style="max-width: 22rem">
  <div class="iv-combobox" data-iv-component="combobox">
    <label class="iv-label" for="c-country">Country</label>
    <input class="iv-input iv-combobox__input" id="c-country" name="country" type="text" list="c-country-options" autocomplete="off" aria-describedby="c-country-help">
    <datalist id="c-country-options">
      <option value="Austria"></option>
      <option value="Croatia"></option>
      <option value="Türkiye"></option>
      <option value="Denmark"></option>
      <option value="Spain"></option>
      <option value="Finland"></option>
      <option value="France"></option>
      <option value="Germany"></option>
      <option value="Ireland"></option>
      <option value="Netherlands"></option>
      <option value="Portugal"></option>
      <option value="Sweden"></option>
    </datalist>
  </div>
  <p class="iv-field__help iv-u-m-0" id="c-country-help">Works as a plain <code>&lt;datalist&gt;</code> without JavaScript; with JavaScript the suggestions become a filtered listbox.</p>
</div>
```

Couldn't load the demo. [Open alone](https://ivolt.intervolutions.com/stage/carousel/photos.html?id=fx-carousel-photos)

```html
<section class="iv-carousel" data-iv-component="carousel" data-iv-effect="cinema" data-iv-autoplay="7000" aria-roledescription="carousel" aria-label="Photographs from Unsplash, used as a demo">
  <div class="iv-carousel__viewport">
    <ul class="iv-carousel__track">
      <li class="iv-carousel__slide" id="cp-ridge">
        <figure class="iv-carousel__media"><img src="/photos/p1015.jpg" width="1280" height="800" alt="A river winding between forested mountains under a pale sky" loading="lazy"></figure>
        <div class="iv-carousel__scrim"></div>
        <div class="iv-carousel__caption"><span class="iv-badge iv-badge--primary">Landscape</span><h3>The valley opens</h3><p>Photograph by Alexey Topolyanskiy on Unsplash. Cinema effect: a slow zoom on the active image, captions rising in.</p></div>
      </li>
      <li class="iv-carousel__slide" id="cp-shore">
        <figure class="iv-carousel__media"><img src="/photos/p1036.jpg" width="1280" height="800" alt="Snow-covered peaks above a glacial lake" loading="lazy"></figure>
        <div class="iv-carousel__scrim"></div>
        <div class="iv-carousel__caption"><span class="iv-badge iv-badge--primary">Alpine</span><h3>Above the lake</h3><p>Photograph by Wolfgang Lutz on Unsplash. Autoplay pauses while you hover or focus the carousel.</p></div>
      </li>
      <li class="iv-carousel__slide" id="cp-sea">
        <figure class="iv-carousel__media"><img src="/photos/p1050.jpg" width="1280" height="800" alt="Sea stacks rising over turquoise water" loading="lazy"></figure>
        <div class="iv-carousel__scrim"></div>
        <div class="iv-carousel__caption"><span class="iv-badge iv-badge--primary">Coast</span><h3>Out along the pier</h3><p>Photograph by Joseph Barrientos on Unsplash. Every image carries real alt text; the scrim keeps the caption readable.</p></div>
      </li>
      <li class="iv-carousel__slide" id="cp-forest">
        <figure class="iv-carousel__media"><img src="/photos/p1080.jpg" width="1280" height="800" alt="Crates of strawberries on a market stall" loading="lazy"></figure>
        <div class="iv-carousel__scrim"></div>
        <div class="iv-carousel__caption"><span class="iv-badge iv-badge--primary">Forest</span><h3>Looking up</h3><p>Photograph by veeterzy on Unsplash. Under reduced motion the crossfade shortens and the zoom stops.</p></div>
      </li>
    </ul>
  </div>
  <nav class="iv-carousel__dots" aria-label="Slides">
    <a href="#cp-ridge"><span class="iv-u-sr-only">The valley opens</span></a>
    <a href="#cp-shore"><span class="iv-u-sr-only">Above the lake</span></a>
    <a href="#cp-sea"><span class="iv-u-sr-only">Out along the pier</span></a>
    <a href="#cp-forest"><span class="iv-u-sr-only">Looking up</span></a>
  </nav>
  <div class="iv-carousel__controls">
    <button class="iv-button iv-carousel__prev" type="button" hidden><span class="iv-u-sr-only">Previous slide</span><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M15 5l-7 7 7 7"/></svg></button>
    <button class="iv-button iv-carousel__next" type="button" hidden><span class="iv-u-sr-only">Next slide</span><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M9 5l7 7-7 7"/></svg></button>
    <button class="iv-button iv-carousel__toggle" type="button" hidden>Pause</button>
  </div>
</section>
```

```js
// data-iv-component="carousel"
{
  effect: "cinema",
  autoplay: 7000,
}
```

03 — Themes

## Dark mode is a scope, not a switch.

Set `data-iv-theme` on any element and that branch of the page changes theme. Explicit choices beat the system preference, scopes nest, and nothing needs storage or a script.

```
<html data-iv-theme="system">
  <section data-iv-theme="dark">
    <aside data-iv-theme="light">…</aside>
  </section>
</html>
```

Reveal the light scope

04 — Recipes

## Four complete pages, one package.

[StudioA creative studio: cinematic cover with parallax, a marquee, stacked service cards, a gallery with the viewer and a contact stepper.Open the recipe](https://ivolt.intervolutions.com/examples/studio/index.html)

[ConsoleA product console: megamenu, drawer, counted figures, a data table with filter and sort, a command palette and a validated form.Open the recipe](https://ivolt.intervolutions.com/examples/console/index.html)

[JournalAn editorial magazine: typography as the subject, a masonry of articles, a reading bar, notes in popovers and a printed layout that works.Open the recipe](https://ivolt.intervolutions.com/examples/journal/index.html)

[StoreA catalogue and a purchase that buys nothing: rich filters, a product carousel, a checkout stepper, a cart drawer and a confirmation dialog.Open the recipe](https://ivolt.intervolutions.com/examples/store/index.html)

05 — Start

## Two files and you are running.

Install it from npm, or copy `dist/` next to your page and link a stylesheet and a module. No configuration file, no plugin, no compiler. The starter and the four recipes are exactly this and nothing more.

```
npm install @intervolutions/ivolt
```

```
<html class="iv-root" data-iv-theme="system">
  <link rel="stylesheet" href="ivolt/css/ivolt.min.css">
  <script type="module" src="ivolt/js/auto.js"></script>
```

[Install it now](https://ivolt.intervolutions.com/getting-started)

[Download the starter](https://ivolt.intervolutions.com/examples)

v1.1.2 under MIT. What is public, and how it is allowed to change, is written down in [stability](https://ivolt.intervolutions.com/foundations/stability). The sizes above are measured from the files that ship, at build time.

06 — FAQ

## What people ask before trying it.

Missing your question? Open it on [GitHub](https://github.com/iNTERVOLUTIONS-Labs/iVOLT/issues).

**What is iVOLT?**

iVOLT is an open-source (MIT) CSS framework and design system by iNTERVOLUTIONS: 46 accessible components in plain CSS with optional JavaScript, design tokens, light and dark themes, and no build step or runtime dependencies.

[Getting started](https://ivolt.intervolutions.com/getting-started)

**Do I need a build step or Node?**

No. Link ivolt.min.css from a CDN or your own server and add the iv-root class to the html element. npm is optional, for projects that already use a bundler.

[Install it](https://ivolt.intervolutions.com/getting-started)

**Do I need JavaScript?**

Not for content: 25 of the 46 components are CSS only. The 21 interactive ones work as plain HTML before the script arrives and use it to enhance: keyboard, focus, state.

[See a component with JavaScript](https://ivolt.intervolutions.com/components/dialog)

**How big is it?**

38.6 KiB of CSS and 46.1 KiB of JavaScript (IIFE), minified and gzipped, measured on the files that ship when this site is built. The base alone, core.min.css, is 3.5 KiB.

[Compare it with other frameworks](https://ivolt.intervolutions.com/compare)

**Is it free?**

Yes. MIT licence: use it in personal and commercial projects without paying or asking.

[Source on GitHub](https://github.com/iNTERVOLUTIONS-Labs/iVOLT)

**Does it have dark mode?**

Yes: light, dark and the system's, with data-iv-theme on any element. Scopes nest, and nothing needs a script or storage.

[Tokens & themes](https://ivolt.intervolutions.com/foundations/tokens-and-themes)

**Is it accessible?**

Every component follows the WAI-ARIA APG keyboard patterns, manages focus and meets the token contrast; the tests run axe in Chromium, Firefox and WebKit. What is still your job as the author is written down too.

[Accessibility](https://ivolt.intervolutions.com/foundations/accessibility)

**Can I use it with WordPress, Astro or my existing CSS?**

Yes. Everything is prefixed iv- and the base styles are scoped to .iv-root, so it coexists with the CSS you already have; a flat build without cascade layers is included.

[Coexisting with CSS](https://ivolt.intervolutions.com/foundations/coexistence)

**Will the API change and break my site?**

Not within 1.x. Since 1.0 every public class, token, attribute and event follows SemVer: minor releases only add.

[Stability](https://ivolt.intervolutions.com/foundations/stability)
