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

nsi-tailwind

v0.1.4

Published

This package contains several style presets for tailwind. Different presets contain different classes and styles to use.

Downloads

15

Readme

Nazar Si tailwind presets

Github page

This package contains several style presets for tailwind. Different presets contain different classes and styles to use.

For now there are following styles:

  • Gradual - all colors have ranges from 100 to 900 and 50, 950. primary, secondary, error and gray colors are present.
    • Official - tailwind site
    • Nazar - personal theme
    • Strict - for business
    • Starbucks - starbucks brand colors
    • Vercel - Vercel-like black and white theme
    • Tropical
    • Interstellar
    • Meta (TBA) - Meta (aka. Facebook) styles
  • Special - some special famous packs (In progress):
    • Minimalist (21 themes) - themes of several colors
    • Daisy UI (TBA) - default themes from Daisy Ui
    • Apple (TBA) - styles commonly used in Apple IOS and MacOS themes
    • Windows (TBA) - styles commonly used in Windows 11
  • Utilities - some of functions to help you create your own themes
    • tailwindScale - helps you create tailwind color range for given color in

Usage

To use them, in your tailwind.config.js import style and destructure it into your theme.extends: {...}:

const {gradual, special} = require('nsi-tailwind') 

module.exports = {
    theme: {
        extend: {
            ...gradual.strict // gradual.starbucks, special.minimalist.orwell etc.
        }
    }
} 

or if you want to use specific color or other theme, you may access it directly:

const {gradual} = require('nsi-tailwind');

module.exports = {
    ...
    theme: {
        extend: {
            ...
            primary: gradual.official.theme.colors.primary,
        },
    },
} 

In order to use your colors in UI, use them as you would do with ordinary tailwind:

<div class='text-primary-500'>
    Content
</div>

Theme descriptions

Special

Minimalist

export {special} from 'nsi-tailwind';

module.exports = {
    theme: {
        extend: {...special.minimalist.superuser}, 
    }
}

These theme contains only 6 colors:

  • back - background
  • fore - foreground
  • main - main color
  • sub - secondary color
  • extra - extra/accent color
  • error - error color

Each color may be used in class. For example:

<div class='bg-back'>
    <p class='text-fore'>
        Hello, <span class='text-main'>World</span>!
    <p>
</div>

Also for main, sub and extra colors their brighter and darker variants are available. For colors towards background brightness there are:

...-main-back and ...-main-fore
...-sub-back and ...-sub-fore
...-extra-back and ...-extra-fore

And for foreground there are also -200 and -100 variants. For example:

<div class='bg-back-100'>
    <p class='text-fore-200'>
        Hello, <span class='text-main-back'>World</span>!
    <p>
</div>

In case you want to add a border or delimiter, you may want to use line color:

<div class='bg-back-100 m-4 rounded-md border border-line'>
    Content
    <hr class='bg-line'/>
    Content
</div>

Line color is automatically generated from background and foreground colors to complement them in case line or delimiter is required in UI.

To sum up, all the classes in each minimalist theme are:

main main-back main-fore
sub sub-back sub-fore
extra extra-back extra-fore
back back-100 back-200
fore fore-100 fore-200
line line-100
error

Minimalist palettes

Gradual

In all color packs there are four colors with all variants of brightness (from 50 to 950):

primary
secondary
error
gray

Gradual palettes