App components / Cards & trays
Card
A container for one thing. In the page it's flat: a hairline border, no shadow, with header, body and footer split by hairlines. When it floats it becomes Ochre's tray holding a raised card, with the header and footer on the tray.
Code
The component itself, ready to drop into your project. Switch between React, Vue and plain HTML; every version uses the same Tailwind classes on Ochre's tokens.
NW-Q3 · Project
Q3 roadmap
Ships the new onboarding and usage-based billing.
Installation
Examples
Raised
The floating anatomy: title on the tray, content in the raised card, actions below.
Invite people
Maya Shah
maya@northwind.com
Tom Okafor
tom@northwind.com
In a grid
Interactive flat cards: each lifts on hover and presses in when clicked.
Sizes
S, M, L, XL and XXL, flat and raised in turn.
Size S
Usage-based billing
Charge by seats, events or both, with a monthly cap.
Size M
Usage-based billing
Charge by seats, events or both, with a monthly cap.
Size L
Usage-based billing
Charge by seats, events or both, with a monthly cap.
Size XL
Usage-based billing
Charge by seats, events or both, with a monthly cap.
Size XXL
Usage-based billing
Charge by seats, events or both, with a monthly cap.
Tray
Header=Label with raised project rows, and Header=Title with a description and a footer action.
Active projects
Access tokens
Tokens let scripts and CI talk to your workspace. Keep them out of shared docs.
CI deploys
tok_7f3a…21c9 · Used 4 min ago
Nightly export
tok_b812…0e44 · Used yesterday
Motion
Built on Ochre's ease-out curves. With reduced motion switched on, everything still works, it just doesn't move.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| interactive | boolean | false | For a card that is itself a link: lifts a pixel on hover and presses in. Stretch the title link over it. |
| variant | "flat" | "raised" | "flat" | Card: flat in the page, raised for floating UI. |
| size | "s" | "m" | "l" | "xl" | "xxl" | "m" | Card: steps padding and type together, on the same ladder as the controls. |
| CardHeader title | ReactNode | – | Sentence case, 14 medium. |
| CardHeader description | ReactNode | – | One quieter line under the title. |
| CardHeader eyebrow | ReactNode | – | Mono capitals above the title, for ids and types. |
| CardHeader actions | ReactNode | – | Buttons or a menu on the right. |
| CardBody | HTMLAttributes | – | The content. In a raised card this is the raised inner card. |
| CardFooter | HTMLAttributes | – | A row for a timestamp, links and actions. |
| Tray label | ReactNode | – | Header=Label: mono capitals on the tray strip, for a group like ACTIVE PROJECTS. |
| Tray title / description | ReactNode | – | Header=Title: a sentence-case title and one line under it. |
| Tray actions / footer | ReactNode | – | Buttons on the strip, and a quiet line (or a row) below the cards. |
| TrayCard | HTMLAttributes | – | A raised card for inside a Tray. |
Usage
Use it for
- Flat for anything in the page: a project, a chart, a settings group, a summary.
- Raised only for things that float above the page: popovers, panels, coach marks.
- A mono eyebrow for ids and types, a sentence-case title for the name.
- Tray for a group of raised cards under one label or title.
Avoid
- Shadows on in-page cards: depth is for floating things.
- Cards inside cards. Use hairlines or a list inside one card instead.
- Coloured icon tiles in the header: let the title and data speak.