CSS Variables
VistaView uses CSS custom properties (CSS variables) for easy customization without modifying the source code.
Basic Usage
Section titled “Basic Usage”Import the base CSS file:
Then override variables in your own CSS:
Available Variables
Section titled “Available Variables”Core Colors
Section titled “Core Colors”Animation
Section titled “Animation”Z-Index
Section titled “Z-Index”UI Theme Colors
Section titled “UI Theme Colors”These are derived from the core colors:
Best Practices
Section titled “Best Practices”- Only override what you need - Most variables have sensible defaults
- Test with different themes for pre-built options before customizing
- Use semantic colors - The UI colors derive from
--vvw-bg-colorautomatically - Consider accessibility - Ensure adequate contrast ratios
Next Steps
Section titled “Next Steps”- Explore pre-built themes
- Learn about custom styling
- See configuration options