Customizable Elements
| Element Category | CSS Variables | Description |
|---|---|---|
| Text Colors | --air-text-primary-color --air-text-secondary-color --air-text-placeholder-color | Primary text, secondary text, input placeholders |
| Button Colors | --air-button-primary-color --air-button-secondary-color --air-button-outlined-color | Primary buttons, secondary buttons, outlined buttons |
| Background Colors | --air-background-color --air-surface-color --air-container-primary-color | Main background, surface areas, containers |
| Border Colors | --air-border-color --air-border-focus-color | Default borders, focused input borders |
| Status Colors | --air-status-success-color --air-status-error-color --air-status-pending-color | Success, error, pending states |
| Icon Colors | --air-icon-primary-color --air-icon-secondary-color --air-icon-hover-color | Primary icons, secondary icons, hover states |
| Logo | --air-logo | Custom logo URL |
| Font Family | --air-font-family | Custom font family (requires font import) |
Example Partner Theme:
Our own Mocaverse theme for mocaverse.xyzTesting Your Theme
The best way to test your custom theme is to use browser developer tools to manipulate CSS custom properties in real-time:- Open Developer Tools: Press F12 or right-click → Inspect
- Navigate to Elements Tab: Find the
<html>element - Access CSS Variables: In the Styles panel, look for
:rootorhtml[theme='your-theme'] - Modify Properties: Click on any CSS custom property value to edit it
- See Changes Instantly: Changes apply immediately without page refresh
- Test different color combinations quickly
- Verify contrast ratios
- Ensure your theme works across all screens
- Fine-tune values before finalizing your CSS file
Best Practices
- Accessibility: Ensure sufficient contrast ratios for text and backgrounds. Adjust our AIR logo via config value if necessary
- Dark/Light Mode: Consider both light and dark theme variations
- Font Testing: Test custom fonts across different devices and browsers
- Real-time Testing: Use browser dev tools to iterate quickly on your theme