Skip to content

Commit 04937d5

Browse files
author
guillaume gallant (guga)
committed
[IMP] website: general themes restructuration
task-4644985
1 parent 00a0754 commit 04937d5

File tree

6 files changed

+146
-59
lines changed

6 files changed

+146
-59
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,168 @@
1-
==============
2-
Website themes
3-
==============
1+
=============
2+
General theme
3+
=============
44

5-
Odoo offers numerous themes to shape your website's style, including its colors, fonts, and layouts.
6-
When setting up your site using the Odoo website configurator, you are prompted to select a theme
7-
that aligns with your desired aesthetic. If you wish to modify the theme options later, navigate to
8-
the website builder by clicking the :guilabel:`Edit` button and access the :guilabel:`Theme` tab.
9-
The following sections are available:
5+
Odoo offers various options to shape your website’s theme, including its
6+
:ref:`Colors <website/themes/colors>`, :ref:`Fonts <website/themes/fonts>`, and
7+
:ref:`Layouts <website/themes/page-layouts>`.
108

11-
- :guilabel:`Colors`: The website builder relies on palettes composed of five colors: two
12-
:guilabel:`Main` colors and three :guilabel:`Light & Dark` colors.
9+
When setting up your website for the first time, you are prompted to select a theme. Hover your
10+
mouse over the themes to see an extended preview of each one. Click on a theme to select it.
1311

14-
You can also customize the :guilabel:`Color Presets` that have been defined automatically by the
15-
website builder according to the five colors defined above. Click the arrow next to a color preset
16-
to update it. Each color preset contains colors for your building block's :guilabel:`Background`,
17-
:guilabel:`Text`, :guilabel:`Headings`, :guilabel:`Links`, :guilabel:`Primary Buttons`, and
18-
:guilabel:`Secondary Buttons`.
12+
.. note::
13+
- If you leave without selecting a theme, your website is created using the default one.
14+
- You can switch themes later if needed.
1915

20-
.. image:: themes/colors.png
21-
:alt: select the colors of your website
22-
:scale: 75%
16+
In the website builder, the :guilabel:`Theme` tab offers various options to customize your website's
17+
theme. To access it, go to :menuselection:`Website --> Edit --> Theme`.
2318

24-
**To apply a color preset** to a building block of your site, select it, go to the
25-
:guilabel:`Customize` tab, click the :guilabel:`Background` button, and select the preset.
19+
Once you have made the desired changes, click on :guilabel:`Save` to confirm and apply them to your
20+
website.
2621

27-
.. note::
28-
Changing a color preset automatically updates the colors of both the default preset and the
29-
building blocks where the preset is used.
22+
Theme
23+
=====
3024

31-
- :guilabel:`Website`: From this section, you can :guilabel:`Switch Theme`,
32-
:doc:`Add a Language <../configuration/translate>`, select the :guilabel:`Page Layout`, and
33-
customize the :guilabel:`Background` by uploading your own image.
25+
In the :guilabel:`Website` section, click on :guilabel:`Switch Theme` to open the theme selector.
26+
Hover your mouse over the themes to see an extended preview of each one. Click on a theme to apply
27+
it to your website.
3428

35-
- :guilabel:`Paragraph`: Customize the formatting of your website's paragraph `<p>` elements.
29+
.. _website/themes/colors:
3630

37-
.. tip::
38-
The :guilabel:`Font Family` field contains fonts that are hosted and served by Google servers.
39-
To add another font, click :guilabel:`Add a Google Font`, and, in the popup window, click
40-
:guilabel:`fonts.google.com`.
31+
Colors
32+
======
4133

42-
.. image:: themes/add-a-font.png
43-
:alt: Select the font you like
44-
:scale: 75%
34+
Odoo's website editor features two main types of colors: :ref:`Theme colors <website/themes/theme-colors>`
35+
and :ref:`Status colors <website/themes/status-colors>`.
4536

46-
Select a font you like, copy the address of the page, paste it in the :guilabel:`Google Font
47-
address` field, then click :guilabel:`Save and Reload`. The new font applies to your entire
48-
website.
37+
.. _website/themes/theme-colors:
4938

50-
- :guilabel:`Headings`: Customize the formatting of your headings.
39+
Theme colors
40+
------------
5141

52-
- :guilabel:`Button`: Customize the :guilabel:`Primary Style` and :guilabel:`Secondary Style`
53-
buttons.
42+
:guilabel:`Theme colors` refer to the set of colors displayed across all pages of your website.
43+
These are made of five colors: three main colors and two light and dark colors.
5444

55-
.. image:: themes/buttons.png
56-
:alt: Two types of buttons in Odoo
45+
To edit your website's colors, go to the :guilabel:`Colors` section in the website editor, then:
5746

58-
- :guilabel:`Link`: To edit the style of the hyperlinks available on your website.
47+
- Click on the color dot you want to change, then select a :guilabel:`Solid` color or click on
48+
:guilabel:`Custom` to pick a specific color tone manually (or add its #HEX or RGBA code).
49+
- Click on the paint palette icon and choose a color palette. As a result, all color customizations
50+
are reset; click a color dot to change a specific color.
5951

60-
- :guilabel:`Input Fields`: Customize fields where you can enter data, e.g., a search bar or a form.
52+
Odoo automatically creates :guilabel:`Color Presets` for your chosen palette. These are predefined
53+
color combinations applied to different elements of your website to provide a structured and
54+
visually appealing design. When you select a color palette, its presets define how those colors are
55+
distributed across different elements from a building block, such as buttons, backgrounds, and text.
56+
If you want to modify them, click on :guilabel:`Color Presets` and click on a preset to customize it
57+
further. Each color preset contains colors for your building block’s background, text, headings,
58+
links, primary buttons, and secondary buttons.
6159

62-
- :guilabel:`Advanced`: You can hide the header bar of your website using the
63-
:guilabel:`Show Header` button, inject :ref:`head and body code <analytics/google-tag-manager>`,
64-
enter your :guilabel:`Google Map Custom Key`, change the colors of the :guilabel:`Success`,
65-
:guilabel:`Info`, :guilabel:`Warning`, and :guilabel:`Error` pop up messages by clicking the
66-
related :guilabel:`Status Colors` buttons, and customize the :guilabel:`Grays` elements of your
67-
site.
60+
.. image:: themes/color-presets.png
61+
:scale: 80%
62+
:alt: Color presets
6863

69-
.. example::
70-
- The :guilabel:`Status Color` of the :guilabel:`Success` messages is set to green.
64+
To apply a color preset to a building block on your site, select the building block, go to the
65+
:guilabel:`Customize` tab, click the color dot located next to :guilabel:`Background`, and choose a
66+
:guilabel:`Theme`.
7167

72-
.. image:: themes/advanced.png
73-
:alt: Status colors success message set to green.
68+
.. note::
69+
Changing a color preset automatically updates the colors of both the default preset and the
70+
building blocks where the preset is used.
7471

75-
.. image:: themes/success.png
76-
:alt: Success message is green
72+
.. _website/themes/status-colors:
7773

78-
- Customizing the gray elements of your site.
74+
Status colors
75+
-------------
7976

80-
.. image:: themes/grays.png
81-
:alt: Customize the grays elements of your site
77+
Status colors are used to indicate the status of certain actions (e.g., :guilabel:`Success`,
78+
:guilabel:`Warning`, etc.) . They're used in pop-up messages that appear to provide feedback to
79+
users and website visitors. To customize your website's :guilabel:`Status Colors`, scroll down to
80+
the :guilabel:`Advanced` section and click on the dots to change their color.
81+
82+
.. example::
83+
.. image:: themes/advanced.png
84+
:alt: Status color selection
85+
86+
.. image:: themes/success.png
87+
:alt: Success pop-up
88+
89+
.. _website/themes/page-layouts:
90+
91+
Page layout
92+
===========
93+
94+
The :guilabel:`Page layout` option in the :guilabel:`Website` section allows you to change the
95+
overall display and spacing of building blocks and website elements on pages. Click the dropdown
96+
menu and select the desired layout. Under :guilabel:`Page Layout`, customize your
97+
:guilabel:`Background` by choosing an :guilabel:`Image`, using a selected image in a
98+
:guilabel:`Pattern`, or leaving it blank.
99+
100+
.. _website/themes/fonts:
101+
102+
Fonts
103+
=====
104+
105+
Odoo allows you to customize the font family and size for specific elements on your website,
106+
including paragraphs, headings, buttons, and input fields.
107+
108+
- :guilabel:`Font Family`: In the :guilabel:`Paragraph`, :guilabel:`Headings`, and
109+
:guilabel:`Button` sections, select a font from the dropdown menu.
110+
111+
- :guilabel:`Font Size`: In the :guilabel:`Paragraph`, :guilabel:`Headings`, :guilabel:`Button`, and
112+
:guilabel:`Input Fields` sections, use the :guilabel:`Font Size` field to set a default size.
113+
Click the :icon:`fa-caret-right` (arrow) icon to expand the section and define custom sizes
114+
(e.g., based on the heading level, button size, etc.).
115+
116+
Additionally, each element-specific section offers extra styling options, such as
117+
:guilabel:`Line Height` and :guilabel:`Margins`, for further customization.
118+
119+
Custom fonts
120+
------------
121+
122+
It is possible to use fonts on your website that are not offered by default in Odoo.
123+
124+
To add a custom font, click the dropdown menu related to the :guilabel:`Font Family` field and
125+
select :guilabel:`Add a Custom Font` at the bottom of the dropdown menu. In the pop-up window:
126+
127+
- To add a Google font, click on :guilabel:`Select a Google Font` and click on the desired font
128+
in the list. Toggle off the :guilabel:`Serve font from Google servers` if your website is operated
129+
from a location where regulations require compliance with laws such as, but not limited to, the
130+
European Union's GDPR. This will ensure that the Google Font is stored on your website's server
131+
instead of Google's.
132+
- To upload a custom font from your computer, click on :guilabel:`Choose File`.
133+
134+
Once done, click on :guilabel:`Save and Reload`.
135+
136+
Button styles
137+
=============
138+
139+
To customize the style of your website's primary and secondary buttons, navigate to the
140+
:guilabel:`Button` section in the website editor and edit the relevant options:
141+
142+
- Click the arrow next to the :guilabel:`Primary Style` or :guilabel:`Secondary Style` fields and
143+
select one of the available styles for each type of button: :guilabel:`Fill`, :guilabel:`Outline`,
144+
or :guilabel:`Flat`. When selecting :guilabel:`Outline`, the :guilabel:`Border Width` option
145+
- :ref:`Modify the fonts <website/themes/fonts>`.
146+
- Adjust the :guilabel:`Padding` to change the size of the spacing (in pixels) around the buttons'
147+
labels.
148+
- Customize the buttons' border radius using the :guilabel:`Round Corners` option.
149+
- Add an animation when a button is clicked in the :guilabel:`On Click Effect` dropdown menu.
150+
151+
.. image:: themes/buttons.png
152+
:alt: Primary and secondary buttons
153+
154+
.. tip::
155+
You can define custom :guilabel:`Small` and :guilabel:`Large` sizes for button'
156+
:guilabel:`Padding`, :guilabel:`Font Size`, and :guilabel:`Round Corners` : Click on the
157+
:icon:`fa-caret-right` (arrow) icon and use the related fields.
158+
159+
.. image:: themes/button-settings.png
160+
:scale: 80%
161+
:alt: Button padding, font size and round corners settings
162+
163+
Link style
164+
==========
165+
166+
In the :guilabel:`Link` section, click on :guilabel:`Link Style` to choose the appearance of links
167+
on your website. Select :guilabel:`No Underline`, :guilabel:`Underline On Hover`, or
168+
:guilabel:`Always Underline` in the dropdown menu.
Binary file not shown.
Loading
Loading
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)