Use this skill to build user interfaces with Arena, a token-driven design system with React and Angular component libraries on a shared Tailwind layer, for production screens or for throwaway prototypes and mocks. Covers design tokens, colour, type, spacing, motion, iconography, and the accessibility pattern each component binds. Arena carries the design language and not the skin: it ships Dravensoft's palette and fonts, and any project declares its own in arena.config.json and answers the ke...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Design?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/dravensoft-dev-design)
---
name: design
license: MIT
description: "Use this skill to build user interfaces with Arena, a token-driven design system with React and Angular component libraries on a shared Tailwind layer, for production screens or for throwaway prototypes and mocks. Covers design tokens, colour, type, spacing, motion, iconography, and the accessibility pattern each component binds. Arena carries the design language and not the skin: it ships Dravensoft's palette and fonts, and any project declares its own in arena.config.json and answers the kernel's style roles with a style plugin of its own."
metadata:
homepage: https://arena.dravensoft.org
---
# Arena
Arena is Dravensoft's design language: a token layer, React and Angular component libraries built
on that layer, and a shared Tailwind layer. Arena's identity is warm black under bone text, with
crimson as the voice and gold as distinction.
**Arena is a product-application library.** Arena ships tables, forms, navigation, dialogs,
charts, cards and the states around them, which is the furniture of an application somebody works
in. A
media or a consumer product is a different register. A photo wall, a feed of posts, a document
editor or a game map is markup you write yourself. The skin travels either way, because a style
plugin's answers hold whatever the product is. **When that is your product**, or one screen of
it, read [`references/media-register.md`](./references/media-register.md). That page is what Arena
hands you instead of a component: the pattern your markup binds, the parts the package already
ships for it, and how the rules read there.
**This file routes. Read only what your task needs.** The rules below bind the code you write.
The table under them routes. Read the rules once per project, not once per screen.
## Which job is this?
**Building something with Arena**, meaning a screen, a prototype, a skin or an integration: stay
here and follow the table below. **On a project you have not walked yet**, start at
[`references/cold-start.md`](./references/cold-start.md) instead. That page's first question is
whether the project already carries Arena. A project that does gets a short walk, which reads the config
and the style plugin already there. A project that does not gets the only page that asks what this
product looks like before anything answers.
**Changing Arena itself**, meaning adding a component, moving a token, or editing a contract or a
gate: read [`AGENTS.md`](../../AGENTS.md) instead.
That file is the root of the other branch and this file is not. The path is relative to a clone.
A published copy of this file points that link at the repository, because that branch belongs
to the repository and reaches nothing a package or this site carries.
**A value you answer is not a value you move**, and that is what decides the branch when the job
is an appearance. A role your project fills belongs to this branch, whatever it paints. A scale
step every product reads belongs to the other branch. The type ladder and the page rhythm ladder
are the exceptions.
**Every path here outside `references/` is a repository path.** A clone carries it. So does the
plugin, and so does the corpus `@dravensoft/arena-mcp` serves. Read the path on the repository
above when you have none of the three.
## In this order
**Settle what this product is and what it looks like before the first screen**, once per project
rather than once per screen. A screen written ahead of those decisions is written against
decisions nobody made. [`references/cold-start.md`](./references/cold-start.md) is where that
happens, and that page is a tree rather than a list. The tree's branches reach the four decisions
a project settles once. Four more branches reach past them. One is the interview that comes
first when there is no appearance to read. One is the catalogue of measured style plugins a
project can start from instead. One is the identity document every branch converges on before a
file is written. One is the [node for the decisions every screen inherits](./references/cold-start.md#7-the-decisions-every-screen-inherits):
colour slots, density, language, theme switching and the page skeleton. Two questions on the
tree decide an install rather than a screen: how much of the product has to be found from outside
it, and what it is assembled on. The tree's last node derives the dependency list from those two
answers, so nothing has to be guessed at install time.
Then, per screen:
1. **`frameworks/<layer>/INDEX.md`**: the directory of your framework's components, naming every
one under the category it is filed under. Read your layer's index and no other. The page is
short because it describes nothing. The page names the category that holds what you are
reaching for.
2. **`frameworks/<layer>/components/<category>/INDEX.md`**, linked from there: every component in
that category under the names the layer binds them to, with what each one is and what it takes.
Each row links its own prompt. Read the categories you are reaching into and no others. A screen
of any size reaches into two or three, and the saving is the four you skip.
3. **The component's own `.prompt.md`**, linked from that index: its members as a table, its
examples and its Do and Don't. Read one per component you actually write, and no more.
[`frameworks/INDEX.md`](../../frameworks/INDEX.md) is the layer-neutral index beside those three.
That index answers the one question your layer's index cannot, and the table below routes that
question. Skip the layer-neutral index when you already know what you are reaching for.
A prompt states every member's type and default. So `contracts/api/components/<Name>.json` is
only for the reasoning behind a member, and you will rarely need it.
## The rules, and they are not style preferences
<!-- @language GENERATED by bun run generate:rules. Edit scripts/lib/arena/language-rules.ts, not this copy. -->
Every rule below is a rule of the language and not a preference. **`arena audit` reads your own
sources and reports the ones marked below.** It reports rather than fails, so add `--strict=audit`
where a finding should stop the run. Nothing reads your application for the unmarked ones, and
those hold because you hold them. The full record, with the reason each unmarked rule is one a
source text cannot show, is `arena://rules` on the MCP server.
- **Tokens are the only styling layer.** A raw colour is a bug, as is a bare `16px`. A hex, a
channel triple in `rgb()` or `oklch()`, and a colour's own name are one defect written three
ways. Read a value through its custom property, as `var(--ink-body)` or `var(--sp-4)`. Derive
one with `calc()` or `clamp()`, or mix one with `color-mix()`, over a token. A bracket value in
a class, as `p-[13px]`, is the same raw value. A bracket may hold a `var()` of a token, a
`calc()`, `min()`, `max()` or `clamp()` over tokens, or one value in a unit no token models,
such as `%`, `ch` or `vw`. **`arena audit` reports this one, as `raw-value`.**
- **A role that names a level is read with that level.** Under the default skin `--ink-muted` and
`--ink-body` are one colour, and the level is what holds a caption back. Write
`text-ink-muted/(--level-ink-muted)` in a class, and `color-mix(in oklab, var(--ink-muted)
var(--level-ink-muted), transparent)` in a stylesheet. A literal share, as `/62`, cannot follow
a level `arena build` raises. The combines-with column of the token tree names the level of each
role. **`arena audit` reports this one, as `missing-level`.**
- **Only a class of the vocabulary goes on an Arena component.** Write it as a literal on the
component, or on a container whose components all take it. Write no rule targeting a component:
its `arena-<component>__<part>` classes are compiler output no contract names, and a part may be
renamed. Every class you may write is on the vocabulary page; your own content uses the same
tokens. React checks the class at compile time, Angular through the audit. **`arena audit`
reports this one, as `own-class`.**
- **Appearance is a class of the vocabulary, never a member.** How wide, how large or how quiet a
component is, is decided by a class, as `arena-fill`.
- **No emoji, in product or in copy.** **`arena audit` reports this one, as `emoji`.**
- **Icons are Phosphor class-name strings, drawn by Arena's components or by ArenaIcon; a raw ph-*
element paints nothing.** Write `icon="ph-bold ph-plus"`. An element passed to `icon` or
`iconRight` in braces is reported as `icon-element`. Arena draws each glyph from the sprite
`arena build` writes, and a raw `ph-*` element needs the project's own `@phosphor-icons/web`,
which Arena never bundles. A static page has no build, so it links the weight sheets for its raw
`ph-*` elements, as `references/artifact.md` shows. **`arena audit` reports this one, as
`raw-glyph`.**
- **Never wrap an Arena component in your router's own link.** That nests an anchor inside an
anchor, and in Angular it does not bind at all. Pass the href to the component and route from
the event it reports. An `ArenaLink` inside a link of your own is reported as `wrapped-link`.
The members that take an href: `ArenaBottomNavItem.href`, `ArenaCard.href`,
`ArenaCommand.route`, `ArenaCrumb.href`, `ArenaLink.href`, `ArenaSideNavItem.href` and
`ArenaTableCell.href`. **`arena audit` reports this one, as `router-link`.**
- **An anchor Arena draws splits its activations.** A primary click with no modifier, and Enter,
are cancelled and reported through the component's own event. Route from that handler and
nothing navigates twice. A modified click, a middle click and the context menu belong to the
browser, which opens the `href` and reports nothing.
- **A press that starts on a control keeps to that control.** Arena draws an activation target
around content you write, such as a card or a table row. A click or an Enter that begins on a
button, a link or a field inside that target runs the control and nothing else. A press
elsewhere on the surface activates it. So a card or a row may hold controls of your own, or hand
the press over entirely by not being interactive.
- **Two themes, dark first.** Arena's own palettes are dark on `:root` and `.arena-dark`, and
light on `.arena-light`. A project's palettes are the `.arena-<name>` classes its config
declares, its default on `:root`, and each class goes on any element. Components never rewrite
per theme; they read tokens. `.arena-compact` and `.arena-comfortable` are the density family on
the vocabulary page, `frameworks/VOCABULARY.md`: the first re-densifies the controls, the second
grows them to a 48px touch target, and the two are exclusive.
- **Copy is formal and direct, in the product's language.** Concrete verbs, no boasting; an error
is blame-free and says what to do next. Arena's words follow the locale.
- **A required member absent is a caller bug.** It is not a state to render. Every layer fails
hard rather than drawing something empty, so it is loud on the first render.
- **No render follows from whether you bound a listener or filled a slot.** A member decides,
always, because at least one platform cannot ask the question.
- **A few components answer with a method rather than a member.** No member is imperative. The
component's own document names the methods where they exist.
<!-- @language end -->
## Where each question is answered
| Question | Read |
|---|---|
| I am starting a project that has no appearance yet. What do I ask, and in what order? | [`references/cold-start.md`](./references/cold-start.md): the tree, its five questions, the catalogue of measured style plugins, and the identity document every branch converges on |
| Which layer, which architecture, and what do I have to install? | [`references/cold-start.md`](./references/cold-start.md), at its last four nodes. How much the product has to be found decides the layer and a peer. What the product is assembled on is answered per architecture, with the evidence for each. The dependency list follows from the answers |
| What may I build this with, and how sure is Arena about each answer? | [`references/stack.md`](./references/stack.md): the package manager, the runner, the module format, the bundler and the framework version, each answer carrying the evidence it actually has. Arena is built with bun, React 18 and Angular 22, and none of that is a requirement on you |
| What do I write in my bundler's config, and what does my bundler do differently from the others? | [`references/bundlers/index.md`](./references/bundlers/index.md): one row per bundler saying whether Arena's JS and its package sheet can sit in files of their own. Then the one page of that bundler's family, with its config and what it does differently. Read that page and no other |
| Which bundlers, and which Angular builder, was Arena tested on, with what figures? | [`references/environments.md`](./references/environments.md): one row per bundler with its version, what was measured, the date and the Arena version, and the ones that cannot keep Arena in a chunk of its own. A record, not a recommendation |
| How do I make Arena look like my own product? | [`references/style-kernel.md`](./references/style-kernel.md), once per project and before the first screen |
| What changes the look? | [`references/style-kernel.md`](./references/style-kernel.md#the-three-files-you-write): the three files you write, and what each one moves |
| What colours a group of components? | [`references/color-slots/index.md`](./references/color-slots/index.md), which links the page of each group |
| Does what I am building have to be found from outside it? | [`references/seo.md`](./references/seo.md), once per project: what Arena writes into the `<head>`, and which layer writes it |
| What is a role or a token called, what does it ask, and what is its value? | [`references/tokens/index.md`](./references/tokens/index.md), by who you are. `contracts/design/roles.json` has one entry per role with no value, and the DTCG JSON for each group in `contracts/design/` is the machine-readable form. `contracts/design/colors.css` and `contracts/design/environment.css` hold what DTCG cannot |
| Does a component like this exist at all, and what if it does not? | [`frameworks/INDEX.md`](../../frameworks/INDEX.md), which also says which layers ship it. A no is one of three. Your product is a different register and the markup is yours: [`references/media-register.md`](./references/media-register.md). Arena ships none on purpose: the last section of [`references/surface.md`](./references/surface.md) states that with the reason. Or nobody has added one, which is the other branch, named at the top of this page |
| Which category holds the component I am reaching for? | `frameworks/<layer>/INDEX.md`, which names every one of them and describes none |
| What is it called in my framework, what does it take, and where is its prompt? | `frameworks/<layer>/components/<category>/INDEX.md` |
| How do I use this component? | the component's own `.prompt.md`, linked from that index |
| How do I make this one wider, smaller, filled or quieter? | [`frameworks/VOCABULARY.md`](../../frameworks/VOCABULARY.md): every class you may write on a component, and the components that answer it. Quiet is `emphasis` `secondary`/`ghost`, or a spinner's `arena-accent-muted` |
| Where is each style decision made, and which of them are mine? | [`references/style.md`](./references/style.md): the five places, and the two you write in |
| What exactly does this member take? | the members table in that same prompt |
| Why does this member exist at all? | `contracts/api/components/<Name>.json` |
| What else is exported: what each export promises; confirmations and toasts raised from code; a focus trap and roving focus; hidden labels and tabular figures? How do I colour a legend, a chip or a chart library, route an activation of your own, or change density below a breakpoint? How do I window a long table, or take Angular projection markers, reactive forms and the file input? How do I size a layout or a panel? | [exports](./references/exports.md), then [shell](./references/shell.md) for a frame. Switching palettes is [theme](./references/theme.md) and Arena's words are [locale](./references/locale.md) |
| What do I paint the floor of my page with? | [`references/page.md`](./references/page.md): the floor, the face and the canvas that Arena leaves to you. **Arena paints no page of yours** |
| What do I paint my own markup with? | [`references/tokens/markup/index.md`](./references/tokens/markup/index.md): one page per task, each giving the roles that task reads, and why a role follows the skin where an alias follows the palette |
| How much air goes between two components, and what column does the page sit in? | [`references/style.md`](./references/style.md): the four classes the column is made of, and the stack and row steps as classes and as tokens. That page also draws the cut between air you place and air the kernel answers |
| How much does a region hold, and what do compact and comfortable change? | [`references/style.md`](./references/style.md#density): the two classes, what each re-answers and where to write one. The value each gives is on [the density page](./references/tokens/scales/density.md) |
| How do I assemble a page: skip link, landmarks, side nav beside content? | [shell](./references/shell.md): the skeleton in each layer, which landmark each piece is, how wide the rail is and how the title follows the route |
| What does Arena ship at all, and how much of it do I have to take? | [`references/surface.md`](./references/surface.md): every part in one table with the document that owns it, and three steps a project can stop at |
| Where does Arena stop? | the last section of [`references/surface.md`](./references/surface.md), which is a list of decisions rather than gaps waiting to close |
| What does a value mean, and why is it that? | [`contracts/design/Scales.md`](../../contracts/design/Scales.md), the tables half of the design specification |
| What must this kind of component do to be accessible, and what does an Arena one promise? | `contracts/behaviour/<pattern>.json`, one file per pattern and shipped inside your package. The page handing you the markup names the file it binds: [`references/media-register.md`](./references/media-register.md) for a feed, a lightbox or a viewer, [`references/seo.md`](./references/seo.md) for structured data. What one of Arena's own components does is its `.prompt.md`; the file recording which pattern it binds is what Arena is held to, not a document you read |
| I want a static mock or a throwaway prototype with no build step. What do I link? | [`references/artifact.md`](./references/artifact.md) |
| How do I install Arena in my app? | [install](./references/install.md), then [config](./references/config.md) for `arena.config.json`, [cli](./references/cli.md) for the `arena` command and [stylesheets](./references/stylesheets.md) for the import depth |
| Contracts, an editor server, or two package versions? | [contracts](./references/contracts.md), [mcp](./references/mcp.md), [versioning](./references/versioning.md) |
| What does every component look like at once? | `frameworks/react/kitchen-sink/`, and the same page in `frameworks/angular/` |
| What does a token look like on screen? | `intro/guidelines/*.html`, the specimen cards |
| Arena itself is wrong, or one of these pages sent me somewhere empty. Where does that go? | [`CONTRIBUTING.md`](../../CONTRIBUTING.md), which takes an issue and a pull request alike, and says what makes either usable. A question this documentation did not answer is one of them |
**Do not read these to build something.** `contracts/api/AGENTS.md`,
`contracts/behaviour/AGENTS.md`, `frameworks/PACKAGING.md`, and each layer's own `AGENTS.md`
are about *changing* Arena, not about using it. Those four documents are large, and none of them
answers a question in the table above.
## Two ways to deliver
**A visual artifact** (a slide, a mock, a throwaway prototype): copy the assets you need out
of `assets/`, and write static HTML that links `intro/styles.css` and Phosphor's sheets. Neither
ships in a package; https://arena.dravensoft.org serves the first and a CDN the second ([artifact](./references/artifact.md)).
**Production code**: use the component library for the consumer's framework, import from
`@dravensoft/arena-react` or `@dravensoft/arena-angular`, and follow the prompts. The rules above
bind every line of it, and the one broken most often is the second.
**How a screen is composed is yours, and the silence is deliberate, and it is about the shape
rather than about the inventory.** Arena ships the pieces and no shape they must make: a console
and a reading view are different pages before they are different components. Start from what the
application is, and take the frame from [`references/shell.md`](./references/shell.md) and the pieces from [`references/page.md`](./references/page.md), which holds every one of them.
Arena keeps the questions and every answer is a style plugin. The reasoning under the appearance
decision above is
[`contracts/design/StylePlugins.md`](../../contracts/design/StylePlugins.md).
## Ask before you build
**A brief names a product and never a palette, so the questions are always the same ones**, and a
one-line brief is the normal case rather than the empty one. Which ones to ask, in what order, and
what each answer unlocks is the tree named above. **Invoked with no guidance at
all**, ask what the user wants to build and then walk that tree from its first node. Then act as an
expert in the Arena language and produce either an HTML artifact or production code, whichever the
answer calls for.