BintzGavin/helios / skills/examples/tailwind
example-tailwind-animation
VerifiedLearn how to use Tailwind CSS with Helios. Use for styling compositions and animating with utility classes.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.5 KB |
SKILL.md
View on GitHub---
name: example-tailwind-animation
description: Learn how to use Tailwind CSS with Helios. Use for styling compositions and animating with utility classes.
---
# Tailwind CSS Animation
Use Tailwind CSS to style and animate Helios compositions. Combine standard Tailwind utility classes with Helios's `autoSyncAnimations` feature.
## Quick Start
1. **Configure Helios:**
```typescript
const helios = new Helios({
// ...
autoSyncAnimations: true, // Enable CSS synchronization
animationScope: document.getElementById('app')
});
```
2. **Use Tailwind Classes:**
```html
<div class="w-full h-full bg-slate-900 flex items-center justify-center">
<div class="animate-bounce text-6xl text-white font-bold">
Hello Helios
</div>
</div>
```
3. **Custom Keyframes (`tailwind.config.js`):**
```javascript
module.exports = {
theme: {
extend: {
animation: {
'spin-slow': 'spin 3s linear infinite',
}
}
}
}
```
## Key Patterns
### Scoped Styles
When working in a monorepo or example folder, ensure your `tailwind.config.js` `content` array correctly targets your files to avoid global style leakage or missing styles.
### Auto-Sync
With `autoSyncAnimations: true`, standard CSS animations (like `animate-bounce`, `animate-spin`) are automatically hijacked by Helios. `helios.seek()` will scrub the CSS animation to the correct point in time.
## Source
- Example: `examples/tailwind-animation/`
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |