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.
core.
button · icon button · split button · badge · tag · card · stat · table · empty state · tooltip · avatar group
button
one primary per view, secondary for the rest, ghost inside dense ui, danger only for destructive confirms.
32 / 40 / 48 tall, matching the control scale.
loading swaps the left icon for a spinner. href renders an anchor with identical styling. aria-pressed marks a toggle that is on.
icon button
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
the main part acts straight away; the caret opens the alternatives. highlight the ones that fit, such as the visitor's platform.
badge
a version, a state, a count. not clickable — use a tag for that. semantic tones are for status only, never decoration.
tag
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
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.
stat
a label, a big tabular number and an optional hint, on a card. size it with your own grid.
table
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.
| item | sold | total | |
|---|---|---|---|
| flora | 42 | $210.00 | |
| mycel | 17 | $85.00 | |
| pollen | 3 | $15.00 |
empty state
one short, muted line, centered in generous space.
no orders yet.
tooltip
dark on light (and the reverse), one short line, with an optional shortcut. the third one stays open so you can see it.
avatar group
the stack fans out on hover.
copyable text
an id, a token, a secret. for multi-line code use a code block instead.