The pointy-top hex primitive. Every diagram in the kit composes from this one element. Label, icon, both at once, nine brand colours, four sizes, solid or outline, optional interactive state with keyboard activation.
<cn-hex size="md">Connect</cn-hex> <cn-hex size="lg" color="orange">Build</cn-hex> <cn-hex size="xl" color="mint">Catalog</cn-hex>
<cn-hex size="md"> <svg slot="icon" viewBox="0 0 24 24" ...>...</svg> </cn-hex>
<cn-hex size="lg"> <svg slot="icon" ...>...</svg> Catalog </cn-hex>
<cn-hex size="xl" layout="horizontal"> <svg slot="icon" ...>...</svg> Catalog </cn-hex>
| Slot | Purpose |
|---|---|
(default) | Label text. Optional. Plain text or any inline content. |
icon | Icon SVG or <img>. Optional. Sits above the label by default; left of it with layout="horizontal". Inherits currentColor. |
| Attribute | Values | Default | Purpose |
|---|---|---|---|
color | cobalt · orange · mint · lavender · terracotta · forest · nextcloud · commonground · red | cobalt | Brand colour. Names only, no hex codes. Use nextcloud for Nextcloud refs and commonground for Common Ground refs (parallel to how their own brands use them). |
size | sm (40px) · md (64px) · lg (96px) · xl (128px), or any CSS length | md | Width of the hex. Height = width × 1.155. |
variant | solid · outline | solid | Outline draws a stroke at the brand colour with a transparent body. |
layout | vertical · horizontal | vertical | Icon-above-label vs icon-left-of-label. |
interactive | boolean (presence) | absent | Adds cursor: pointer, hover scale, focus ring, tabindex="0", role="button", Enter/Space activation. |
Every hex on every Conduction surface goes through this one element. If the rules live here, they hold everywhere automatically.
commonground) gets cobalt-900 ink so the label still hits AA contrast.