# AthwinUI
> AthwinUI is a lightweight, framework-free CSS component library. One stylesheet, no JavaScript required, light and dark themes built in. All classes are prefixed `aw-`. Colors, radii, shadows and fonts are CSS custom properties (`--aw-*`).
- Docs site: https://atherix.org/athwinui
- Source: https://github.com/atherix-org/athwinui
- License: GPL-3.0
## Install
Add this to the `
` of any HTML page, then use `aw-*` classes:
```html
```
Via npm: `npm install athwinui`, then `import "athwinui/athwin.css"`.
Minimal page:
```html
Hello
```
## Rules for generating code
- Use only classes listed below. Do not invent `aw-*` classes.
- Variants are suffixes: `aw-btn aw-btn-primary`, `aw-badge aw-badge-success`. Always include the base class.
- Wrap page content in `aw-container aw-section`.
- Do not use Tailwind or Bootstrap classes alongside it.
- Customize with CSS variables, not by editing the library: `:root { --aw-primary: #0ea5e9; }`.
- Dark mode follows the system by default. Force with `` (or `"light"`), or scope with `class="aw-dark"`.
- Styles live in cascade layers, so any unlayered CSS you write overrides them.
## Layout
- `aw-container`: centered, max width `--aw-container` (1160px). `aw-section`: vertical padding.
- `aw-stack`: vertical flex column; spacing via `style="--aw-gap:.5rem"`.
- `aw-cluster`: wrapping horizontal row, vertically centered (button groups, badges).
- `aw-grid`: equal columns via `--aw-cols` (e.g. `style="--aw-cols:3"`); one column under 700px.
- `aw-grid-auto`: auto-fit columns, minimum width via `--aw-min` (default 220px).
- `aw-between`: flex, space-between. `aw-center`: center both axes. `aw-divider`: `` line.
## Typography
`aw-eyebrow` (small uppercase label), `aw-display`, `aw-h1`, `aw-h2`, `aw-h3`, `aw-lead`, `aw-muted`, `aw-subtle`, `aw-small`. Inline `` and `` are styled by default.
## Buttons
Base `aw-btn` on `