Skip to content
This repository was archived by the owner on Aug 3, 2020. It is now read-only.

aniftyco-archive/tailwindcss-spinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tailwind CSS Spinner

Spinner utility for Tailwind CSS

Installation

You can install it with yarn

yarn add tailwindcss-spinner

Usage

To get started using the plugin, you can require it into your Tailwind CSS config file

plugins: [
  // Other plugins...

  require('tailwindcss-spinner')(),
],

Now you will have a .spinner class available in your CSS.

If you want to customize the spinner, you can pass any combination of the following options (shown with default values).

plugins: [
  // Other plugins...

  require('tailwindcss-spinner')({
    name: 'spinner', // change class name
    color: 'grey-light', // color from config to make it
  }),
],

Example