Skip to content

FAP CSS

A lightweight, classless-first CSS framework. Semantic HTML. Zero classes required. Dark mode. HTMX-ready. 87 FABCONS icons.

Getting Started

Bundle (recommended)

One CSS file includes the full framework, Public Sans font, and all 87 FABCONS icons:

<link rel="stylesheet" href="fap.bundle.css">
<link rel="stylesheet" href="fap.themes.css">
<script src="fap.js" defer></script>

Individual files

For more control, load each part separately:

<!-- Core framework -->
<link rel="stylesheet" href="fap.min.css">

<!-- Self-hosted Public Sans font (optional) -->
<link rel="stylesheet" href="fap.public-sans.css">

<!-- FABCONS icons (optional) -->
<link rel="stylesheet" href="fabcons.min.css">

<!-- Theme overrides (user-editable) -->
<link rel="stylesheet" href="fap.themes.css">

<!-- JS utilities: theme toggle, dialog, accordion, copy, scroll-top (optional) -->
<script src="fap.js" defer></script>

Or install via npm:

npm install fap-css

Base

Core HTML elements styled without classes.

Typography

Headings, inline text, blockquote, lists, code blocks.

Buttons

Variants, states, icons in buttons.

Forms

Text inputs, selects, checkboxes, radios, file inputs.

Tables

Responsive tables with overflow wrapper.

Components

Interactive UI components — mostly classless.

Avatar

Image, initials, and icon avatars.

Cards

Card layouts with header, footer, and grid.

Accordion

Details/summary with auto-close and exclusive modes.

Tabs

CSS-only tabs via radio buttons.

Badges

Semantic badges and pill variants.

Tooltips

CSS-only tooltips via data attributes.

Toast

Toast notifications with JS variants.

Timeline

Vertical timeline with semantic dots and zigzag variant.

Popover

Native popover element — no JS needed.

Layout

Grid & Sidebar

Auto grid, sidebar, app shell, overflow, embed, cluster, sticky.

Icons

87 FABCONS SVG icons. Inherit currentColor. Scale with font-size.

Emoji Icons

Normalized native emoji. Zero bytes shipped.

Features

HTML5 Elements

Figure, video, abbreviation, address, content editable, inert.

HTMX

Built-in HTMX lifecycle classes. Indicators, settle, error shake.

Theming

10 CSS custom properties drive all colors. Light/dark toggle.