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

tailwind-plugin-lob

v1.0.9

Published

Custom Tailwind config for Lob repositories

Downloads

8,139

Readme

tailwind-plugin-lob

Custom Tailwind config for Lob repositories

Installation

npm i tailwind-plugin-lob -D

Usage

Add tailwind-plugin-lob to the plugins section of your tailwind.config.js file.

module.exports = {
  plugins: [
    require('tailwind-plugin-lob')
  ]
};

Features

Default Tailwind configuration with some replacements for Lob's design system.

The following core plugins have been customized for Lob

  • screens
  • colors
  • fontSize
  • fontFamily
  • fill
    • a fill class is created for each color in our theme
  • boxShadow

The following core plugins have been extended for Lob

  • borderWidth: to add a 3px border with border-3
  • spacing: to add a spacing of 1.125rem with m-4.5 or p-4.5

The following variants have been turned on for a subset of core plugins

Colors

The primary color, secondary colors, grays, and whites in the design system are named ${base color}-${numerical shade}. For example, the palette below would have: - flint-900 as the darkest shade - flint-700 - flint as the base (middle) color - flint-300 - flint-100 as the lightest shade

This naming convention allows us to preserve the design system's original names, adhere to general Tailwind color conventions, and in addition to providing flexibility if more shades were to be introduced in the future.

Flint color palette

Custom plugins

Border side colors

By default Tailwind does not allow you to control the color of each side of a border individually. To support CSS triangles and other complex styles, you may need to style each side separately.

We have a border color that creates a class for each side of a border and each color in our theme. The class name format is border-${side}-${base color}-${numerical shade} like border-r-flint-500.

Custom variants

Important

When our 'important' variant is enabled for a core plugin, it allows you to prefix a class with ! to apply !important to the style.

By default this variant has been turned on for a subset of core plugins

  • backgroundColor
  • borderColor
  • textColor
  • display

Recommendations

It is recommended that you configure PurgeCSS in your application to optimize for production. And make sure that you are writing purgeable markup.

License

This project is released under the MIT license, which can be found in LICENSE.txt.