Implementing Design Tokens for Web Application Design Systems

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1All 2062 services
Implementing Design Tokens for Web Application Design Systems
Medium
~3-5 days
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1364
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1253
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    960
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1191
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    933
  • image_bitrix-bitrix-24-1c_fixper_448_0.webp
    Website development for FIXPER company
    950

Implementing Design Tokens for Web Application Design Systems

In a project with 5 developers and 2 designers, the environment is chaos. One uses #1A73E8, another uses #1565C0, while in Figma the color is called Blue/600. Theming leads to duplicated styles — each new design requires rewriting CSS. The team spends up to 20 hours per week aligning colors and spacing, resulting in 100+ style bugs per month. The solution is implementing Design Tokens: a single source of truth for colors, spacing, typography, shadows, and animations. We have been through this in 30+ projects and know how to avoid the pitfalls. Experience shows that with tokens, change velocity increases 3x and bug count drops by 70%.

Why Design Tokens Are Not Just CSS Custom Properties

Directly replacing #1A73E8 with --color-primary is a variable, not a token. A token carries semantics: --color-action-primary-default, --color-action-primary-hover. The difference is fundamental: when changing the brand color, you change one value in one place, not search all occurrences of 'primary blue' across the codebase. Without tokens, a team of 5 people spends up to 20% of their time on styling: the designer changes Blue/600 in Figma, the developer doesn't know that #1D4ED8 is already used in 12 places under different hex values. Theming requires duplicating styles instead of switching a set of variables. According to Amazon Style Dictionary, tokens reduce overhead by 40%.

How to Implement Design Tokens in a Design System

Implementation starts with an audit of current styles and Figma. Then we design a three-level token model: primitive, semantic, and component. Primitive tokens store raw values without context: color.blue.500: #3B82F6. Semantic tokens attach meaning: color.action.primary.default: {color.blue.500}. Component tokens define specific components: button.background: {color.action.primary.default}. This allows global design changes by modifying one primitive value and makes theming as simple as switching files.

The Three-Level Model Solves Duplication

If you need to change the blue shade, you only update the primitive token, and all components automatically get the new color. Without this model, you would have to edit every button, card, and link individually. This is 10x more efficient than manual CSS updates.

Problem Token Solution Result
Different values for the same color Centralized storage One change for all
Theming difficulties Semantic tokens per theme Switch CSS files
Figma-code mismatch Bidirectional sync Single source of truth

Integrating Tokens with Figma

We use the Tokens Studio plugin for bidirectional sync with GitHub. Workflow:

  1. Designer changes a token in Figma
  2. Plugin pushes the change to branch tokens/update-blue-palette
  3. CI runs Style Dictionary, generates CSS/JS
  4. PR with updated artifacts — code review and merge

Configuring Tailwind for Tokens

In Tailwind 4, tokens are plugged via the @theme directive:

@theme {
  --color-primary: var(--color-action-primary-default);
  --radius-button: var(--button-radius);
}

Versioning Tokens

Tokens are part of the codebase. We store them in the design system monorepo and publish as npm package @company/[email protected]. Semantic versioning is critical: renaming a token is a breaking change (major), adding is minor, fixing a value is patch or minor depending on context. We write the changelog readable for designers.

Example token file structure
tokens/
  primitive/
    color.json
    spacing.json
    typography.json
  semantic/
    color.json
    spacing.json
  component/
    button.json
    card.json

Transformation Tools

Style Dictionary from Amazon is the de facto standard. Here's a typical configuration:

// config.js
module.exports = {
  source: ['tokens/**/*.json'],
  platforms: {
    css: {
      transformGroup: 'css',
      buildPath: 'dist/css/',
      files: [{
        destination: 'tokens.css',
        format: 'css/variables',
        options: { outputReferences: true }
      }]
    },
    js: {
      transformGroup: 'js',
      buildPath: 'dist/js/',
      files: [{
        destination: 'tokens.js',
        format: 'javascript/es6'
      }]
    }
  }
};

Running npx style-dictionary build --config config.js generates CSS and JS. CSS output:

:root {
  --color-blue-500: #3B82F6;
  --color-action-primary-default: var(--color-blue-500);
  --button-background: var(--color-action-primary-default);
}

A dark theme can be added as a separate set of semantic tokens and compiled into tokens-dark.css.

Work Stages

Stage Duration Result
Audit existing styles and Figma 1–2 days Report on inconsistencies
Design primitive and semantic tokens 2–3 days JSON token schema
Set up Style Dictionary and compilation 2–3 days CSS/JS/SCSS artifacts
Integrate into project 2–4 days Merge request with tokens
Figma integration (optional) 3–5 days Bidirectional sync

What's Included

We conduct an audit of current styles and Figma library, design a three-level token scheme, configure compilation via Style Dictionary, and integrate into code (CSS, JS, Tailwind). We prepare documentation on token usage and train the team (1–2 hours). All work comes with a 3-month warranty on token functionality.

Typical mistakes during implementation: do not mix primitive and semantic tokens in one file; do not use tokens for non-design decisions (e.g., modal z-index); always add fallbacks for older browsers; version tokens with SemVer.

Contact us for a preliminary project estimate — we'll determine timelines in 1 day. Get a free engineer consultation. Order design token implementation and free your team from style chaos.

How do we guarantee design-to-code fidelity?

We restructure the UX/UI process so that design and code do not diverge. Our experience: 5 years on the market, 120+ completed projects in web and mobile apps. We work under a contract with a fixed timeline guarantee. Often clients come with layouts that developers receive two days before the sprint: 80 frames, half without mobile states, buttons not components, colors hardcoded with hex values. Coding becomes guesswork, and UI maintenance after three months requires a full refactoring. Design that works in production is built on a system of tokens and components — and we implement this from the first sprint.

Why design without tokens breaks code, and how we fix it

How Figma becomes an engineering tool

Figma is not just "a place to draw." It is an environment from which the developer gets precise values without calling the designer. We use Design Tokens — unified variables for colors, spacing, radii. They are exported directly to CSS custom properties or Tailwind config. For example, color/primary/500, spacing/md, radius/button. Without tokens, design and code diverge within a month.

What is the role of auto layout in responsive design?

Auto layout is mandatory. Components without auto layout break when text changes. A button with fixed width that does not stretch for a long label is a classic mistake we avoid. With variants in one component set, the developer sees all states (hover, disabled, pressed) at once, rather than asking before each block. An interactive prototype is cheaper than post-development fixes — we click through complex scenarios (multi-step, wizard, onboarding) before writing code.

What do design systems provide and when are they overkill?

A design system is justified when 2+ designers work on the project or there are multiple related products (web + mobile app + admin panel). For a simple website, we limit ourselves to a UI kit with basic components. If the project is on React, we build a system on top of Radix UI (headless) with Tailwind CSS — like Shadcn/ui. Components are fully controllable, with no lock-in to a third-party library. Wikipedia calls this approach strategically correct for scaling.

How do we ensure responsiveness without surprises?

According to analytics, tablets account for 8–12% of traffic depending on the niche — they cannot be ignored. But we do not create "desktop + mobile" with three breakpoints. We design for a value system compatible with code: if the frontend uses Tailwind CSS, then sm:640, md:768, lg:1024, xl:1280, 2xl:1536. The designer works with the same numbers in Figma. Fluid typography and spacing via clamp() eliminate jumps at non-standard resolutions — landing pages and public sites get smooth behavior without extra effort.

What is included in the deliverables

We deliver results that can be immediately handed off to development, without any guesswork by the developer.

Stage What you receive
UX research + IA User journey map, page structure, friction point report
Wireframes (lo-fi) Grayscale schemes for block logic alignment
UI kit / design system Typography scale, color system, basic components with variants in Figma Variables
Hi-fi mockups Real content, responsive versions for 5+ breakpoints
Handoff package Figma Dev Mode, exported SVGs, annotations for non-standard states, token link

Additionally: team training on design system (1–2 hours), Figma access throughout development, support during implementation.

How we guarantee UI quality

Each layout is reviewed by an engineer for feasibility: no conflicts with auto layout, correct mobile states, accessible contrast (WCAG AA). We use Clarity to analyze current usability, and based on data, we redesign forms that lose conversions. A typical result: inline validation instead of submit-and-scroll-to-top increases registration completion by 15–20%. Skeleton screens instead of spinners reduce perceived loading time.

Timeline and cost estimates

Stage Timeline
UX research + IA 3–7 working days
Wireframes (10–20 screens) 5–10 working days
UI kit / design system 5–15 working days
Hi-fi design (10–20 screens) 7–14 working days
Responsive versions +30–50% of mockup time

Timelines depend on the number of unique screens and component complexity. Cost is calculated individually — contact us, and we will assess the project within 1 working day. Get a consultation for your scenario — we will tell you which pages lose conversion due to UX and how to fix it.