light-dark()color-scheme.scheme-* utility classes with a polyfill for browsers that
do not yet support light-dark() (see .scheme-light ā Forces light mode..scheme-dark ā Forces dark mode..scheme-light-dark ā Dynamically follows system/OS settings.<!-- Defined color-scheme will be applied to all child elements -->
<html class="scheme-dark">
<head></head>
<body>
<!-- Will be rendered in dark mode -->
<div class="bg-frosted text-primary"></div>
</body>
</html>
.light, .dark and .auto have been removed in favor of .scheme-light, .scheme-dark and
.scheme-light-dark. Please update your class names accordingly.- <html class="dark">
+ <html class="scheme-dark">
- <html class="light">
+ <html class="scheme-light">
- <html class="auto">
+ <html class="scheme-light-dark">
--color-*: initial;. Note
that this is a breaking change: standard utilities like bg-red-500 will no longer function. You must now use the
approved PDS tokens for all styling to ensure brand compliance.--color-disabled, use --color-contrast-lower instead.- <div class="text-disabled">ā¦</div>
+ <div class="text-contrast-lower">ā¦</div>
--color-*-light and --color-*-dark color variables, use --color-* or the corresponding CSS utility
classes, e.g. bg-frosted or text-primary instead. The new variables automatically resolve to the correct value
based on the color-scheme.- .border-thin
+ .border
- .border-regular
+ .border
--border-width-thin and --border-width-regular are deprecated. The default border width is now
1px via --default-border-width.- .shadow-low
+ .shadow-sm
- .shadow-medium
+ .shadow-md
- .shadow-high
+ .shadow-lg
- .duration-short
+ .duration-sm
- .duration-moderate
+ .duration-md
- .duration-long
+ .duration-lg
- .duration-very-long
+ .duration-xl
- .prose-display-lg
+ .prose-heading-5xl
- .prose-display-md
+ .prose-heading-4xl
- .prose-display-sm
+ .prose-heading-3xl
