Host Custom CSS - Quick Reference Guide
Access Path
Administration → Settings → Host Settings → Customization tab
File Requirements
- Format:
.cssfiles only - Size: Maximum 5MB
- Syntax: Valid CSS required
Basic Operations
Upload CSS
- Click "Choose file"
- Select your
.cssfile - Click "Upload"
- Wait for confirmation
Download CSS
- Click "Download" button (when CSS is active)
Remove CSS
- Click "Remove" button
- Confirm deletion
- ⚠️ Cannot be undone - download backup first
CSS Precedence Order
Bootstrap → Theme CSS → Page CSS → HOST CSS → Tenant CSS → Inline CSS
↑ Your CSS loads hereCommon Selectors
Brand Colors
css
:root {
--kt-primary: #your-brand-color;
}
.btn-primary, .kt-header {
background-color: var(--kt-primary) !important;
}Custom Fonts
css
@import url('https://fonts.googleapis.com/css2?family=YourFont:wght@400;500;700&display=swap');
body {
font-family: 'YourFont', sans-serif !important;
}Header Branding
css
.kt-header {
background-color: #your-brand-color;
}
.kt-header-brand-logo img {
content: url('https://yourdomain.com/logo.png');
max-height: 40px;
}Form Builder Styling
css
.formio-dialog-content {
background: #your-color;
font-family: "Your Font", sans-serif;
}
.card-header {
background-color: #your-brand-color;
color: white;
}Quick Troubleshooting
| Issue | Solution |
|---|---|
| Upload fails | Check file size (<5MB) and format (.css) |
| CSS not applying | Clear browser cache (Ctrl+F5) |
| Styles overridden | Add !important or use more specific selectors |
| Broken layout | Check CSS syntax, remove problematic rules |
Status Indicators
- "Active": CSS is uploaded and working
- "Not Set": No CSS currently configured
- Last Updated: Shows when CSS was last modified
Best Practices
- ✅ Test in development first
- ✅ Download backup before changes
- ✅ Use specific CSS selectors
- ✅ Include responsive design
- ❌ Don't use overly generic selectors
- ❌ Don't include JavaScript in CSS files
Emergency Reset
If CSS breaks the interface:
- Use direct database access to clear Host CSS setting
- Or contact system administrator for assistance