A powerful web application for managing CSS custom properties (CSS variables) with a focus on design systems and the Bricks WordPress page builder. Organize, edit, and export your design tokens with an intuitive interface.
Try it now: https://bricksvariablemanager.sevalla.page/
While Bricks has a built-in variable manager, this standalone tool offers several key advantages:
- CSS Export: Export your variables as clean, production-ready CSS - something the native Bricks manager can't do
- Multiple Formats: Get your variables in both JSON (for Bricks) and CSS (for any project)
- Real-time Search: Instant filtering as you type, across both variable names and values
- Smart Results: Search results are organized and highlighted for quick identification
- No Lag: Unlike Bricks' search, our implementation is lightning-fast and responsive
- Visual Organization: Clear grid and list views with color swatches and visual indicators
- Bulk Operations: Select and manage multiple variables at once with checkboxes
- Drag & Drop: Reorder variables and categories with smooth, intuitive interactions
- Modern UX: Clean, distraction-free interface optimized for productivity
- Better Categorization: More flexible category management with bulk move operations
- Import from CSS: Parse existing CSS files to extract variables automatically
- Backup & Restore: Export/import your entire variable collection for safekeeping
- Visual Interface: Grid and row view modes for different workflows
- Color Support: Built-in color picker with visual swatches
- Bulk Operations: Select multiple variables for batch editing and categorization
- Search & Filter: Real-time search across variable names and values
- Drag & Drop: Reorder variables and categories with intuitive sorting
- Categories: Organize variables into custom categories
- Smart Filtering: View all variables or filter by specific categories
- Uncategorized Handling: Automatic handling of uncategorized variables
- CSS Import: Parse existing CSS code to extract custom properties
- JSON Import/Export: Bricks-compatible JSON format for seamless integration
- CSS Export: Generate clean CSS output for production use
- Local Storage: Automatic saving and restoration of your work
- Dark Theme: Modern dark interface optimized for long coding sessions
- Responsive Design: Works across different screen sizes
- Keyboard Shortcuts: Efficient workflows with keyboard support
- Toast Notifications: Clear feedback for all operations
- Modal Dialogs: Streamlined editing and confirmation workflows
- Open
index.htmlin your web browser - Start by importing existing CSS variables or create new ones manually
- Organize variables into categories for better management
- Export your variables as CSS or JSON when ready
- Click "Import from Code"
- Paste your CSS containing custom properties (
:root { --variable: value; }) - Variables are automatically parsed and added to your collection
- Click "Import JSON"
- Upload or drag & drop your Bricks JSON export file
- Variables are imported with their existing organization
- Click "Add Variable"
- Enter a name (e.g.,
primary-500,text-heading) - Set the value (colors, sizes, fonts, etc.)
- Assign to a category
- Use the color picker for color values
- Create categories like "Colors", "Typography", "Spacing", "Shadows"
- Use consistent naming conventions (e.g.,
color-primary-500) - Group related variables together for easier management
- Use the search function to quickly find specific variables
βββ index.html # Main application interface
βββ app.js # Core application logic and state management
βββ app.css # Comprehensive styling and theme system
βββ README.md # This documentation
- SortableJS: Drag and drop functionality
- CodeMirror: Code editor with syntax highlighting
- Modern Browser: ES6+ features, CSS Grid, Flexbox
- Chrome/Edge 88+
- Firefox 85+
- Safari 14+
- Uses browser localStorage for persistence
- Automatic save/restore on page reload
- Export options for backup and sharing
The application works with standard CSS custom properties:
:root {
--primary-500: #3b82f6;
--text-heading: #1f2937;
--spacing-lg: 2rem;
--shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
}Perfect for Bricks WordPress page builder users:
- Import existing Bricks variable exports
- Export in Bricks-compatible JSON format
- Maintain category organization
- Seamless workflow between design and development
- Select multiple variables with checkboxes
- Move variables between categories
- Delete multiple variables at once
- Clear selections with one click
- Grid View: Compact cards showing variable details
- Row View: List format optimized for reordering
- Search by variable name or value
- Results grouped by category
- Real-time filtering as you type
This is a client-side application built with vanilla JavaScript. To contribute:
- Fork the repository
- Make your changes
- Test across different browsers
- Submit a pull request
Open source - feel free to use, modify, and distribute.
Built for developers who care about organized, maintainable design systems.