flora
monochrome
flora

components.

flora components have no colour of their own. on BG sites, like this one, they're black and white. inside a product we build for others, they take on that product's colour. drag the hue above to try it.

components

core.

button · icon button · split button · badge · tag · card · stat · table · empty state · tooltip · avatar group

button

variants

one primary per view, secondary for the rest, ghost inside dense ui, danger only for destructive confirms.

sizes

32 / 40 / 48 tall, matching the control scale.

icons, loading, disabled, link, pressed

loading swaps the left icon for a spinner. href renders an anchor with identical styling. aria-pressed marks a toggle that is on.

an anchor

icon button

variants and sizes

always pass a label — it is the accessible name and the native tooltip. ghost by default, outline in empty areas, filled for the one accent action.

split button

a likely choice and the rest

the main part acts straight away; the caret opens the alternatives. highlight the ones that fit, such as the visitor's platform.

badge

tones

a version, a state, a count. not clickable — use a tag for that. semantic tones are for status only, never decoration.

v0.1.0new12stabledeprecatedoffline

tag

toggle and removable

a tag either toggles or removes, never both. a removable tag is one button, so the whole pill is easy to hit. try both rows.

card

variants

cards have borders, not shadows. only interactive ones lift.

raised

a bordered surface on the page.

sunken

tinted, no border. for nested panels.

accent

tinted with the product's colour. use it sparingly.

interactive

lifts 2px and gains a shadow on hover. with onClick, enter and space click it too.

with an action

a control at the end of the title row.

padding
sm · 16
md · 24
lg · 32

stat

one number

a label, a big tabular number and an optional hint, on a card. size it with your own grid.

orders12812 more than last week
revenue$4,210.50

table

rows you write

plain thead and tbody, so any cell can hold a button or a link. data-num right-aligns numbers; data-action shrinks a cell to its control. it scrolls sideways when narrow.

itemsoldtotal
flora42$210.00
mycel17$85.00
pollen3$15.00

empty state

nothing yet

one short, muted line, centered in generous space.

no orders yet.

tooltip

hover or focus

dark on light (and the reverse), one short line, with an optional shortcut. the third one stays open so you can see it.

search⌘Kbelow insteadalways visible

avatar group

overflow and label

the stack fans out on hover.

ankirato+48 contributorsankiratoivozlumi

copyable text

one inline value

an id, a token, a secret. for multi-line code use a code block instead.

client id
flashes the accent on copy