---
type: Guideline
title: Semantic roles, never raw values
description: "Components reference a semantic role. Never a hex, and never a primitive step."
status: released
tags: [color]
---

**Rule.** Write `var(--accent-solid)`, not its hex and not `--blue-9`. The semantic layer is the only layer surfaces touch.

**Why.** The values are generated and retuned from `tokens.json`; names hold when values move. A role also flips with the mode and the register, and a raw value doesn't.

**The stylesheet holds to it.** `style.css` contains no raw colors, sizes or fonts.

**Check.** No raw hex and no font name in anything you authored.
