Usage
--quote-border-color, --quote-border-width, and --quote-backgroundfor block quote emphasis --quote-font-styleand --quote-font-sizefor typographic tone --quote-paddingand --quote-spacingfor rhythm and inset --quote-inline-font-styleand --quote-inline-quotesfor inline quote treatment
--quote-inline-quotes
Tokens
Block Quote Tokens
--quote-block-max-width | var(--content-breakout-width) | |
--quote-block-max-width-mobile | var(--content-breakout-width-mobile) | |
--quote-block-max-width-print | 100% | |
--quote-border-width | 3px | |
--quote-border-color | var(--border-color-emphasis) | |
--quote-border-color-dark | var(--border-color-emphasis-dark) | |
--quote-border-radius | var(--border-radius-default) | |
--quote-background | var(--surface-sunken) | |
--quote-background-dark | var(--surface-sunken-dark) | |
--quote-spacing | var(--content-spacing) | |
--quote-padding | calc(var(--content-spacing) * 0.5) | |
--quote-spacing-horizontal | calc(var(--content-spacing) * 0.75) | |
--quote-spacing-horizontal-mobile | 0 | |
--quote-font-style | italic | |
--quote-font-size | calc(var(--text-font-size) * 1.125) |
Inline Quote Tokens
--quote-inline-font-style | inherit | |
--quote-inline-quotes | quotes | auto |
Examples
Default Block Quotes
:root {
/* No design token overrides */
}
This is a default block quote that demonstrates the base visual styling. Block quotes automatically receive a colored left border, subtle background, italic typography, and larger font size to distinguish them from regular paragraph text.
The spacing and colors automatically adapt to different screen sizes and dark mode preferences through semantic token integration.
Minimal Block Quotes
:root {
--quote-background: transparent;
--quote-border-width: 0;
--quote-padding: var(--space-2);
--quote-font-size: inherit;
}
This quote uses minimal styling with no background, no border, reduced padding, and standard font size. Visual distinction comes only from italic styling and slight indentation.
Academic Paper Block Quotes
:root {
--quote-padding: var(--space-6);
--quote-spacing-horizontal: var(--content-spacing);
--quote-font-size: var(--font-size-xl);
--quote-border-width: 6px;
}
This is an academic-style quote with increased padding, larger margins, bigger font size, and thicker border. The enhanced spacing and typography create stronger visual hierarchy appropriate for scholarly documents.
Colored Block Quotes
:root {
--quote-border-color: var(--color-accent);
--quote-border-radius: 0;
}
This quote uses the theme's accent color for the border and removes the rounded corners for a more geometric appearance. The semantic color token ensures automatic dark mode support while maintaining the visual emphasis.
Inline Quotes
:root {
--quote-inline-font-style: inherit;
--quote-inline-quotes: auto;
}:root {
--quote-inline-font-style: italic;
}:root {
--quote-inline-quotes: "«" "»" "‹" "›"; /* French guillemets */
}:root {
--quote-inline-quotes: none;
--quote-inline-font-style: italic;
}