From 91311aafd9e6a9e6e434781a70a8e61df48352c2 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Tue, 27 May 2025 08:47:22 +0000 Subject: [PATCH] [FIX] theme_cobalt,theme_paptic: enable blog Inter bolder Scenario: - install theme_cobalt or theme_paptic - go to a website blog post - put a word in bold Result: the bold is not shown bolder than the text Issue: Inter font in theme_cobalt and theme_paptic loads weights 400, 600 and 800. The blog post normal font weight is 300 since 2019 (in odoo/odoo@bb0cdec4594fab8c22265ed8af0c2d431a263b72) and so both normal font-weight and bold inside it are shown with weight 400 which make bold not differentiated. Fix: add 300 weight to Inter font. Note: in 18.0, Inter font already has weight 300 in theme_odoo_experts, theme_enark, theme_vehicle, theme_bookstore, theme_nano, theme_clean and website but it is still missing for cobalt and paptic themes. opw-4818737 closes odoo/design-themes#1093 X-original-commit: 55ddb9fea8cb3d2886888ffc26949d49b86080e4 Signed-off-by: Quentin Smetz (qsm) Signed-off-by: Nicolas Lempereur (nle) --- theme_cobalt/static/src/scss/primary_variables.scss | 2 +- theme_paptic/static/src/scss/primary_variables.scss | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/theme_cobalt/static/src/scss/primary_variables.scss b/theme_cobalt/static/src/scss/primary_variables.scss index 9ece0eab9..4c4086a19 100644 --- a/theme_cobalt/static/src/scss/primary_variables.scss +++ b/theme_cobalt/static/src/scss/primary_variables.scss @@ -9,7 +9,7 @@ $o-theme-h6-font-size-multiplier: 1.1; $o-theme-font-configs: ( 'Inter': ( 'family': ('Inter', serif), - 'url': 'Inter:400,400i,600,600i,800,800i', + 'url': 'Inter:300,300i,400,400i,600,600i,800,800i', ), 'Abril Fatface': ( diff --git a/theme_paptic/static/src/scss/primary_variables.scss b/theme_paptic/static/src/scss/primary_variables.scss index cfea5a6a0..cc68769b1 100644 --- a/theme_paptic/static/src/scss/primary_variables.scss +++ b/theme_paptic/static/src/scss/primary_variables.scss @@ -5,12 +5,12 @@ $o-theme-font-configs: ( 'Inter': ( 'family': ('Inter', sans-serif), - 'url': 'Inter:400,400i,600,600i,800,800i', + 'url': 'Inter:300,300i,400,400i,600,600i,800,800i', ), 'Inter Tight': ( 'family': ('Inter Tight', sans-serif), - 'url': 'Inter+Tight:400,400i,600,600i,700,700i', + 'url': 'Inter+Tight:300,300i,400,400i,600,600i,700,700i', ), 'Nunito': (