Tailwind Plugin
The@empathyco/x-tailwindcss package provides a Tailwind CSS plugin that adds Interface X component styles and utilities to your project.
Installation
Configure Tailwind
Add the plugin to your Source:
tailwind.config.ts or tailwind.config.js file:tailwind.config.ts
/home/daytona/workspace/source/packages/x-tailwindcss/demo/tailwind.config.ts:1What the Plugin Provides
The plugin automatically adds:1. Theme Configuration
Access to thex theme namespace with all design tokens:
2. Component Classes
Pre-styled component classes for common UI elements:3. Utility Classes
Additional utility classes for common patterns in search UIs.4. Custom Variants
Theselected variant for selected states:
.x-selected class being present on the element.
Plugin Architecture
The plugin is built using Tailwind’s official plugin API:/home/daytona/workspace/source/packages/x-tailwindcss/src/x-tailwind-plugin/plugin.ts:1
Using Theme Helpers
When creating custom component styles, use the Tailwind helpers:Package Information
Package
@empathyco/x-tailwindcssVersion
2.0.0-alpha.31+
Dependencies
- Tailwind CSS 3.4+
- Node.js 22+
Repository
Next Steps
Customization
Learn how to customize the design system
Components
Explore available Vue components
