Styling Guide
Learn how to customize the appearance of the PaySight Widget
Styling Guide
The PaySight Widget provides extensive styling and theming options to match your application’s design. This guide covers all available styling options and best practices.
Theme Configuration
The widget’s appearance can be customized through the theme
configuration option:
Basic Styling
Root Variables
Define global variables for consistent styling:
Container Styles
Style the widget container:
Input Styles
Customize form input fields:
Button Styles
Style the submit button:
Advanced Styling
Component-Specific Styles
Style specific widget components:
State-Based Styling
Style different field states:
Responsive Design
Implement responsive styles:
Pre-defined Themes
Use built-in themes as a starting point:
Dynamic Theme Updates
Update the widget’s theme after initialization:
Best Practices
1. Use CSS Variables
Define and use CSS variables for consistent styling:
2. Maintain Consistency
Create a theme object for consistent values:
3. Follow Accessibility Guidelines
Ensure your styles maintain accessibility:
Next Steps
- Event Handling Guide - Learn how to handle widget events
- Advanced Usage - Explore advanced features
- Examples - View styling examples
- API Reference - Complete API documentation