diff --git a/packages/app/component-tests/composer.spec.ts b/packages/app/component-tests/composer.spec.ts index ef5fc0f6ba6..d40c1896915 100644 --- a/packages/app/component-tests/composer.spec.ts +++ b/packages/app/component-tests/composer.spec.ts @@ -110,7 +110,7 @@ story( await expect(component.getByRole("option", { selected: true })).toHaveText("Explain the latest changes") await expect( component.getByRole("option", { name: "Explain the latest changes", exact: true }).locator("bdi"), - ).toHaveCSS("font-weight", "400") + ).toHaveCSS("font-weight", "440") await search.press("ArrowDown") await expect(component.getByRole("option", { selected: true })).toHaveText( "Review the composer layout Keep keyboard navigation accessible", diff --git a/packages/ui/src/styles/theme.css b/packages/ui/src/styles/theme.css index 6d0cccdfb99..df6dcc322cf 100644 --- a/packages/ui/src/styles/theme.css +++ b/packages/ui/src/styles/theme.css @@ -9,8 +9,8 @@ --font-size-base: 14px; --font-size-large: 16px; --font-size-x-large: 20px; - --font-weight-regular: 400; - --font-weight-medium: 500; + --font-weight-regular: 440; + --font-weight-medium: 530; --font-weight-bold: 670; --line-height-normal: 130%; --line-height-large: 150%; @@ -630,3 +630,11 @@ --text-stronger: rgba(255, 255, 255, 0.936); } } + +/* CJK system fonts ship fixed weights, so 440 and 530 snap up to Medium and Semibold. */ +:lang(zh), +:lang(ja), +:lang(ko) { + --font-weight-regular: 400; + --font-weight-medium: 500; +}