m3-tokens

0.0.3 • Public • Published

M3 Tokens

This package provide design tokens as classes.

For color, it use material-color-utilities internally, so all you need to do is providing a source color, then palettes are automatically generated.

Install

npm i -D m3-tokens

Setup

// tailwind.config.js

plugins: [
  require('m3-tokens/tailwind')({
    source: '#6750a4' // Source color for your theme.
  })
]

Usage

<button class="px-6 py-2.5 bg-surface1 typescale-label-large text-primary shadow-1 rounded-full">
  Button
</button>

/m3-tokens/

    Package Sidebar

    Install

    npm i m3-tokens

    Weekly Downloads

    24

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    85.2 kB

    Total Files

    3

    Last publish

    Collaborators

    • pacexy