When to use
An action is anything people click to go somewhere or get something done. On the Family Express site the main ones are buttons: softened rectangles with 14 px corners, set in the UI style of Hanken Grotesk. When the pointer or keyboard focus lands on one, a new color rises from the bottom while the label rolls up and out and a copy rolls in. That rolling label is the signature of the interface.
Pick by role, not by taste:
- Button for the main action of a header, hero, section or card.
- Text link for a secondary action next to a button, or a way on at the foot of a card or a section.
- App store buttons only where people are sent to download the Family Express app.
- Icon-only controls for universal controls: menu, close, back, previous and next.
Anatomy
| Part | Rule |
|---|---|
| Container | rounded-button (14 px). A 1 px border is always there, transparent except on the outline tone, so every tone has the same size. |
| Label | UI style: Hanken Grotesk 500, fluid 15 to 17 px, line height 1.1, tracking -0.01em. One line, never wraps. The words come from the content as written: the header CTA is set in capitals in the data (ORDER FOOD), the rest in sentence case. |
| Fill | A second layer in the hover color, scaled from 0 to full height from the bottom edge. |
| Rolling label | The label moves up by 250% of its height and a copy in the hover text color moves in from 150% below. |
| Arrow | Only on buttons that open another site: an up-right arrow, 18 px, 8 px after the label. Internal buttons have no arrow. |
Tones
| Tone | Base | Text | Hover fill | Hover text |
|---|---|---|---|---|
| Accent | accent (red) | paper | ink | paper |
| Ink | ink | paper | accent (red) | paper |
| Pastel | pastel | ink | ink | pastel |
| Outline | none, 1 px border in the text color | text color | ink | paper |
Once the fill has risen, the button’s own background switches to the fill color, so no trace of the base color lingers at the rounded corners.
External and app buttons
App store buttons
They are 56 px tall with 20 px side padding: the caption (Download on the, Get it on) sits over the store name in the UI style. Both open the app’s share link in a new tab and sit in a list named “Get the Family Express app”.
Text links
Text links share the UI style and a 2 px underline set 0.35em below the text. They are at least 44 px tall and take the text color of the field they sit on, ink on light fields and pastel on night.
Back links
Step and list buttons
These buttons change color in 180 ms instead of rolling their label: they repeat many times on a page or sit in a flow, where a quieter response fits. The job board uses an outline button for Load more positions.
Icon-only controls
States
The roll lasts 360 ms (--duration-base) on the quart ease-out curve; color-only changes take 180 ms (--duration-fast). Under reduced motion both drop to zero and the state changes at once. Hover the specimens to see it.
Sizes
On phones, a section’s main action, form actions and the Continue and Back of a flow span the container width, stacked with the primary action first.
Usage
- Name the action. Find a location, Request a quote, Subscribe now. Not Submit or Click here.
- No new shapes. Buttons keep 14 px corners; full circles are only for icon-only controls.
- No new colors. Accent, ink, pastel and outline are the only tones. Text on red is paper, never ink.
Accessibility
- Every action is at least 44 px tall, icon-only controls included.
- Keyboard focus shows a 3 px ring, 3 px away, in the field’s text color (ink on light fields, pastel on night), and triggers the same roll as hover.
- Links that go somewhere are links; actions that change the page are buttons.
- Icon-only controls carry a name: Menu and Close menu (the toggle also reports whether it is expanded), Close, Previous slide, Next slide, and the step name on the round back button.
- Actions that open a new tab say so to screen readers: “(opens in a new tab)”.
- Under reduced motion the label swaps without rolling and the menu glyphs change without turning.
Source
- Website
-
components/ui/OvalButton.tsxcomponents/ui/TextLink.tsxcomponents/ui/AppStoreButtons.tsxcomponents/ui/AppTagLink.tsxcomponents/navigation/MobileMenu.tsxcomponents/motion/HeroSlider.tsxcomponents/sections/ExploreParent.tsxcomponents/custom-cookies/shared.tsxcomponents/custom-cookies/CookieFlowHeader.tsxcomponents/sections/MenuBrowser.tsx