Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@invisible/design-system-tokens
Advanced tools
This repository contains the MUI theme object derived from Figma design tokens from Invisible's Design team.
This repository contains the MUI theme object derived from Figma design tokens from Invisible's Design team.
Simply copy paste the Figma tokens generated by tokens-studio into scripts/tokens/tokens.json
.
// install dependencies
pnpm i
// generate the theme object
pnpm generate-mui
// build
pnpm build
The main script is used to generate the mui-theme that will be consumed by createTheme
from @mui/material/styles
.
Use this config file to configure the files you want to generate and the associated Style Dictionary format.
This folder contains the generated
folder which contains generated code from the scripts.
The theme.ts
file has the MUI theme object exported.
Each top level key in the theme object is separated for simplicity and separation of concerns. Currently, only typography
is in the theme object due to the format of tokens.json
, but we can easily add more in the future by registering a format in main.ts
and updating config.json
.
For those who don't know what Style Dictionary this, the following is a quick overview of some of the concepts that you will find useful to browse this repo.
config.json defines where to find the design tokens, where to output generated files, and the associated transform.
Transforms are functions that modify a token so that it can be understood by a specific platform.
You can define custom transforms with the registerTransform
Transform Groups are a way to easily use multiple transforms at once. They are an array of transforms. You can define a custom transform group with the registerTransformGroup.
FAQs
This repository contains the MUI theme object derived from Figma design tokens from Invisible's Design team.
The npm package @invisible/design-system-tokens receives a total of 9 weekly downloads. As such, @invisible/design-system-tokens popularity was classified as not popular.
We found that @invisible/design-system-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.