wpds ui kit
v2.10.1
The Washington Post Design System (WPDS) UI Kit is a mono-repo of our UI Kit and our documentation site.
An example of the dependency graph for importing Button from Kit.
flowchart LR
A["@washingtonpost/wpds-theme"] --> B["@washingtonpost/wpds-ui-kit"]
C["@washingtonpost/wpds-button"] --> B["@washingtonpost/wpds-ui-kit"]
A["@washingtonpost/wpds-theme"] --> C["@washingtonpost/wpds-button"]
click A "https://github.com/WPMedia/wpds-ui-kit/tree/main/ui/theme"
click B "https://github.com/WPMedia/wpds-ui-kit/tree/main/ui/kit"
click C "https://github.com/WPMedia/wpds-ui-kit/tree/main/ui/button"
This project structure is heavily inspired by Chakra UI, Radix UI, and others.
A single import for users, many packages imported in @washingtonpost/wpds-ui-kit.
npm i @washingtonpost/wpds-ui-kitButton component had a default density: "compact". After upgrading, the default will be density: "default", so you will want to check any Buttons used in your code for regressions and manually apply the density: "compact" as needed.
<Button
density="compact"
...globalStyles contained a globally applied transition to all CSS properties on all elements. After upgrading any component element that relied on that transition will need to apply one locally using wpds theme variables.
transition: theme.transitions.allFast,
// or
transition: `background ${theme.transitions.fast} ${theme.transitions.inOut`globalStyles contained a global removal of margin and padding for all elements. After upgrading any component element that relied on having that spacing removed will need to add spacing rules with styles local to the component.This project is developed under a MIT License.