Branding System - Quick Start Guide
nself whitelabel branding init
Step 2: Set Brand Identity
nself whitelabel branding create "My Company" \
--tagline "Innovation Through Technology" \
--description "Leading cloud solutions provider"
nself whitelabel branding set-colors \
--primary "#0066cc" \
--secondary "#ff6600" \
--accent "#00cc66"
nself whitelabel logo upload ./logo.png --type main
nself whitelabel logo upload ./icon.svg --type icon
nself whitelabel branding set-fonts \
--primary "Inter, system-ui, sans-serif" \
--secondary "Georgia, serif"
# Automatically generated after each change
# Include in your HTML:
<link rel="stylesheet" href="/branding/css/variables.css">
.header {
background: var(--color-primary);
color: var(--color-background);
font-family: var(--font-primary);
}
<Button style={{
backgroundColor: 'var(--color-primary)',
fontFamily: 'var(--font-primary)'
}}>
Click Me
</Button>
<div class="card" :style="{
backgroundColor: 'var(--color-background)',
borderColor: 'var(--color-border)'
}">
Content
</div>
# View current branding
nself whitelabel branding preview
# Update colors
nself whitelabel branding set-colors --primary "#new-color"
# List all logos
nself whitelabel logo list
# Export configuration
nself whitelabel config export > backup.json
# Import configuration
nself whitelabel config import backup.json
# List versions
nself whitelabel branding list-versions
# Restore version
nself whitelabel branding restore 20260130_143000
# Validate configuration
nself whitelabel branding validate
-
Logos: 5MB max (PNG, JPG, JPEG, SVG, WebP)
-
Fonts: 1MB max (WOFF, WOFF2, TTF, OTF)
-
CSS: 2MB max (.css files)
branding/
โโโ config.json # Configuration
โโโ logos/ # Logo files
โโโ css/
โ โโโ variables.css # Auto-generated
โ โโโ custom.css # Your custom CSS
โโโ fonts/ # Custom fonts
โโโ versions/ # Backups (last 10)
# Create tenant
nself whitelabel branding create "Client Brand" --tenant client123
# Configure tenant
nself whitelabel branding set-colors --primary "#client-color" --tenant client123
# Export tenant config
nself whitelabel config export --tenant client123 > client123.json
CSS Variables Not Working
# Regenerate CSS
nself whitelabel branding set-colors --primary "#0066cc"
# Check file exists
ls -la branding/css/variables.css
# Check logo was uploaded
nself whitelabel logo list
# Re-upload if needed
nself whitelabel logo upload /path/to/logo.png --type main
# List available versions
nself whitelabel branding list-versions
# Restore specific version
nself whitelabel branding restore TIMESTAMP
- Read full documentation:
docs/whitelabel/BRANDING-SYSTEM.md
- Explore custom CSS: Upload your own styles
- Add custom fonts: Upload WOFF2 files
- Set up multiple tenants: For white-label clients
- Integrate with your app: Use CSS variables
- Documentation:
/docs/whitelabel/
- Examples:
/src/examples/whitelabel/
- GitHub Issues: Report bugs
- Community: Discussions and tips