Skip to content

shahnyc/banana-ds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ds-banana

This repository demonstrates scalable design tokens with components used in the Figma library. Design tokens are a way to store design decisions, such as colors, typography, and spacing, in a format that different platforms and tools can easily consume.

Figma Link

Overview

  • Main Files:
    • build.js: Contains the build logic for the design tokens.
    • customtransforms.js: Contains custom transformations for the design tokens.
    • platformconfig.js: Contains platform-specific configurations for the design tokens.

Design Tokens

Design tokens are stored in the tokens directory. They are categorized into 01_global and 02_themes.

Base Tokens

  • color.json: Contains base design tokens related to colors.

Theme Tokens

  • light.json: Contains theme-specific design tokens for the light theme.
  • dark.json: Contains theme-specific design tokens for the dark theme.
  • hc.json: Contains theme-specific design tokens for the high-contrast theme.

Setup and Usage

  1. Clone the repository:
git clone https://github.com/shahcbs/ds-tokens-banana.git             
  1. Navigate to the root directory:
cd ds-tokens-banana
  1. Install the required npm packages:
npm install
  1. Build the design tokens:
npm run build
  1. (Optional) Clean the build:
npm run clean

Customization

You can customize the design tokens by syncing with Figma file or modifying the JSON files in the tokens directory. Additionally, you can add custom transformations by updating the customtransforms.js file and platform-specific configurations by updating the platformconfig.js file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published