Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

[Tracking] Design Tokens #27

@laurenbarker

Description

@laurenbarker

Overview

What

Add design-tokens package to the UI Repo.

Why

Ensure brand styles (colors, spacing, typography, etc.) can be included in all of our user facing apps while maintaining a single source of truth.

Foundation steps

Follow-up steps

Adding tokens

Manually add our brand styles in JSON format in a similar format to base.json in the prototype (link in design doc)
* To begin with, the brand styles to include are the variables currently defined in CC
* Each category of token (color, grid, etc.) will require a different level of organization. Wunderzin’s base.json provides some examples of tokens that have many variations.

Stylus

Stylus variables are the same as sass variables so I think we can just use the same formatter and change the filename that is output.

  • output tokens in stylus files

Generating files by category

If we decide that we want to split up the files by type, Wunderzin’s web build provides an example.

Use tokens in our apps

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔑 tokensIssues and work related to Design Tokens

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions