A repository for applying Custom CSS in Beefree SDK.
This guide explains how to customize the Beefree SDK user interface by modifying the CSS file.
- Introduction
- Customizing the CSS
- Using Browser DevTools
- CSS Structure Guidelines
- Theme Examples
- Best Practices
- Troubleshooting
This guide explains how to customize the Beefree SDK user interface by modifying the CSS file. You can completely transform the look and feel of the builder while maintaining all functionality.
- Locate the CSS file in your project
- Make a backup before making changes
- Use the following structure for new styles:
/* Target elements using Beefree's class structure */
.widget-bar.widget-bar--cs {
  /* Your styles here */
}
/* Add custom variables at the top */
:root {
  --primary-color: #2F4F4F;
  --secondary-color: #228B22;
}- Color scheme: Modify the color variables
- Typography: Change font families and sizes
- Layout: Adjust spacing and dimensions
- Components: Style buttons, inputs, panels
- Interactive states: Hover, active, focus styles
- 
Open DevTools: - Right-click on any UI element → "Inspect"
- Or press F12/Ctrl+Shift+I(Windows) orCmd+Opt+I(Mac)
 
- 
Identify Classes: - Hover over elements in the Elements panel
- Look for class names in the HTML
 
- 
Test Styles: - In the Styles panel, add temporary CSS
- Use the +button to add new rules
- Test changes before adding to your CSS file
 
- Search for classes: Ctrl+Fin Elements panel
- Force states: Right-click element → "Force state" (hover, active, etc.)
- Mobile view: Toggle device toolbar (Ctrl+Shift+M)
Always follow Beefree's pattern:
/* Correct */
.widget-bar.widget-bar--cs .tabset__tab--cs a {
  /* styles */
}
/* Avoid */
.tabset__tab a {
  /* too generic */
}- 
Use !importantsparingly but it's often needed to override defaults:.bee--cs .btn-primary { background-color: var(--primary-color) !important; } 
- 
Organize your CSS by component: /* Tabs */ /* Widgets */ /* Inputs */ /* Buttons */
- 
Comment your changes: /* Custom tab styling - added 2023-10-01 */ .tabset__tab--cs { /* ... */ } 
:root {
  /* Greens */
  --forest-green: #228B22;
  --sage-green: #9DC183;
  /* Blues */
  --ocean-blue: #1E90FF;
  /* Browns */
  --earth-brown: #8B4513;
}:root {
  --dark-1: #1a1a2e;
  --dark-2: #16213e;
  --accent: #0f3460;
  --highlight: #e94560;
}:root {
  --light-1: #f8f9fa;
  --light-2: #e9ecef;
  --accent: #4361ee;
  --text: #212529;
}- Test incrementally: Make small changes and verify they work
- Check responsiveness: Test at different screen sizes
- Document changes: Keep a changelog of your modifications
- Use variables: For easier theme management
- Consider accessibility:
- Minimum contrast ratio of 4.5:1 for text
- Visible focus states
- Sufficient touch targets
 
| Issue | Solution | 
|---|---|
| Styles not applying | Add !importantor increase specificity | 
| Layout breaks | Check for missing parent selectors | 
| Colors not changing | Verify correct variable usage | 
| Changes not visible | Clear cache (Ctrl+F5) | 
- Check if your CSS file is loading in DevTools → Sources
- Verify no syntax errors in CSS
- Look for overrides in the Computed tab
- Test in multiple browsers