+234 Design System

Shape

Radius, rule weights and the three permitted shadows. The restraint here is the whole difference between a newspaper and a SaaS dashboard.

Radius

The old frontend used rounded-xl 354 times and rounded-full 289 times. Nothing in this system goes past 4px except pill, which is for tags and chips only. A test fails the build on any radius token over 4px.

--p234-radius-none0
--p234-radius-sm2px
--p234-radius-md4px
--p234-radius-pill999px

Rules

Rules carry the layout. The hairline separates stories, the thick rule heads a section, the heavy rule is the masthead and the live band.

--p234-border-hairline1pxDefault rule between stories.
--p234-border-thick2pxSection heading underline.
--p234-border-heavy4pxMasthead rule and the live band.

The three weights in order




HTML
<hr class="p234-rule">
<hr class="p234-rule p234-rule--section">
<hr class="p234-rule p234-rule--masthead">

Shadow

Three, and two of them are for things that genuinely float. An editorial page separates with rules. If a card needs a shadow to feel separate, it needed a rule.

--p234-shadow-nonenone
--p234-shadow-raise0 1px 2px rgba(26, 26, 24, 0.06)Sticky masthead once the page scrolls.
--p234-shadow-overlay0 8px 24px rgba(26, 26, 24, 0.16)Menus, dialogs, the search panel.

What this rules out