npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tail-material-design

v0.0.12

Published

Tailwindcss plugin to add material design styles to your webapp

Downloads

10

Readme

Tail Material Design

What you wanted, now you have it

Tail Material Design is a comprehensive library that brings the power of Material Design to Tailwind CSS. With Tail Material Design, you can easily add modern and visually appealing Material Design styles to your web projects. The library provides pre-defined styles for various components, allowing you to accelerate development and create aesthetically pleasing web apps.

Logo

npm bundle size jsDelivr hits (npm) GitHub Website GitHub last commit GitHub contributors Components made

Key Features:

  • Seamless integration with Tailwind CSS.
  • Pre-defined Material Design styles to expedite development.
  • Modern and visually appealing interface for your web app.
  • Flexible customization options to meet your project's specific needs.

Installing:

To get started with Tail Material Design, follow these steps:

  1. Install Tailwind CSS in your project (if not already installed)

  2. Install Tail Material Design using your preferred package manager:

pnpm add -D tail-material-design
  1. Import and configure Tail Material Design in your Tailwind CSS configuration file (typically named tailwind.config.js):
import tmd from 'tail-material-design';
import type { Config } from 'tailwindcss';

export default {
    plugins: [tmd]
    
    // rest of your config...
} satisfies Config;
  1. Optional if you don't want to use tailwindcss, you can still use the components from a CDN:
 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tail-material-design/dist/components/<COMPONENT_NAME>.min.css">
 <!-- or you can use the link with all components -->
 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tail-material-design/dist/components.min.css">
/* As an alternative, you can install the package and import on your css file */
@import url("https://cdn.jsdelivr.net/npm/tail-material-design/dist/components.min.css")

We sugest you use the tailwind-material-colors package

Tailwind-Material-Colors repo Optionally, consider using the tailwind-material-colors package for a better color experience. It will give you a better experience with colors.:

  1. Install it using the package manager of your choice:
pnpm add -D tailwind-material-colors
  1. Import and configure tailwind-material-colors along with Tail Material Design:
import { withMaterialColors } from 'tailwind-material-colors'
import tmd from 'tail-material-design';
export default withMaterialColors({
  // Here, your tailwind config.
  // (Do not specify theme.colors or theme.extend.colors as they will be overwritten).
  plugins: [tmd]
}, {
  // Here, your base colors as HEX values
  // primary is required
  primary: '#ff0000',
  // secondary and/or tertiary are optional, if not set they will be derived from the primary color
  secondary: '#ffff00',
  tertiary: '#0000ff',
  // extra named colors may also be included
  green: '#00ff00'
  blue: '#0000ff'
});

How to Use:

Here's a simple example of how you can leverage the Material Design styles in your web app:

<div class="flex items-center justify-center">
  <button class="btn btn-outlined">Click Here</button>
</div>

What we have already done

Tail Material Design provides a growing collection of Material Design components. Here's an overview of what has already been implemented:

  • Action
    • 👍 Common Buttons
    • ❌ Extended FABs
    • 👍 Fabs
    • ❌ Icon Buttons
    • ❌ Segmented Button
  • Communication
    • ❌ Badges
    • ❌ Progress Indicator
    • ❌ Snackbar
  • Containment
    • 👍 Bottom Sheet
    • 👍 Cards
    • ❌ Carousel
    • ❌ Dialogs
    • 👍 Dividers
    • 👍 Lists
    • ❌ Side Sheets
    • ❌ Tooltips
  • Navigation
    • ❌ Bottom App Bar
    • ❌ Navigation Bar
    • ❌ Navigation Drawer
    • ❌ Navigation Rail
    • ❌ Search
    • ❌ Tabs
    • ❌ Top App Bar
  • Selection
    • 👍 Checkbox
    • 👍 Chips
    • ❌ Date Pickers
    • ❌ Menus
    • 👍 Radio Buttons
    • 👍 Sliders
    • 👍 Switch
  • Text Inputs
    • ❌ Text Fields

Contribution

Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.