Appearance
Design Settings
The Design Settings allow you to customize the visual appearance of your website, including custom CSS, theme colors, typography, and other design elements.
Table of Contents
- Overview
- Accessing Design Settings
- Custom CSS
- Theme Customization
- Color Schemes
- Typography Settings
- Layout Settings
- Best Practices
Overview
Features
- ✅ Custom CSS editor
- ✅ Theme color customization
- ✅ Typography settings
- ✅ Layout options
- ✅ Logo and branding
- ✅ Custom styles
- ✅ Responsive design settings
Admin Routes
- Design Settings:
/admin/settings/design
Accessing Design Settings
From Admin Panel
- Log in to admin panel
- Navigate to Settings → Design
- Or go directly to:
/admin/settings/design
Permissions Required
- Manage Settings:
manage-settingspermission
Custom CSS
CSS Editor
Accessing CSS Editor
Go to Design Settings:
- Navigate to Design Settings page
- Find Custom CSS section
Open Editor:
- Click Edit CSS button
- CSS editor opens
- Code editor interface
Writing Custom CSS
Editor Features:
- Syntax Highlighting: Color-coded CSS
- Line Numbers: Easy navigation
- Auto-Complete: CSS property suggestions
- Error Detection: Syntax error highlighting
CSS Structure:
css
/* Custom Styles */
.header {
background-color: #ffffff;
}
.footer {
padding: 20px 0;
}
/* Responsive Styles */
@media (max-width: 768px) {
.header {
padding: 10px;
}
}Best Practices
Use Specific Selectors:
- Target specific elements
- Avoid global overrides
- Use classes/IDs
Organize Code:
- Group related styles
- Add comments
- Use consistent formatting
Test Responsively:
- Test on mobile
- Test on tablet
- Test on desktop
CSS Validation
Before Saving
Check Syntax:
- Verify valid CSS
- Check for errors
- Fix any issues
Preview Changes:
- Use preview mode
- Check appearance
- Verify layout
Save:
- Click Save CSS
- Changes applied
- CSS loaded on site
CSS Examples
Common Customizations
Header Customization:
css
.site-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 20px 0;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}Button Styling:
css
.btn-primary {
background-color: #635BFF;
border-radius: 8px;
padding: 12px 24px;
transition: all 0.3s ease;
}
.btn-primary:hover {
background-color: #4F46E5;
transform: translateY(-2px);
}Typography:
css
body {
font-family: 'Inter', sans-serif;
line-height: 1.6;
color: #333333;
}
h1, h2, h3 {
font-weight: 700;
color: #1a1a1a;
}Theme Customization
Theme Options
Available Themes
Default Theme:
- Clean, modern design
- Responsive layout
- Customizable colors
Custom Theme:
- Fully customizable
- Custom CSS support
- Brand-specific design
Theme Settings
Primary Color
Configuration:
- Color Picker: Select primary color
- Hex Code: Enter hex code
- RGB Values: Enter RGB values
- Preview: See color preview
Usage:
- Buttons
- Links
- Accent elements
- Brand colors
Secondary Color
Configuration:
- Color Picker: Select secondary color
- Hex Code: Enter hex code
- Complementary: Choose complementary color
Usage:
- Secondary buttons
- Hover states
- Accent highlights
Background Colors
Configuration:
- Page Background: Main background color
- Content Background: Content area color
- Header Background: Header color
- Footer Background: Footer color
Color Schemes
Predefined Schemes
Available Schemes:
- Light: Light background, dark text
- Dark: Dark background, light text
- Auto: Follows system preference
- Custom: Custom color scheme
Custom Color Scheme
Creating Custom Scheme:
Select Base Colors:
- Choose primary color
- Choose secondary color
- Choose background colors
Configure Text Colors:
- Heading colors
- Body text color
- Link colors
Save Scheme:
- Click Save
- Scheme applied
- Preview changes
Typography Settings
Font Configuration
Font Family
Options:
- System Fonts: Arial, Helvetica, etc.
- Web Fonts: Google Fonts, custom fonts
- Custom Fonts: Upload font
Google Fonts Integration
Using Google Fonts:
Select Font:
- Choose from Google Fonts
- Preview font
- Select weights
Configure:
- Font name
- Font weights
- Character sets
Apply:
- Font loaded automatically
- Applied to site
- Cached for performance
Custom Fonts
Uploading Custom Fonts:
Upload Font Files:
- Upload .woff, .woff2, .ttf files
- Multiple formats supported
- Font files stored
Configure:
- Font family name
- Font weights
- Font styles
Apply:
- Font available in editor
- Applied to site
- Loaded from server
Typography Settings
Heading Fonts
Configuration:
- H1 Font: Heading 1 font
- H2 Font: Heading 2 font
- H3 Font: Heading 3 font
- Font Sizes: Heading sizes
- Font Weights: Heading weights
Body Font
Configuration:
- Font Family: Body text font
- Font Size: Base font size
- Line Height: Line spacing
- Font Weight: Text weight
Link Styling
Configuration:
- Link Color: Default link color
- Hover Color: Hover state color
- Underline: Show/hide underline
- Font Weight: Link weight
Layout Settings
Layout Options
Container Width
Options:
- Full Width: 100% width
- Boxed: Fixed max width
- Custom: Custom width
Configuration:
- Max Width: Maximum container width
- Padding: Container padding
- Responsive: Mobile adjustments
Header Layout
Options:
- Standard: Traditional header
- Centered: Centered logo/menu
- Minimal: Simplified header
- Sticky: Sticky header on scroll
Footer Layout
Options:
- Standard: Multi-column footer
- Minimal: Simple footer
- Full Width: Full-width footer
- Centered: Centered content
Spacing Settings
Global Spacing
Configuration:
- Section Padding: Space between sections
- Content Padding: Content area padding
- Element Margin: Element spacing
Responsive Spacing
Mobile Adjustments:
- Reduced Padding: Smaller padding on mobile
- Stacked Layout: Vertical stacking
- Touch-Friendly: Larger touch targets
Best Practices
CSS Organization
Use Comments:
- Document sections
- Explain complex styles
- Mark important changes
Group Related Styles:
- Header styles together
- Footer styles together
- Component styles grouped
Maintain Consistency:
- Use consistent naming
- Follow conventions
- Keep structure organized
Performance
Minimize CSS:
- Remove unused styles
- Combine similar rules
- Optimize selectors
Use Efficient Selectors:
- Avoid deep nesting
- Use specific selectors
- Avoid !important when possible
Test Performance:
- Check load times
- Test on slow connections
- Optimize as needed
Responsive Design
Mobile-First:
- Design for mobile first
- Add desktop styles
- Test all breakpoints
Test Devices:
- Test on real devices
- Use browser dev tools
- Check various screen sizes
Touch-Friendly:
- Adequate touch targets
- Readable text sizes
- Easy navigation
Troubleshooting
CSS Not Applying
Solutions:
- Check CSS syntax
- Verify selector specificity
- Clear browser cache
- Check for conflicting styles
- Use browser dev tools
Colors Not Updating
Solutions:
- Verify color codes
- Clear cache
- Check theme settings
- Verify CSS is saved
- Refresh page
Fonts Not Loading
Solutions:
- Verify font files uploaded
- Check font paths
- Verify font formats
- Check browser console
- Test font loading
Related Documentation
Last Updated: [Date will be updated during final review]