Hexline
About this demo
What Hexline is, how it was built with the Division DS design system, and how you could build something like it yourself.
What Hexline is
Hexline is a made-up online shop for airsoft, the team sport played with replicas that fire small plastic pellets. Nothing here is for sale and no order is ever sent anywhere. It's a demo: a realistic place to put the design system to work.
It's written for people shopping for airsoft kit, and for the shop's own staff. As a shopper you can browse the shop and filter it, open a product page, add items to the cart, go through checkout and see an order confirmation. You can create an account, sign in, set up your profile and look at your orders and settings. There are Field notes (short care guides) and Hexline Care, a made-up service plan with monthly and yearly prices. The staff side, linked from the footer, has a dashboard, an inventory table and settings.
How it was built with Division DS
Division DS is a design system: a shared kit of ready-made interface parts, called components (a button, a form field, a table), plus the rules for using them. Every screen in Hexline is put together from those components. Hexline uses 50 of them:
Alert, AlertDialog, AuthForm, Avatar, AvatarGroup, Badge, Breadcrumbs, Button, Card, Carousel, Cart, ChartPanel, Checkbox, CheckoutForm, CodeBlock, DataTable, DropdownMenu, EmptyState, Footer, FormField, IconButton, Input, Link, ListItem, LoadingAnimation, MultiSelect, Navbar, NewsletterForm, PageHeader, Pagination, ProductCard, QuantityStepper, Radio, Rating, Search, SectionHeading, Select, Sheet, Sidebar, Skeleton, Slider, Spinner, Stat, Stepper, Switch, Tabs, Tag, Textarea, Toast, Tooltip.
It follows the system's rules. Every colour is a token, a named value such as --color-text-primary that stands for a colour in both the light and the dark theme, so the code never contains a raw colour value. Buttons never touch each other. Scripts called gates check these rules automatically, and the project won't pass its checks if one fails.
Hexline was built AI-natively, which means an AI (artificial intelligence) coding assistant wrote the code while a designer directed and reviewed it. The assistant was Claude Code, a tool from Anthropic that reads and edits a project from the terminal (the text window where you type commands). Hexline came first, before the division-ds skill existed. It was built under the rules that now live in the project's AGENTS.md file, and the skill was later generated from those same rules. A skill is a folder of instructions an AI assistant loads when a task needs it; this one is in skills/division-ds.
Example prompts
A prompt is the instruction you type to an AI coding assistant. These would get you screens like Hexline's.
A shop page with filters
Using the division-ds skill, build a shop page for an airsoft store. Start with commands/build.md and list the regions and their states first. Use PageHeader for the title, Search and Select for the filters, a grid of ProductCard for the results, Pagination under the grid, and EmptyState when the filters match nothing. Keep the chosen filters in the address bar so a shared link opens the same results.A cart that opens from the top bar
Add a cart button to the Navbar with IconButton. Its accessible name must say how many items are in the cart, for example "Cart, 2 items". It opens a Sheet that holds the Cart component. Removing an item shows a Toast. Use only colour tokens from public/llms-tokens.txt.A checkout form that explains its errors
Build a checkout page with CheckoutForm. Every field sits in a FormField with a visible label. When the form is sent with mistakes, show an ErrorSummary at the top that links to each field, and keep the buttons apart by the gap the forms topic asks for. Run the division-ds check on the file when you are done.A back-office stock table
Build an inventory screen for the shop staff: a row of Stat figures at the top, then a DataTable of products with sorting and row selection, and an action for the selected rows. Plan the empty, loading and error states before writing code, and go through commands/review.md before saying it is done.Build a similar project, step by step
From a copy of the project to a finished, checked product. Type each command in a terminal, inside the project's folder.
Get the tools
Install Git, the tool that keeps a project's files and their history, and Node.js 22 or newer, which runs the project's scripts. Node.js comes with npm (Node Package Manager), which downloads the code libraries a project needs.
Copy the project
Copy the project from its Git repository (the online home of its files and history), then move into the folder it creates:
bashgit clone https://github.com/Victor-Ilioiu/division-ds.gitcd division-dsInstall what it needs
bashnpm installStart it on your computer
bashnpm run devOpen the local address it prints in a browser. Hexline is at
/demo.Load the skill
bashnpx skills add https://github.com/Victor-Ilioiu/division-ds --skill division-dsThis gives your AI coding assistant the division-ds skill. The Install page has the other ways, including a Claude Code plugin, and how to add single components to a project you already have. Inside this repository, Claude Code also reads
CLAUDE.md, which sends it toAGENTS.mdand its rules.Plan the screen before any code
Follow
skills/division-ds/commands/build.md. List the screen's regions from top to bottom, and for each one write what it shows when it's empty, loading, failed, successful, or not allowed. Then pick a component for each frompublic/llms.txt.Build it with prompts
Ask for one screen at a time, naming the components and states from your plan, like the example prompts above.
Check the files you wrote
bashnode scripts/division-ds.mjs check src/demoIt flags a raw colour, a made-up token, buttons that touch, and a property a component doesn't have. In a different project, run the same script from your copy of this repository:
node path/to/division-ds/scripts/division-ds.mjs checkfollowed by your files or folders.Run every check and the unit tests
bashnpm run verifyThis checks the types, runs every gate and runs the unit tests (small automated tests of one piece at a time). It changes no files.
Run the end-to-end tests
bashnpm run test:e2eEnd-to-end (e2e) tests open the real pages in a browser and use them the way a person would, including an accessibility scan of every page in both themes.
Build the finished site
bashnpm run buildThis runs the gates again, then produces the files you'd put on a web server.
The case study
The full story of Division DS, why it was made and how it was built for AI assistants as well as people, is in the Division design system case study.