Loading…
Pedantic

Getting started

Setup

How a site consumes Pedantic. Link the stylesheet from the CDN, build with the tokens, and drop components in — each one is encapsulated, so what a component needs travels with it.

1. Link the CDN stylesheet

Images, icons, and CSS for the aCo family live on the aCo CDN. Add the Pedantic stylesheet to the <head> of your page:

<link rel="stylesheet" href="https://cdn.aco.digital/pedantic/pedantic.css">

That one file carries the design tokens (the aCo brand colors as CSS custom properties), the status classes from the color integration maps, and the aCo loader styles. The hub you are reading loads its Pedantic CSS from the CDN, the same way.

The CDN’s canonical host is cdn.aco.digital. While its DNS is being set up, the same files are served from https://aco-cdn.netlify.app/pedantic/.

2. Use the tokens

Color, spacing, and type are held in shared tokens, so a change in one place carries through the whole system. The token layer names the aCo brand colors as custom properties — --aco-blue, --aco-pink, --aco-bluedarkest (the dark theme background), and the rest of the palette — with the dark theme as the default and a light theme under data-theme="light". Build with the tokens, not with one-off values.

3. Drop in components

Every component has its own page in the components library, with its markup and styles. Components are encapsulated and drop-in: copy a finished component’s code from its page and it behaves the way its page documents. Labels are built into the system — the Label component and the form patterns ship with Pedantic, so an app using Pedantic inherits its labels instead of inventing its own.

4. Or compile the Sass

Pedantic’s styles are authored in Sass on the 7-1 pattern (abstracts, base, components, layout, pages, themes, vendors) and compiled to plain CSS at build time — never inline styles, never styles carried inside components. Teams that compile their own CSS take the Sass source and the tokens with it.

Naming

Component names are parent + child, joined as one word: the parent thing first, then the child category. Buttons + save is Buttonssave; input + address is inputaddress. Each component page in this hub shows the library name and its conforming name side by side.

What the CDN serves

  • /pedantic/pedantic.css — tokens, status classes, loader styles.
  • /pedantic/loader.js — the aCo loader behavior (acoLoader.show() / acoLoader.hide()).
  • /pedantic/aco-logo.png — the aCo crest.
  • /pedantic/icons/ — the family icon set, one folder per site (icon.svg, favicon-32, icon-192, icon-512, apple-touch-icon).
<script src="https://cdn.aco.digital/pedantic/loader.js"></script>