
Learn how to personalize your Odoo 18 interface by changing the color palette. This comprehensive guide provides step-by-step instructions using SCSS and manifest modifications.
Odoo 18 brings a fresh and modern interface, but what if you want to make it truly yours? Changing the color palette is a fantastic way to personalize your Odoo experience and align it with your brand. This guide will walk you through the process of creating and applying a custom color palette in Odoo 18 using SCSS and manifest file modifications.
Let's Get Started!
First, you'll need to create a new SCSS file in your custom Odoo module. This file will define your custom color palette.
$o-color-palettes: map-merge($o-color-palettes,
(
'custom': (
'o-color-1': #bedb39, /* Custom primary color */
'o-color-2': #2c3e50, /* Custom secondary color */
'o-color-3': #f2f2f2, /* Background color */
'o-color-4': #ffffff, /* Background color */
'o-color-5': #000000, /* Text color */
),
)
);
$o-selected-color-palettes-names: append($o-selected-color-palettes-names, 'custom'); /* Add 'custom' to the selected palettes */
$o-website-values-palettes: (
(
'color-palettes-name': 'custom', /* Set 'custom' as the active palette */
),
);
Next, you need to tell Odoo to include your custom SCSS file.
'web._assets_primary_variables': [
'your_module/static/src/css/custom_color.scss',
],
Replace your_module with the actual name of your Odoo module.
Finally, you need to update and upgrade your module to apply the changes.
Customizing the color palette in Odoo 18 is a simple yet powerful way to enhance your user experience and brand identity. By following these steps, you can create a unique and personalized Odoo interface that perfectly suits your needs.
Feel free to experiment with different color combinations and create a truly customized Odoo experience. Happy customizing!
Your email address will not be published. Required fields are marked *