Rost

← All components

component

Illustration

One of Rost's 24 small drawings, 72px, in two greys and a green that follow the theme.

In code Contract: review Guidance: proposed Contract on GitHub Figma 41:570 As markdown
Activation & conversion
Alignment
Art
Audit & Strategy
Best idea
Bridging the gaps
Design partner
Design system
Design system leadership
Efficiency
Goal focused
Implementing
Interactive showcase
Long term projects
Mentoring
Part of the team
Product design
Retention
Scale team
Ship best
Simplicity v Complexity
Structured system
Timezones
UI

Install

npx github:Runceanu/rost add illustration

It lands in src/rost/illustration/, with what it needs and its contract. Install has the rest.

When to use

  • A face for a card

    Giving a card or a section a face, like the service cards on the portfolio site.

When not to use

  • Standing in for an icon

    Standing in for an icon next to a label. That's Icon, which is smaller and takes the text colour.

    Use Icon

  • Stretched bigger

    Stretching it. It's drawn for 72px; bigger and the lines get heavy.

Behaviour

A fixed 72px square. Every drawing uses the same three colours: illustration/shade, the darkest, a step off the page; illustration/form, the mid grey; and illustration/accent, the green. In dark they're Figma's own. In light I picked the step that sits as far from the white page as the dark one sits from the black: shade and form are light greys, and the green goes one step deeper.

Accessibility

  • Hidden

    Most of the time it's decoration beside a heading that says the same, so it's aria-hidden="true". That's the default.

  • Labelled

    When it carries meaning on its own, pass label. It becomes role="img" with that aria-label.

Content

None. A label, when there is one, says what it stands for.

Props

PropTypeValuesDefault
name enum activation-and-conversion · alignment · art · audit-and-strategy · best-idea · bridging-the-gaps · design-partner · design-system · design-system-leadership · efficiency · goal-focused · implementing · interactive-showcase · long-term-projects · mentoring · part-of-the-team · product-design · retention · scale-team · ship-best · simplicity-v-complexity · structured-system · timezones · ui alignment
label slot

Values

Straight from the contract. Each value sits next to its token, because six tokens here all come out as #3a3a3a and the colour alone can't tell you which one is right.

Never changes

root

  • width 72px spacing/size/2xlarge
  • height 72px spacing/size/2xlarge

displayinline-block · vertical-alignmiddle · flex-shrink0

drawing

displayblock · width100% · height100%

shade

  • fill #232423 illustration/shade

form

  • fill #454545 illustration/form

accent

  • fill #37d273 illustration/accent