RIVERSIDE PARCEL DESK
Your parcel is ready
Locker 12 · Collect by Friday
Use theme roles for your UI. Use fixed palette shades when a color should stay the same in light and dark mode.
primary, secondary and tertiary are accent colors. Use surface and surface-container-* for content, and error, success or warning for status.
Paired classes such as primary-container set a background and
its matching on-* text color. Theme roles adapt to light and dark mode. Change
the preview below without changing the rest of the site.
RIVERSIDE PARCEL DESK
Locker 12 · Collect by Friday
<article class="surface-container-low q-pa-lg">
<h3 class="title-large text-primary">Your parcel is ready</h3>
<p class="text-on-surface-variant">Locker 12 · Collect by Friday</p>
<span class="success-container q-pa-sm">Ready for pickup</span>
</article>Use surface-container-lowest, -low, surface-container, -high and -highest for
different surface levels. They pair with on-surface; use text-on-surface-variant for supporting text. See QTheme to change the theme and Quaff to set the
app's display mode.
Replace <color> with a theme color or palette name,
such as primary, on-surface, blue or blue-3.
primary-containerbg-<color>bg-primary, bg-blue, bg-blue-3.text-<color>text-on-surface, text-blue, text-blue-10.border-<color>border-outline, border-blue, border-blue-6. Add border for
a visible border.<!-- These use the same color pair. -->
<div class="primary-container q-pa-md">Delivery details</div>
<div class="bg-primary-container text-on-primary-container q-pa-md">
Delivery details
</div>
<div class="border border-outline q-pa-md">Pickup instructions</div>primary, secondary, tertiary, error, success, warning. Each has on-<name>, <name>-container and on-<name>-container colors.background, surface, surface-variant and their on-<name> colors; surface-dim and surface-bright.surface-container, surface-container-lowest, surface-container-low, surface-container-high, surface-container-highest.outline, outline-variant.inverse-surface, inverse-on-surface, inverse-primary.shadow, scrim, surface-tint.Theme variables use the role name, such as --primary-container. Palette variables use the --color- prefix, such as --color-teal-6. Some tokens, such as --primary-fixed and --primary-dim, have no helper class; use their CSS
variables directly.
.pickup-note {
background-color: var(--primary-container);
color: var(--on-primary-container);
border: 1px solid var(--outline);
}
.route-marker {
background-color: var(--color-teal-6);
}Each palette has ten shades: 1 is the lightest and 10 the darkest. Without a number, bg-teal, text-teal and border-teal use shade 6.
For example, text-teal is text-teal-6.
Use bg-teal-2, text-teal-10 or border-teal-6. Palette colors stay fixed when the theme or
display mode changes. Choose the text color separately and check its contrast.
<span class="bg-teal-2 text-teal-10 q-pa-sm">
Riverside route
</span>red-1red-2red-3red-4red-5red-6red-7red-8red-9red-10pink-1pink-2pink-3pink-4pink-5pink-6pink-7pink-8pink-9pink-10purple-1purple-2purple-3purple-4purple-5purple-6purple-7purple-8purple-9purple-10deep-purple-1deep-purple-2deep-purple-3deep-purple-4deep-purple-5deep-purple-6deep-purple-7deep-purple-8deep-purple-9deep-purple-10indigo-1indigo-2indigo-3indigo-4indigo-5indigo-6indigo-7indigo-8indigo-9indigo-10blue-1blue-2blue-3blue-4blue-5blue-6blue-7blue-8blue-9blue-10light-blue-1light-blue-2light-blue-3light-blue-4light-blue-5light-blue-6light-blue-7light-blue-8light-blue-9light-blue-10cyan-1cyan-2cyan-3cyan-4cyan-5cyan-6cyan-7cyan-8cyan-9cyan-10teal-1teal-2teal-3teal-4teal-5teal-6teal-7teal-8teal-9teal-10green-1green-2green-3green-4green-5green-6green-7green-8green-9green-10light-green-1light-green-2light-green-3light-green-4light-green-5light-green-6light-green-7light-green-8light-green-9light-green-10lime-1lime-2lime-3lime-4lime-5lime-6lime-7lime-8lime-9lime-10yellow-1yellow-2yellow-3yellow-4yellow-5yellow-6yellow-7yellow-8yellow-9yellow-10amber-1amber-2amber-3amber-4amber-5amber-6amber-7amber-8amber-9amber-10orange-1orange-2orange-3orange-4orange-5orange-6orange-7orange-8orange-9orange-10deep-orange-1deep-orange-2deep-orange-3deep-orange-4deep-orange-5deep-orange-6deep-orange-7deep-orange-8deep-orange-9deep-orange-10brown-1brown-2brown-3brown-4brown-5brown-6brown-7brown-8brown-9brown-10blue-grey-1blue-grey-2blue-grey-3blue-grey-4blue-grey-5blue-grey-6blue-grey-7blue-grey-8blue-grey-9blue-grey-10grey-1grey-2grey-3grey-4grey-5grey-6grey-7grey-8grey-9grey-10Building class names at runtime? If you enable CSS stripping, add them to your CSS safelist.