/tailwind-capacitor

Tailwind plugin for capacitor apps

Primary LanguageJavaScript

tailwind-capacitor

Capgo - Instant updates for capacitor

Tailwind plugin for capacitor apps

How to use

  1. Add the plugin to your project
npm install --save-dev tailwind-capacitor
  1. Add the plugin to your tailwind config
// tailwind.config.js
module.exports = {
  plugins: [
    require('tailwind-capacitor').safeAreas,
    require('tailwind-capacitor').colors,
    require('tailwind-capacitor').hairlines,
    require('tailwind-capacitor').touchRipple,
    require('tailwind-capacitor').iosMaterial,
    require('tailwind-capacitor').lineClamp,
    require('tailwind-capacitor').translucent,
    require('tailwind-capacitor').range,
    require('tailwind-capacitor').touch,
    require('tailwind-capacitor').noScrollbar,
  ],
}

Documentation for each plugin can be found here:

Credits

Tailwind Capacitor is a fork of Konsta UI and Tailwind CSS.