Package Exports
- stemuli-tailwind-plugin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stemuli-tailwind-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Tailwindcss Brand Colors
Tailwind plugin for adding the STEMuli design system tokens as utility classes
Installation
Add this plugin to your project:
npm install stemuli-tailwind-plugin --save
Usage
Add it to the plugins array of your Tailwind config:
// tailwind.config.js
plugins: [require("stemuli-tailwind-plugin")],
Usage:
You can use the design utilities in your class names like you would regular tailwind ones
<div class="bg-primary">Hello World</div>
For border color:
<div class="border-primary border">Hello World</div>
For text color:
<p class="text-primary">Hello World</p>