Skip to content
cap-go avatar

Tailwind Capacitor

Tailwind CSS v4 setup and mobile styling guide for Capacitor apps, covering CSS-first config and WebView compatibility.

CCM score
66 of 100
skills.sh installs
1.1K
GitHub stars
79
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers installing Tailwind v4 with Vite or PostCSS, upgrading from v3 tailwind.config.js, and fixing missing styles after upgrade
  • Includes @theme, @utility, and @custom-variant setup for safe-area padding, platform variants, and class-based dark mode
  • Flags that v4 needs Safari 16.4+ and Chrome 111+, so iOS 15.x to 16.3 devices need a higher minimum OS or staying on Tailwind 3.4
  • Designed for Capacitor projects that need mobile layouts, touch targets, and troubleshooting, not Konsta UI, Ionic theming, or keyboard overlap

Install

$ npx -y skills add cap-go/capgo-skills --skill tailwind-capacitor -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Tailwind CSS in Capacitor Apps

When to Use

TRIGGER when:

  • Adding Tailwind to a Capacitor app (Vite, Angular, Next static export, etc.)
  • Upgrading Tailwind v3 -> v4, or a v4 install produces no styles
  • tailwind.config.js edits have no effect (v4 is CSS-first)
  • Colors / gradients broken or transparent on older iOS devices
  • Safe-area, dark mode, platform-specific, or touch-target utilities

Do not use:

  • Konsta UI setup/components: konsta-ui
  • Ionic components and --ion-* variables: ionic-design
  • SystemBars / Android edge-to-edge / status bar plugin: safe-area-handling
  • Inputs hidden by keyboard: capacitor-keyboard
  • Adding Capacitor to a framework: framework-to-capacitor

Version facts (October 2026)

Details

Repository
github.com/cap-go/capgo-skills
Categories
Frontend & UI Code, Mobile Apps
First seen
Jun 3, 2026

Questions

What does the tailwind-capacitor skill do?

The tailwind-capacitor skill sets up and uses Tailwind CSS v4 in Capacitor apps, covering CSS-first config, the Vite and PostCSS plugins, and upgrades from v3. It also gives mobile utilities for safe areas, platform variants, class-based dark mode, and touch targets.

How do I install the tailwind-capacitor skill?

Run npx -y skills add cap-go/capgo-skills --skill tailwind-capacitor -y in a project. The agent then gains guidance for installing Tailwind in a Capacitor project and building mobile layouts with it.

Will Tailwind v4 styles work on older iPhones with the tailwind-capacitor skill?

The tailwind-capacitor skill notes that v4 targets Safari 16.4 and newer, so devices on iOS 15.x to 16.3 can render v4 styles incorrectly. It advises asking whether to stay on Tailwind 3.4 or raise the minimum OS before shipping v4.

Which skills sit alongside tailwind-capacitor in Frontend and UI Code?

Within the Frontend and UI Code category, tailwind-capacitor is listed next to vercel-react-best-practices, web-design-guidelines, and design-taste-frontend. Its own focus is Tailwind setup and mobile utilities inside Capacitor WebViews.

More from cap-go/capgo-skills

All 41

Similar to Tailwind Capacitor

More Frontend & UI Code