New:Socket for Asana Is Now Available.Learn more
Get Started

tailwind-material

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwind-material

Tailwind plugin to use all design tokens from [Material 3](https://m3.material.io/styles/color/roles).

npmnpm
Version
0.0.38
Version published
Weekly downloads
60
1400%
Maintainers
1
Weekly downloads
 
Created
Source

tailwind-material

Tailwind plugin to use all design tokens from Material 3.

How to import:

//tailwind.config.js
import { material } from 'tailwind-material';

module.exports = {
  content: ['./src/**/*.{js,jsx,ts,tsx}'],
  theme: {
    extend: {},
  },
  plugins: [material()], // You can pass the initial pallet obj
};
type InitialPalletColorInHex = {
  primary?: string;
  secondary?: string;
  tertiary?: string;
  neutral?: string;
  neutralVariant?: string;
  error?: string;
};

How to use:

GIF

The library also has basic styled elements and utils as dialogs and support to dark and light theme.

FAQs

Package last updated on 02 Oct 2024

Related posts