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.45
Version published
Weekly downloads
49
226.67%
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";
// or
import material from "tailwind-material";

module.exports = {
  content: ["./src/**/*.{js,jsx,ts,tsx}"],
  theme: {
    extend: {},
  },
  plugins: [material({ primary: "#211f21" })], // 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 12 Dec 2024

Related posts