CSS Templates
Using CSS files in the templates directory with template directives
Overview
File Location
com.yourcompany.component/
├── templates/
│ ├── index.html
│ ├── styles.css # Component styles
│ └── include/
│ └── ...Basic Usage
Property Insertion
Conditional Styles
Component ID Scoping
Examples from Core Components
Reveal Component (Dynamic Groups)
Responsive Styles
Processing Behavior
Per-Instance Processing
Inline Styles
Templates vs Assets
Use templates/ CSS When:
templates/ CSS When:Use assets/ CSS When:
assets/ CSS When:Combining Both
Best Practices
Scope with Component ID
Keep Templates CSS Minimal
Use CSS Custom Properties
Avoid Heavy Computation
Consider Performance
Limitations
No @import
Limited Preprocessor Support
Browser Compatibility
Common Patterns
Theme Integration
Utility Classes
Animation Properties
Related Documentation
Last updated
Was this helpful?

