Rost

← All components

component

Quote

Someone's words, pulled out of the text: a green rule on the left, the words in sub-title type, and who said them under it.

In code Contract: review Guidance: proposed Contract on GitHub Figma 748:37 As markdown
We stopped chasing invoices. The reminders do it, and they sound like us.
Client 2, finance lead
Default

Install

npx github:Runceanu/rost add quote

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

When to use

  • One line worth stopping for

    In a case study or a long page, the sentence from a client or a user that says the point.

When not to use

Behaviour

It sets the words large next to a green rule and the name under them. It adds no quote marks.

Accessibility

  • Element

    <figure> with a <blockquote> and a <figcaption>, the way HTML pairs a quote with who said it.

  • Colour

    The words are 17:1 on the dark page, the name 7:1.

Content

Quote exactly, and cut rather than paraphrase. The cite is a name and a role: Client 2, finance lead.

Props

PropTypeValuesDefault
children slot
cite 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

  • gap 16px spacing/gap/medium
  • margin 0px spacing/gap/none

displayflex

rule

  • width 2px spacing/outline/medium
  • border-radius 10000px spacing/radius/full
  • background #00d669 quote/rule

displayblock · flex-shrink0

content

  • gap 12px spacing/gap/small-medium

displayflex · flex-directioncolumn · min-width0

text

  • margin 0px spacing/gap/none
  • font-family 'General Sans Variable' font-family/base
  • font-weight 500 typography/sub-title/font-weight/medium
  • font-size 20px typography/sub-title/font-size
  • line-height 28px typography/sub-title/line-height
  • letter-spacing 0px typography/sub-title/letter-spacing
  • color #ededed quote/text

cite

  • font-family 'General Sans Variable' font-family/base
  • font-weight 400 typography/paragraph/font-weight/regular
  • font-size 14px typography/paragraph/font-size
  • line-height 20px typography/paragraph/line-height
  • letter-spacing 0px typography/paragraph/letter-spacing
  • color #999999 quote/cite

font-stylenormal