Skip to content

Commit a5218bd

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

File tree

6 files changed

+141
-59
lines changed

6 files changed

+141
-59
lines changed
+141-59
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,163 @@
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>`, ensuring alignment with your company's brand identity
8+
and aesthetics.
109

11-
- :guilabel:`Colors`: The website builder relies on palettes composed of five colors: two
12-
:guilabel:`Main` colors and three :guilabel:`Light & Dark` colors.
10+
When setting up your website for the first time, you land on the theme selection page. Hover your
11+
mouse over the themes to see an extended preview of each page. Click on a page to apply the theme to
12+
your website. If you leave without selecting a theme, Odoo automatically assigns the
13+
:guilabel:`Default` theme to your website. You can switch themes later as many times as you want.
1314

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`.
15+
In the website builder, the :guilabel:`Theme` tab offers many customization options for your theme.
16+
Go to :menuselection:`Website --> Edit --> Theme`.
1917

20-
.. image:: themes/colors.png
21-
:alt: select the colors of your website
22-
:scale: 75%
18+
Once you have made the desired changes, click on :guilabel:`Save` to confirm and apply them to your
19+
website.
2320

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.
21+
Themes
22+
======
2623

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.
24+
In the :guilabel:`Website` section, click on :guilabel:`Switch Theme` to open the theme selector.
25+
Hover your mouse over the themes to see an extended preview of each page. Click on it to apply the
26+
theme to your website.
3027

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.
28+
.. _website/themes/colors:
3429

35-
- :guilabel:`Paragraph`: Customize the formatting of your website's paragraph `<p>` elements.
30+
Colors
31+
======
3632

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`.
33+
Odoo's website builder features two main types of colors : :guilabel:`Theme Colors` and
34+
:guilabel:`Status Colors`.
4135

42-
.. image:: themes/add-a-font.png
43-
:alt: Select the font you like
44-
:scale: 75%
36+
Theme Colors
37+
------------
4538

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.
39+
:guilabel:`Theme Colors` refers to the set of colors displayed across all pages of your website.
40+
These are made of five colors: three main colors and two light and dark colors.
4941

50-
- :guilabel:`Headings`: Customize the formatting of your headings.
42+
To edit your website's colors, go to the :guilabel:`Colors` section in the website editor, then:
5143

52-
- :guilabel:`Button`: Customize the :guilabel:`Primary Style` and :guilabel:`Secondary Style`
53-
buttons.
44+
- Click on the color dot you want to change, then select a :guilabel:`Solid` color or click on
45+
:guilabel:`Custom` to pick a specific color tone manually (or add its #HEX or RGBA code).
46+
- Click on the paint palette icon and choose a color palette. As a result, all color customizations
47+
are reset; click a color dot to change a specific color.
5448

55-
.. image:: themes/buttons.png
56-
:alt: Two types of buttons in Odoo
49+
Odoo automatically creates :guilabel:`Color Presets` for your chosen palette. These are predefined
50+
color combinations applied to different elements of your website to provide a structured and
51+
visually appealing design. When you select a color palette, its presets define how those colors are
52+
distributed across different elements from a building block such as buttons, backgrounds, and text.
53+
If you want to modify them, click on :guilabel:`Color Presets` and click on a preset to customize it
54+
further. Each color preset contains colors for your building block’s background, text, headings,
55+
links, primary buttons, and secondary buttons.
5756

58-
- :guilabel:`Link`: To edit the style of the hyperlinks available on your website.
57+
.. image:: themes/color-presets.png
58+
:scale: 80%
59+
:alt: Color presets
5960

60-
- :guilabel:`Input Fields`: Customize fields where you can enter data, e.g., a search bar or a form.
61+
To apply a color preset to a building block on your site, select the building block, go to the
62+
:guilabel:`Customize` tab, click the color dot located next to :guilabel:`Background`, and choose a
63+
:guilabel:`Theme`.
6164

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.
65+
.. note::
66+
Changing a color preset automatically updates the colors of both the default preset and the
67+
building blocks where the preset is used.
6868

69-
.. example::
70-
- The :guilabel:`Status Color` of the :guilabel:`Success` messages is set to green.
69+
Status Colors
70+
-------------
7171

72-
.. image:: themes/advanced.png
73-
:alt: Status colors success message set to green.
72+
:guilabel:`Status Colors` are the colors used to indicate the status of certain actions. They're
73+
used through pop-up messages that appear to provide feedback to the user in your website's
74+
front and back end. To customize your website :guilabel:`Status Colors`, in the :guilabel:`Advanced`
75+
section, click on the dots to change their color.
7476

75-
.. image:: themes/success.png
76-
:alt: Success message is green
77+
.. example::
78+
.. image:: themes/advanced.png
79+
:scale: 100%
80+
:alt: Status color selection
7781

78-
- Customizing the gray elements of your site.
82+
.. image:: themes/success.png
83+
:alt: Success pop-up
7984

80-
.. image:: themes/grays.png
81-
:alt: Customize the grays elements of your site
85+
.. _website/themes/page-layouts:
86+
87+
Page layouts
88+
============
89+
90+
Odoo offers multiple styles to display your pages content, such as blocks, pictures and more. In the
91+
:guilabel:`Website` section, click on :guilabel:`Page Layout` and select one in the dropdown menu.
92+
Under :guilabel:`Page Layout`, customize your :guilabel:`Background` by choosing an
93+
:guilabel:`Image`, creating a :guilabel:`Pattern` by selecting an image, or leaving it blank.
94+
95+
.. _website/themes/fonts:
96+
97+
Fonts
98+
=====
99+
100+
Odoo allows you to customize the font family and size for specific elements on your website,
101+
including paragraphs, headings, buttons, and input fields.
102+
103+
- :guilabel:`Font Family`: In the :guilabel:`Paragraph`, :guilabel:`Headings`, and
104+
:guilabel:`Button` sections, select a font from the dropdown menu.
105+
106+
- :guilabel:`Font Size`: In the :guilabel:`Paragraph`, :guilabel:`Headings`, :guilabel:`Button` and
107+
:guilabel:`Input Fields` sections, use the :guilabel:`Font Size` field to set a default size.
108+
Click the :icon:`fa-caret-right` (arrow) icon to expand the section and define custom sizes
109+
(e.g., based on the heading level, button size, etc.).
110+
111+
Additionally, each element-specific section offers extra styling options, such as
112+
:guilabel:`Line Height` and :guilabel:`Margins`, for further customization.
113+
114+
Custom fonts
115+
------------
116+
117+
In the :guilabel:`Paragraph` section, click on :guilabel:`Font Family`, then on
118+
:guilabel:`Add a Custom Font` at the bottom of the dropdown menu. In the pop-up window:
119+
120+
- To add a Google font, click on :guilabel:`Select a Google Font` and click on a font that you like
121+
from the list. Toggle off the :guilabel:`Serve font from Google servers` if your website is
122+
operated from a location where regulations require compliance with laws such as, but not limited
123+
to, the European Union's GDPR. This will ensure that the Google Font is stored on your website's
124+
server instead of Google's.
125+
- To upload a custom font from your computer, click on :guilabel:`Choose File`.
126+
127+
To complete the new font addition and make it available in the :guilabel:`Font family` menu, click
128+
on :guilabel:`Save and Reload`.
129+
130+
Button style
131+
============
132+
133+
To customize the style of your website's primary and secondary buttons, navigate to the
134+
:guilabel:`Button` section in the website editor and edit the relevant options:
135+
136+
- Click the arrow next to the :guilabel:`Primary Style` or :guilabel:`Secondary Style` fields and
137+
select one of the available styles for each type of button: :guilabel:`Fill`, :guilabel:`Outline`,
138+
or :guilabel:`Flat`. When selecting :guilabel:`Outline`, the :guilabel:`Border Width` option
139+
appears below, allowing you to adjust the width of the button's outline.
140+
- Modify the :ref:`fonts <website/themes/fonts>`
141+
- Adjust the :guilabel:`Padding` to change the size of the spacing (in pixels) around the buttons'
142+
labels.
143+
- Customize the buttons' border radius using the :guilabel:`Round Corners` option.
144+
- Add an animation when a button is clicked in the :guilabel:`On Click Effect` dropdown menu.
145+
146+
.. image:: themes/buttons.png
147+
:alt: Primary and secondary buttons
148+
149+
.. tip::
150+
You can define custom :guilabel:`Small` and :guilabel:`Large` sizes for button's
151+
:guilabel:`Padding`, :guilabel:`Font Size`, and :guilabel:`Round Corners` : click on the
152+
:icon:`fa-caret-right` (arrow) icon and use the related fields.
153+
154+
.. image:: themes/button-settings.png
155+
:scale: 80%
156+
:alt: Button padding, font size and round corners settings
157+
158+
Link style
159+
==========
160+
161+
In the :guilabel:`Link` section, click on :guilabel:`Link Style` to choose the appearance of links
162+
on your website. Select :guilabel:`No Underline`, :guilabel:`Underline On Hover`, or
163+
: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)