UNPKG

tailwind-nord

Version:

A tailwindcss plugin that enables the use of the Nord colour palette

48 lines (32 loc) 1.24 kB
![](https://img.shields.io/npm/v/tailwind-nord?style=flat) ![](https://img.shields.io/npm/dw/tailwind-nord?style=flat) <p align="center"> <a href="https://github.com/crumb1e/tailwind-nord"> <img src="https://raw.githubusercontent.com/crumb1e/tailwind-nord/master/tailwind-nord.png" alt="Logo"> </a> <h1 align="center">Tailwind Nord</h1> </p> A super tiny tailwind plugin that enables the use of the [Nord color palette](https://www.nordtheme.com/). Made this mainly for myself, as I kept copying the Nord colours over manually. But hopefully it can save someone else 5 mins at the start of a project! ## Installation `npm i tailwind-nord` ## Usage In your tailwind.config.js: ```js plugins: [ require('tailwind-nord'), ], ``` You now have access to the Nord theme anywhere you would use normal tailwind colours. ```html <div class="bg-nord0"> <p class="text-nord5">Hello, this is some text</p> </div> ``` You can use the colour names set in the Nord documentation. Check that out [here](https://www.nordtheme.com/docs/colors-and-palettes). But you can also use Tailwind-like color names as shown below. ```html <div class="bg-nord-0"> <p class="text-nord-5">Hello, this is some text</p> </div> ```