feat(theming): Introduce font weight variables

Counterpart of
https://github.com/nextcloud-libraries/nextcloud-vue/pull/8469

Signed-off-by: kramo <git@kramo.page>
This commit is contained in:
kramo 2026-04-24 16:03:52 +02:00
parent dfa407ca55
commit 068f359dc2
No known key found for this signature in database
2 changed files with 12 additions and 0 deletions

View file

@ -70,6 +70,12 @@
--font-face: system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
--default-font-size: 15px;
--font-size-small: 13px;
/* Default text font weight */
--font-weight-default: 400;
/* Font weight for interactive elements */
--font-weight-element: 500;
/* Weight for titles and headings */
--font-weight-heading: 600;
/* 1.5 x font-size for accessibility */
--default-line-height: 1.5;
--animation-quick: 100ms;

View file

@ -194,6 +194,12 @@ class DefaultTheme implements ITheme {
'--font-face' => "system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
'--default-font-size' => '15px',
'--font-size-small' => '13px',
// Default text font weight
'--font-weight-default' => '400',
// Font weight for interactive elements
'--font-weight-element' => '500',
// Weight for titles and headings
'--font-weight-heading' => '600',
// 1.5 * font-size for accessibility
'--default-line-height' => '1.5',