Community project. This is not an official government website.

Run by volunteers. Lampung Design System is built by an open source community. No government agency runs or endorses it.

Official services use go.id. Government websites in Indonesia end in .go.id. Never enter your national ID number on a site you are unsure of.

Quote

Quote

Words someone else said or wrote, set off by a 3 px accent bar on the left, 17/28 in --text-strong, with the source in a footer below. Only for real quotations.

Usage

Use it when

  • Quoting a person, a rule or a source inside an article, lesson or report: a lecturer's remark, a clause from exam regulations.
  • Showing feedback someone wrote, attributed to them (a reviewer's comment on an assignment).

Use something else when

  • Drawing attention to a warning, tip or important condition: use Alert. A quote bar is not a callout.
  • The one next step on a page: use Spotlight.
  • Pointing to the source of a fact: use Citation. A numbered citation is inline; a quote reproduces the words.
  • Showing code or output: use Code block.
  • A testimonial on a marketing page: use Card. Only with real, attributed words; never invented ones.

Where it goes. In the flow of prose or a section, at the reading width. It sets margin: 0, and because that rule comes after the prose spacing it also cancels the 16 px gap inside .prose; place it in a stack or add margin-block: 16px in project CSS until the system fixes this. On phones it keeps the bar and full width.

Examples

In a lessonA short quote with its source.

Students may bring one handwritten page of notes, both sides, to the final exam.

Exam regulations, Faculty of Computer Science, article 12
<blockquote class="quote measure">
  <p>Students may bring one handwritten page of notes, both sides, to the final exam.</p>
  <footer>Exam regulations, Faculty of Computer Science, article 12</footer>
</blockquote>
Feedback on an assignmentAttributed words from a person, with the date in the footer.

Clear diagrams and a solid analysis. Next time, explain why you chose UDP for the sensor data.

Dr. Sari Wulandari, on Lab report 2 · 3 November
<figure class="quote measure">
  <p>Clear diagrams and a solid analysis. Next time, explain why you chose UDP for the sensor data.</p>
  <figcaption>Dr. Sari Wulandari, on Lab report 2 · 3 November</figcaption>
</figure>

Anatomy

PartWhat it is
blockquote.quoteRequired. The quote with the accent bar and 18 px left padding. Holds one or more <p>.
footerOptional. Who said it and where: --type-footnote in --text-subtle, 8 px below.
figure.quote + figcaptionAlso supported for the attribution, but put the words in a <p>, not a nested <blockquote> (its browser margin is not reset).

Motion and microinteractions

  • None. Quotes are static text.

Accessibility

  • Use <blockquote> (or <figure> with <figcaption>) so the quotation is announced as one.
  • Put the attribution in footer or figcaption, not in the quoted paragraph.
  • Add cite="url" on the blockquote when the source is online, and link the source in the footer.

Do and don't

Do

  • Quote exactly and attribute every quote.
  • Keep quotes to a few sentences.

Don't

  • Use .quote to highlight your own text.
  • Invent quotes or testimonials for example content.
  • Nest a <blockquote> inside figure.quote.