custom-tailwind-config
v1.1.6
Published
A simple, custom remote config file for TailwindCSS v3.x.x
Downloads
3
Readme
custom-tailwind-config
A simple, custom remote config file for TailwindCSS v3.x.x. I created this package solely in the quest for self-actualization. I'm not responsible for:
- Crashing your project
- Crashing your system
- Ruining your life along everyone & everything you care for
- Other life problems that may or may not be caused by using this package
Prerequisites
Have TailwindCSS installed. This package was published for use with TailwindCSS v3.2.4.
Installation & Usage
- Install custom-tailwind-config via npm
npm i custom-tailwind-config
. - After installing TailwindCSS, create a
tailwind.config.js
file at the root directory and add this config as a presetmodule.exports = { theme: { extend: {}, }, variants: { extend: {}, }, plugins: [ ], presets: [ require('custom-tailwind-config') ] };
- Alternatively, you can import individual presets like
colors
,spacing
, etc. - Include the
base.css
file to your stylesheet. - You can override/extend theme configuration as you would with an inline config file. For more information check out the official documentation.