The Aheenam design system.

Tactile, layered, quiet. Controls look like objects, every surface takes its fill, edge and drop from what it sits on, and hierarchy comes from contrast, not colour. This page is the reference the rest of the site is built from.

Charcoal grayscaleState coloursLight and darkOne weightBased on tactile-design

Principles

Tactile

Buttons are white objects with a fine ring and a crisp drop. They squeeze to 97% when pressed. Fields sink in as wells. One action per surface is solid charcoal.

Layered

Each surface is a ground, a panel, a raised card, a well or an overlay. A control borrows its fill, edge and drop from the surface under it, in both themes.

Quiet

One type weight, a charcoal neutral palette and 0.5px lines. Colour appears only to show state. Motion is short and always has a reason.

Colour

A 12-step charcoal neutral. Steps 1 to 2 are grounds, 3 to 5 fills, 6 to 8 lines, 9 to 10 faint text, 11 secondary text and 12 strong text and the primary fill.

Light
ink-1#fcfcfc
ink-2#f6f6f6
ink-3#eeeeee
ink-4#e6e6e6
ink-5#dedede
ink-6#d6d6d6
ink-7#c9c9c9
ink-8#b3b3b3
ink-9#838383
ink-10#666666
ink-11#4a4a4a
ink-12#1c1c1c
Dark
ink-1#121212
ink-2#1a1a1a
ink-3#232323
ink-4#2b2b2b
ink-5#333333
ink-6#3d3d3d
ink-7#4b4b4b
ink-8#656565
ink-9#7a7a7a
ink-10#8f8f8f
ink-11#b9b9b9
ink-12#eeeeee

The neutral carries all structure. Hue is reserved for state and is never mixed into the neutral. State colours are documented below.

RoleTokenLightDark
Ground--groundink-2#080808, one step below ink-1
Panel--panelwhiteink-1
Raised--raisedwhiteink-2
Control fill--c-controlwhiteparent plus 2 steps
Well--c-wellink-3ink-3
Primary--primary-bgink-12ink-12
Hairline--lineink-6 at 0.5pxink-5 at 0.5px
Focus ring--focus-ringink-10, 2pxink-10, 2px

State colours

The only hue on the site. Seven states, five tokens each: subtle is the tint fill, line the edge, base the solid,fg the text on subtle and on the text on base. Text pairs meet 4.5:1 in both themes.

Danger Failed, error, deleted, destructive
Subtle--danger-subtle
Line--danger-line
Base--danger-base
Fg--danger-fg
On--danger-on
Warning Needs attention soon
Subtle--warning-subtle
Line--warning-line
Base--warning-base
Fg--warning-fg
On--warning-on
Caution Draft, check before use
Subtle--caution-subtle
Line--caution-line
Base--caution-base
Fg--caution-fg
On--caution-on
Success Live, done, released
Subtle--success-subtle
Line--success-line
Base--success-base
Fg--success-fg
On--success-on
Info Information, beta
Subtle--info-subtle
Line--info-line
Base--info-base
Fg--info-fg
On--info-on
Highlight New, featured
Subtle--highlight-subtle
Line--highlight-line
Base--highlight-base
Fg--highlight-fg
On--highlight-on
Neutral Inactive, default
Subtle--neutral-subtle
Line--neutral-line
Base--neutral-base
Fg--neutral-fg
On--neutral-on

Showing the current theme. Switch themes with the button in the nav to see the other. Tokens are named --danger-subtle, --danger-line, --danger-base, --danger-fg and --danger-on, and likewise for each state.

Badges in four styles

StateSoftTintSolidOutline
DangerDangerDangerDangerDanger
WarningWarningWarningWarningWarning
CautionCautionCautionCautionCaution
SuccessSuccessSuccessSuccessSuccess
InfoInfoInfoInfoInfo
HighlightHighlightHighlightHighlightHighlight
NeutralNeutralNeutralNeutralNeutral

Status labels

ActivePendingFailedDraftBetaNewNeeds attention

A label is a soft badge with a dot in the state’s base colour.

Destructive actions

The trigger is white with danger text. Only the final confirm inside its dialog is solid danger.

Alerts

Sync is offYour changes stay on this device until you turn sync on.
List savedYour changes are on every device.
Storage almost fullExport your log before clearing browser data.
Message not sentCheck your connection and try again.
TemplateReplace every highlighted field before launch.
New in 2.4Pin a shop to the top of the app.
StateMeansUsed on this site
DangerFailed, error, deletedForm errors, delete confirm
WarningNeeds attention soonAttachment over 10 MB
CautionDraft, check before useTemplate notes, bracketed fields
SuccessLive, done, releasedReleased apps, sent messages, fixes
InfoInformation, betaBeta apps, notices, improvements
HighlightNew, featuredNew posts, new features
NeutralInactive, defaultLatest label

Hue never ranks importance and never fills a button, apart from the final destructive confirm. Status wins when two meanings clash.

Type

Inter at one weight for every word of interface, JetBrains Mono for machine values only. Hierarchy is a size step plus an ink step. The product scale is the default; the marketing scale extends it for pages.

Hero68 / 1.02 · -0.03em
Marketing
Software that feels good to use
Heading40 / 1.1 · -0.02em
Marketing
Our apps
Lead19 / 30
Marketing
A design and technology studio.
Body16 / 26
Marketing
Aheenam builds its own apps.
Section title20 / 28
Product
Aisle Zero
Card title16 / 24
Product
All Todos
Card text15 / 23
Product
A grocery list that follows the order of the store.
Controls13 / 20 · -0.01em
Product
Save changes
Meta12 / 16
Product
Quiet hours apply
Mono13 / 20
Machine values
--primary-bg: #1c1c1c

Space, radius and elevation

Spacing, on a 4px grid

space-44px
space-88px
space-1212px
space-1616px
space-2020px
space-2424px
space-3232px
space-4848px
space-6464px

Radius ladder

Set --radius-control to match the logo and icons. The rest follow.

xs 3
control 6
container 8
feature 12
full
Button
ring and 1px drop
Card
plus 3px under-drop
Panel
a whisper
Menu
plus 4px under-drop
Modal
plus 6px under-drop

Components

Live. Press, hover and tab through them.

Buttons

One primary per surface, and only when it is the real next step. Heights: 44 large and phone, 36 default, 32 compact, 28 pills and icon buttons. Press scales to 97% in 150ms.

Fields and choices

Focus deepens the well and draws the 2px focus ring for keyboard users.
Enter an email address like name@company.com.

Toggles, badges and keys

NeutralSolidiOSWeb⌘K

Segmented pills and knobs use a short spring: bounce 0.12 for the pill, 0.2 for the knob, so the overshoot stays inside the track.

Menu

36px items, 2px apart. The highlighted item is one step above its ground, the chosen item two. No tick.

Toast and dialog

A toast is for a result the person cannot otherwise see. It never confirms a copy. A dialog is for a focused task or a confirm, and becomes a bottom sheet on a phone.

Table

TokenDefaultUsed for
--control-h36px, 44px on phonesButtons and fields
--hairline0.5pxEvery structural line
--dur-hover150msHover, press, colour
--dur-modal240msDialog in, with a 16px rise

Logo

The Aheenam mark, drawn in a single colour. It is the same artwork as on aheenam.com.

  • One slot: the <symbol id="logo"> in the page source. Every instance reads it.
  • Draws in currentColor, so it follows ink-12 in both themes. A full-colour or raster mark can replace it.
  • Sizes: 28px in the nav, 40px in the footer, never below 20px.
  • Clear space of one quarter of the mark’s width on every side.
  • Set --radius-control after the mark if its corners suggest a different value.

Motion

TokenValueRole
--ease-outcubic-bezier(.23, 1, .32, 1)Anything the person caused
--dur-hover150msHover, press, menu in
--dur-swap200msContent swaps, exits
--dur-modal240msDialog in
Reduced motionTravel, blur and scale removedShort crossfade only

Never ship

  • More than one primary on a surface, or a primary that is not the real next step.
  • Hierarchy made with bold or colour. Use a size step and an ink step.
  • A state colour used for decoration, to rank importance, or on a button other than the final destructive confirm.
  • Big soft shadows, a glow in dark mode, or an edge thicker than 0.5px in dark.
  • A fill, edge or drop that ignores the surface beneath it.
  • Text someone must read under 4.5:1 contrast, or touch targets under 44pt.
  • transition: all, ease-in on interface, or a transition with no reduced-motion path.