@singlestone/tailwind-plugin-buttons-sugar
TypeScript icon, indicating that this package has built-in type declarations

0.6.2 • Public • Published

tailwind-plugin-buttons

Buttons plugin for the Sugar design system

Prerequisites

Installation

Install @singlestone/tailwind-plugin-buttons-sugar with your NodeJS package manager of choice.

npm

$ npm install -D @singlestone/tailwind-plugin-buttons-sugar

Yarn

$ yarn add -D @singlestone/tailwind-plugin-buttons-sugar

pnpm

$ pnpm install -D @singlestone/tailwind-plugin-buttons-sugar

Setup

After installation, add Sugar to your tailwind.config.js like so:

// tailwind.config.js
module.exports = {
  mode: "jit",
  content: [
    // change this to fit your project as necessary
    "./src/**/*.{ts,tsx}",
    "./index.html",
  ],
  plugins: [
    require("@singlestone/tailwind-plugin-buttons-sugar").sugarButtonsPlugin(),
  ],
};

Usage

Once you've followed the Installation and Setup process, you can use the CSS classes generated in your JavaScript and HTML.

Check out our Storybook for examples on how to do so.

Readme

Keywords

none

Package Sidebar

Install

npm i @singlestone/tailwind-plugin-buttons-sugar

Weekly Downloads

1

Version

0.6.2

License

MIT

Unpacked Size

37.8 kB

Total Files

12

Last publish

Collaborators

  • sugarssc
  • terry.brown
  • rharrahssc
  • singlestone_admin