A checkout team imports the shared Button. So does the account team. Both are using the right package. One screen has three equally prominent actions; the other uses a link styled as a button to save a form. The buttons look related. The interfaces disagree about how things work.
That’s the difference I care about. A component library gives teams the same parts. A design system gives them a shared answer to the decisions they make with those parts.
Start with one decision people keep making
Take a checkout review screen. There are three plausible things to do: place the order, go back to the cart, or edit the shipping address.
A Button story with six variants tells me what each variant looks like. It doesn’t tell me what to put on that screen. A shared action hierarchy does: make the action that completes the current step most prominent, keep edits near the information they change, and give navigation a lower visual emphasis. That’s a starting rule for this kind of screen, not a decree that every page can only ever have one primary action.
Here’s an illustrative React example. The design system owns what “primary” and “quiet” look like. Checkout owns which action advances the flow and what happens when the order is submitted.
The shared Button can default to type="button" so it doesn’t accidentally submit a form, and callers can opt into type="submit" when submission is the job. Back to cart goes somewhere, so it’s an actual link. The edit action opens a dialog, so it’s a button, and the dialog pattern should handle focus. The W3C Button Pattern explains that distinction and the expected keyboard behaviour.
Put the rule where people build
If I have to find a deck to learn which emphasis to use, I’ll probably copy whichever screen I saw last. I’d put the decision in three places:
- In the API and tokens. Give the supported options names that describe a decision, rather than making every call site choose its own colour. Inside Button, “primary” can use a semantic token such as
action.primary.background. The theme decides its value. Checkout shouldn’t have to know which blue it is. - In a story that shows a real arrangement. Document a review step with a submit action, an edit action, and a back link beside the isolated variants. Include a compact layout and a state with an error. The point is to show which choices belong together, not to build a generic Checkout component into the design system.
- In tests where the promise can fail. In Storybook, exercise the shared pattern: find the submit action by role and accessible name, activate it with the keyboard, and assert that the form handler fires. A visual snapshot can catch emphasis and layout changes. Neither says whether an order actually gets placed. The app should test its own keyboard path, failed submission recovery, and the successful checkout journey. Storybook’s interaction testing guide shows how to exercise a story with a play function.
This also gives reviewers something more useful to say than “Can you use the design system?” They can ask, “Which action advances this step, and can a keyboard user get to it and recover from an error?”
Let product teams change the pattern
I wouldn’t make the platform team approve every checkout screen. The shared team owns the supported component behaviour, semantic tokens, and examples. Product teams own their flow, can try a local variation, and can bring a recurring need back with two or three concrete examples. Promote the decision once you can explain why it’s shared. If you replace the old path, give consumers a way to migrate instead of deleting it out from under them.
If you want to try this, pick one screen your team already builds in more than one place. Name one decision that keeps coming up, make the recommended path easy to copy, and write one check that would fail if the promise broke. You don’t need a new component to do any of that.
A library can tell me which buttons I can use. A system helps me choose the right one.
