Facet is a design library in plain HTML, CSS and JS. One link, one
script, no build step, never minified — this page is the library.
Tell your AI:
“Use the Facet library and help me build
an inflation calculator.”
That sentence is the whole workflow. Facet exists to give your AI
taste: it teaches it, in its own language, how to build good web
apps, good installable apps and good products — every component,
every theme, every rule of craft, readable in one fetch.
Facet is extremely powerful because it truly uses your device's
potential — the way the internet was designed to be. No runtime
sits between you and the platform: pages install to the home
screen and work offline, respond to your text size and dark mode,
speak the reader's language and number system, move with the
device's own tilt and light, click and vibrate like hardware, and
print like real documents. Modern frontend rebuilds all of this in
minified framework machinery; Facet just switches the browser's
own features on.
And it goes one step further than any component kit: it
helps you think the product through. Point your AI at the
build method and it interviews you
about the users and the job to be done, agrees a feature set with
you, and builds it end to end — teaching as it goes. The page you
ship stays plain, readable HTML you can open and understand.
How to use Facet
Two ways in, depending on who is reading. People read this site to
learn what Facet offers; an AI reads the source to know exactly how
every piece works. You bring them together — you decide, your AI
builds.
If you are a person
Skim this page. The
Features show what Facet can do; the
principles below show what you can count on. You never need to
read the CSS or JavaScript.
Grab the two tags. One link and one script,
copied from the top of this page. That is the entire install —
no framework, no build step.
Explore the Library.
Every component, block, template and whole app shell, live and
with copy-paste code. Find the shells and pieces you want to use.
Let your AI build it. Tell your assistant which
template and components to use and ask it for a few options to
choose from. It reads the code so you do not have to.
Want to contribute? To extend the library
itself — maintain it or add new components — follow the build
instructions in
CLAUDE.md, the charter for
how Facet is built and kept consistent.
If you are an AI
Everything you need is in the source. Start with the manual, then
drop into the files for exact detail:
llms.txt — read this
first. The complete usage guide: every feature and every
component, with copy-paste snippets, in one plain-text fetch.
facet.css — the whole
design system, commented in place: every token and component
documented where it lives.
facet.js — the
behaviours, one small named function each, commented the same way.
Pointing an assistant at Facet? Hand it this:
Use the Facet design library at https://facet-kappa.vercel.app. Read /llms.txt for how to use every feature and component; the fully-commented source is /lib/facet.css and /lib/facet.js. Build pages with semantic HTML plus Facet's classes and data-attributes — no framework, no build step.
Features
What you get
The most impactful things first. Every card names its area; the
complete technical inventory lives in llms.txt
and every piece runs live in the
Component library.
For people
Responds to your device
Raise your phone's text size and the whole interface grows.
Dark mode follows your system. Reduced motion is honoured
everywhere, high-contrast modes strengthen the ink, and layouts
clear the notch and home bar.
For people
Speaks the reader's language
Author content in more than one language and one button flips
the page. Numbers group the local way — lakh and crore where
that is the norm — and big amounts are spelled out in words.
Theming
One attribute restyles everything
data-theme swaps the whole look, layout included. Dark mode
composes with any theme, a single section can wear its own, and
your brand color is one small block of overrides.
App feel
Any page becomes an installable app
Three small files make a page install to the home screen and
work offline. Real screens with a working Back button, a bottom
tab bar, a settings sheet and a floating menu — all self-wiring.
For AI
It helps you think the product through
The build method has your AI
interview you about users and the job to be done, agree a
feature set, and build end to end — teaching as it goes.
For AI
An AI learns all of it in one fetch
llms.txt teaches an assistant every
component and rule in one plain-text read. The pages it builds
stay operable by agents: real buttons, real links, state in the
URL.
Zero setupTwo files, nothing to installOne link and one script from a URL. No npm, no build step, never minified, always up to date.Zero setupPlain HTML already looks designedAround thirty bare tags are styled before any class: headings, tables, forms, code, focus rings, selection.Zero setupWorks with JavaScript offContent, layout, links and forms all work without JS. Scripts only add polish on top.ComponentsA whole component libraryButtons, fields, cards, lists, tables, charts, overlays, navigation, status — live with copy-paste code.ComponentsBlocks and whole templatesTwenty ready page sections, plus eight full starters: landing, dashboard, social app, deck, documents.ComponentsEvery state built inSelected, disabled, busy, error, success — one attribute, and loading skins that trace the content's own shape.App feelMotion, light, sound and touchParallax and shine follow the cursor or the phone's tilt; taps click and vibrate like hardware.App feelLiving backgroundsFaint pattern grids of any glyph you pick, or a fluid field of drifting color.App feelSmooth page transitionsOne attribute and navigation animates — the old page eases away, the new one springs in.ThemingEighteen type faces, one per jobHeadings to barcodes: signature, typewriter, receipt, pixel, hand — plus native faces for four scripts.ThemingBuild your own theme, visuallyA live builder tunes every token and hands you a paste-ready config; Skin Lab compares all themes at once.For peoplePrints like a documentInk on paper, folds opened, controls stepped aside; one attribute says what belongs on the page.
Live library. Every component runs on its page, and the snippet you copy is the demo itself.
AA contrast in every theme, light and dark, verified — not hoped.
Fully keyboard operable with one clear focus ring everywhere.
A serious number input: digits group as you type and the amount is spelled out in words.
Line icons and tooltips on one attribute — no icon files, no wiring; tips open on tap on phones and stay until you scroll.
Themed Google Maps that wear the active palette.
Rough visitor location, opt-in, with no service to set up.
Shareable links keep the look: theme and mode ride the URL.
Headlines scale smoothly from phone to desktop with no breakpoints.
Real scannable barcodes from plain text, for tickets and invoices.
What you can count on
The promises behind every component — the principles the library holds itself to, so you always know what you are getting.
What you can count on
The old feature wall — every card, kept for reference
Features
Everything Facet gives you, grouped by what it is for. Tap any card for the detail. The complete technical inventory also lives in llms.txt for AI tools.