Socket
Socket
Sign inDemoInstall

m3-tokens

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    m3-tokens

Atomic CSS for Material Design 3 (M3) design tokens.


Version published
Maintainers
1
Install size
491 kB
Created

Readme

Source

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>

FAQs

Last updated on 08 Mar 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc