Skip to content

o2dependent/tailwind-plugin-ionic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tailwind CSS

Ionic Tailwind CSS Plugin

Tailwind utilities for styling Ionic components

Build Status License

tailwind-plugin-ionic

This is a collection of Tailwindcss utils for styling Ionic components.

Installation

Install the plugin from npm:

yarn add -D tailwind-plugin-ionic

Then add the plugin to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require('tailwind-plugin-ionic'),
    // ...
  ],
}

Usage

Any Ionic css variables that can used can be added using the utilities that come with Tailwindcss. All you have to do is prefix the type with ion- then add your option.

<ion-card class="ion-bg-black ion-text-black">
  <ion-card-header>
    <ion-card-subtitle class="ion-text-red-500">Card Subtitle</ion-card-subtitle>
    <ion-card-title class="ion-text-blue-300">Card Title</ion-card-title>
  </ion-card-header>

  <ion-card-content>
    Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain or
    spend a week in the woods. Wash your spirit clean.
  </ion-card-content>
</ion-card>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published