A professional framework for implementing consistent, dark-mode-ready Tailwind CSS component patterns within Ruby on Rails ERB views.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install tailwind-rails
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install tailwind-rails using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Tailwind CSS for Rails is a specialized set of patterns and best practices designed to bridge the gap between utility-first CSS and Ruby on Rails view architecture. This Openclaw Skills entry provides developers with a structured approach to building UI components like badges, cards, and tables while ensuring full compatibility with dark mode and responsive design directly inside ERB templates.
By leveraging reusable partials and a dedicated class name helper, this skill streamlines the process of managing complex conditional styling. It empowers Rails developers to maintain a clean design system without the overhead of heavy JavaScript frameworks, focusing on the native strengths of the Rails asset pipeline and Tailwind utilities.
To get started with this Openclaw Skills pattern, first add the class name helper to your application helper:
# app/helpers/application_helper.rb
def cn(*classes)
classes.flatten.compact.join(' ').split.uniq.join(' ')
end
Then, ensure your Tailwind configuration is properly detecting your ERB files in tailwind.config.js:
./bin/bundle add tailwindcss-rails
./bin/rails tailwindcss:install
The skill follows a specific architectural taxonomy for organizing Rails view data and styles:
| Element | Location | Purpose |
|---|---|---|
| Helper Logic | app/helpers/application_helper.rb |
Centralized class name merging and deduplication. |
| Shared Components | app/views/shared/_*.html.erb |
Reusable partials for badges, buttons, and cards. |
| Layouts | app/views/layouts/*.html.erb |
Global containers and responsive wrappers. |
| References | references/ |
Documentation for dark mode, animations, and component specs. |
Loading
An all-in-one English learning assistant designed to improve vocabulary, grammar, and communication through personalized AI-driven workflows.

A powerful AI video synthesis skill for training custom digital humans and generating professional talking-head videos via the Chanjing platform.

An automated AI skill that transforms natural language descriptions and structured data into interactive ECharts visualizations rendered as HTML.

Moltbook Trend Analysis provides data-driven insights and virality benchmarks for the Moltbook AI-agent social network to optimize your content strategy.

A professional-grade crypto trade review skill that combines automated risk scoring, sanctions screening, and mandatory human-in-the-loop decision gates.

A specialized AI agent skill for managing SafetyCulture IAuditor inspections, audits, and safety compliance workflows.








































