Customizing ComfyUI Appearance
Learn how to customize the appearance of ComfyUI using color palettes and advanced CSS options
ComfyUI offers flexible appearance customization options that allow you to personalize the interface to your preferences.
Color Palette System
The primary way to customize ComfyUI’s appearance is through the built-in color palette system. This allows you to:
- Switch between preset themes
- Modify specific interface elements
- Create and save your own custom themes
- Export and import theme configurations
Accessing the Color Palette
- Click the Settings gear icon in the sidebar
- Select Appearance → Color Palette
Preset Themes
ComfyUI comes with several built-in themes:
- Dark Theme (default)
- Light Theme
- Additional themes may be available depending on your ComfyUI version
Customizing Colors
The color palette system lets you customize virtually every aspect of the interface:
- Node colors and styles
- Background colors
- Text colors and fonts
- Widget appearance
- Connection link colors and styles
Export/Import Themes
You can save and share your custom themes:
- Export: In the Color Palette settings, click “Export” to save your current theme configuration as a JSON file
- Import: Click “Import” to load a previously saved theme or one shared by the community
Color Configuration Properties
The color palette allows you to modify many specific properties. Here are some of the most commonly customized elements:
Background Image
ComfyUI allows you to set a custom background image for your canvas, providing a more personalized workspace.
Requirements
- ComfyUI frontend version 1.20.5 or newer
Setting a Background Image via Settings
- Click the Settings gear icon in the sidebar
- Go to Appearance → Background Image
- You can:
- Upload an image from your local computer using the upload button
- Provide a URL to a remote image
Setting a Background Image from Generated Results
You can also quickly set a generated image as the background:
- Generate an image using any workflow
- Find the image in the queue sidebar
- Right-click on the image
- Select Set as Background from the context menu
This is a convenient way to use your own creations as a background for further work.
Advanced Customization with user.css
For cases where the color palette doesn’t provide enough control, you can use custom CSS via a user.css file. This method is recommended for advanced users who need to customize elements that aren’t available in the color palette system.
Requirements
- ComfyUI frontend version 1.20.5 or newer
Setting Up user.css
- Create a file named
user.css
in your ComfyUI user directory (same location as your workflows and settings) - Add your custom CSS rules to this file
- Restart ComfyUI or refresh the page to apply changes
User Directory Location
CSS Specificity Note
The user.css file is loaded early in the application startup process. Because of this, you may need to use !important
in your CSS rules to ensure they override the default styles.
Example user.css Customizations
Best Practices
- Start with the color palette for most customizations
- Use user.css only when necessary for elements not covered by the color palette
- Export your theme before making significant changes so you can revert if needed
- Share your themes with the community to inspire others
Troubleshooting
- If your color palette changes don’t appear, try refreshing the page
- If CSS customizations don’t work, check that you’re using frontend version 1.20.5+
- Try adding
!important
to user.css rules that aren’t being applied - Keep backups of your customizations to easily restore them