How to introduce linting for design system hygiene

Declan Chidlow
Written by Declan Chidlow
Mar 19, 2026

Many developers are intricately familiar with the concept of "linting" — an automated process of checking for potential errors, stylistic inconsistencies, and guideline violations before code is ever merged. It catches missing syntax, inconsistently used values, and formatting errors that break conventions.

We often talk about "hygiene" in codebases, but we rarely apply the same rigor to our design files. However, the benefits of linting extend beyond development into the construction of design systems.

If you work on or maintain a design system, it’s more than likely that you are already linting, albeit manually. Every time you notice a button using a hard-coded hex value instead of a semantic token, you are linting. Every time you modify a padding value by a pixel because you notice it doesn't adhere to the grid, you are linting. You are identifying small problems and fixing them by hand.

To do this necessary work at scale is tedious, prone to human error, and it represents a poor use of time and effort.

Why you should be linting

Even the most well-laid plans fall apart. In design systems, the most common catalyst is scaling.

Regardless of how well-structured and deliberated a design system may be at the start, it doesn't always scale smoothly. It can deviate and deteriorate over time. Deadlines, crunch, new team members, additional features, and other variables often outside your control hit hard. Next thing you know, you have people fed up with the design system jumping ship and abandoning it, and the boat begins to sink.

All systems slide toward this entropy, and while we are likely accustomed to employing countermeasures to address it, linting is one of the most valuable.

A well-configured linter can alert you to a range of undesirable factors in a design system. It can help you avoid errors such as invalid values, duplicates, and misspellings. It can also help in the enforcing of conventions, such as specific units, naming patterns, upper and lower limits, and chosen notations.

The benefits don't stop with hygiene; linting can also improve the accessibility of your design system. Accessibility shouldn't be an afterthought, so integrating it into the very fundamentals of your design system has a positive knock-on effect. 

There is also a benefit in linting removing ego and pressure from reviews, as automated checks feel less personal than human critique and are accepted more readily.

Crucially, we often treat our documentation platform, like zeroheight, as the single source of truth. But zeroheight can only be as truthful as the data we feed it. If we feed it unlinted, messy design files, we are documenting chaos. And if we ignore the data that comes out or use the wrong data, then we are wasting time and effort. Linting ensures that what we sync to our documentation is accurate, pristine, and ready for consumption.

If we neglect our source of truth, then our design system is as good as useless. As people lose trust in the truth, they start guessing or adopting their own.

Introducing linting into your workflows

Adopting new tools is rarely done lightly or at the flick of a switch. Linting requires effort to adopt. Treat linting as an equivalent to a first step of tests; it ensures that the code and the system itself meets standards before they move down the pipeline.

Regrettably, there’s no "one-size-fits-all" solution. There are many variables at play, from team sizes, structures, experience, ability, and culture to the different tools and technologies used to build products, so the best option depends on your specific situation. You'll want to look to adopt linting of your design tokens themselves, the items on a visual canvas such as Figma, and the final application of the design system for full coverage.

There are many ways to approach this. You can use Figma's built-in check designs feature, or a similar plugin like FigmaLint if you don't have access. You can use ESLint, which is likely already being used by your developers, or Stylelint if you are working with CSS. There are also many accessibility-oriented linters, such as Stark, which can be used in tandem. zeroheight even has token linting built into their MCP offering (coming soon!), if you want to go down an AI route.

Rolling out linting in a mature design system

If you are adopting linting in a mature design system, it can be a daunting task. An initial lint might return an overwhelming number of errors that are unrealistic to address at once and demoralizing to work on. In that case, consider a gradual adoption, and there are a few main approaches you can take to doing so.

You could start on a per-component basis, linting each one as they're updated. This isolates complexity and presents small wins. Once components are clean, you can expand your scope, first to patterns or modules, then to templates and layouts, and finally to full pages or screens.

You could consider linting only the sections needed for the next handoff, for now, to avoid becoming bogged down by technical debt in currently unused areas. Alternatively, you might start on specific attributes. For example, ensuring all your colors are correct, then units, and finally expanding to address larger issues like layer naming structures.

If you're in a stage of growth, you might consider adopting linting only on fresh extensions for now. Otherwise, if you're just starting a design system, you should make an effort to adopt linting as early as possible to bake in best practices from the start and to avoid more effort later. By linting early and often, we're stopping problems where they start and before they have a chance to snowball throughout the rest of our design system.

None of this is to say that adopting linting should be relegated to an afterthought, merely that it can take time to implement and settle, and that care may need to be taken to avoid killing momentum. It’s an upfront cost that pays for itself in time.

In adopting linting, it’s vital that everyone, from the people constructing the design systems to the people using them, be on board. Configure linting for everyone working in design files, and require linting steps before design files can progress. Encourage linting regularly while working, not just during review. Let linting serve as a first layer of testing in your robust and structured system.

Linting in action

Let's look at a simple example of linting in action with a card component that has been detached to customize but hasn't been properly re-linked. It may look fine visually, but the code has raw values. A linter would immediately highlight this mistake, allowing it to be identified and fixed before it causes any issues.

The first place linting could catch an issue is at the design token data level, where the below #ffffff is flagged as a hard-coded value, and our linting instead recommends using {color.base.white}.

{
	"card": {
		"container": {
			"background": {
				"$value": "#ffffff",
				"$type": "color"
			}
		}
	}
}

Otherwise, we might catch it at the design level, like here with the Design Lint Figma plugin:

It could also be caught at the code level, as seen here by running Stylelint on some offending CSS:

.card-detached {
	background-color: #fff;
	padding: 13px;
}
card.css

  2:3  ✖  Raw value. You must use a Design Token.   scale-unlimited/declaration-strict-value

  3:3  ✖  Raw value. You must use a Design Token.   scale-unlimited/declaration-strict-value

✖ 2 problems (2 errors, 0 warnings)


Having linting steps at every stage stops Swiss cheese model-style failures. For an example of a very mature and comprehensive linting setup, you might refer to the ESLint plugin rules for the Atlassian Design System.

Linting: long-term wins for your design system

Designers and developers alike strive for order in the face of mounting complexity and are already familiar with guidelines and structure. Linting is just an extra hand to maintain that order.

Setting up linting is to your long-term benefit and often comes without immediate short-term gain, but that delayed gratification shouldn't disincentivize adoption. You may spend several hours configuring linter rules and fixing errors now and not directly notice any change, but in the background, linting will keep your efforts on track.

Consider linting as part of your design system hygiene. We keep our teeth clean with toothpaste, we keep our bodies clean with soap, and we can keep our design systems clean with linters. Good hygiene is a kindness to both you now and whoever may have to use your systems in the future — whether that’s a designer being onboarded in a few months or a developer scrambling to meet a deadline.

Declan Chidlow
Declan Chidlow
Declan Chidlow is a front-of-the-front-end developer and writer specializing in core web technologies. With a strong focus on accessibility and usability, they craft digital experiences that are inclusive and user-friendly. They're a well-known voice in the web development community, sharing their expertise on front-end practices through their writing.
Try zeroheight
The design systems platform that keeps teams and agents in sync
Start for free
Share this post