Best Practices For Naming Design Tokens, Components And Variables

How can we get better at naming? This post is dedicated to naming conventions, tips, and real-world examples that help you name things in a robust and flexible way.

Date

May 23, 2024

Category

Web Design

Reading time

6 min

Naming is hard but crucial — Names should be clear, consistent, and scalable across teams and projects. The article emphasizes that the struggle with naming (too generic, too specific, hard to remember) is real, and good naming practices alleviate friction.

  • Principles of good names
     • Logical structure — there should be a pattern or hierarchy in your names.
     • Short yet meaningful — avoid overly verbose names, but don’t sacrifice clarity.
     • Shared vocabulary — the team must understand and agree on the terms used.
     • Avoid visual references in names — names should reflect meaning and intent, not appearance (so the name still makes sense if the UI changes).

  • Design token naming
     A well-defined taxonomy is vital. Use interactive tools (like the cited Design Tokens Naming Playbook) and source-of-truth systems (spreadsheets, plugins) to maintain consistency.

  • Color naming
     Name colors with a combination of semantic names and numeric scales (e.g. “blue-500”) so that names are both descriptive and scalable. This helps avoid ambiguity as the design system grows.

  • Component naming & conventions
     Look at naming conventions in existing design systems; considering community conventions helps avoid reinventing the wheel and improves understandability across multiple systems.

  • Systems & tooling to support naming consistency
     Use taxonomy maps, inventories, and tools integrated with design systems (e.g. Figma plugins, synchronized spreadsheets) to keep naming consistent even as the system evolves.

  • Scalability and flexibility
     Your naming system must anticipate growth (new components, themes, brands). A flexible taxonomy helps you avoid brittle names that break or need massive refactoring later.

Conclusion

Good naming is essential for scalable, consistent design systems. Names should be clear, structured, and shared across the team, focusing on meaning rather than appearance. A flexible taxonomy and supporting tools ensure consistency as systems grow, making collaboration smoother and reducing confusion.


Project in mind?

Let’s make your

Website shine

Premium web design and development to help your business stand out.

Get in touch

Project in mind?

Let’s make your

Website shine

Premium web design and development to help your business stand out.

Button

Project in mind?

Let’s make your

Website shine

Premium web design and development to help your business stand out.

Button

Available

Create a free website with Framer, the website builder loved by startups, designers and agencies.