1.1.0 • Published 1 year ago

@mechanicalrock/figma-tokens-to-mui v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

figma-tokens-to-mui

A transformer which sits between FigmaToken JSON output and MUI's theme


Local testing

$ ts-node tests/index.ts

External Consumption

Debug

.env

# (Optional) This is a boolean value which will output the transformed tokens to the console. This is useful for debugging.
FIGMA_THEME_DEBUG=true #

Colours

Merge the output of the transformer with your MUI theme.

// src/styles/themeConfig/colourPalette.ts
...
export const colourPalette = getPaletteProps(
  tokens,
  "global",
  baseColours
);

Typography

Merge the output of the transformer with your MUI theme.

// src/styles/themeConfig/typography.ts
...
export const typography: TypographyOptions = getTypographyProps(
  tokens,
  "global",
  baseTypography
);
1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.14.0

1 year ago

0.13.0

1 year ago

0.12.2

1 year ago

0.12.1

1 year ago

0.12.0

1 year ago

0.11.0

1 year ago

0.10.2

1 year ago

0.10.1

1 year ago

0.10.0

1 year ago

0.9.0

1 year ago

0.8.0

1 year ago