Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@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.
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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.