mirror of
https://github.com/nextcloud/server.git
synced 2026-05-22 10:06:37 -04:00
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:
parent
dfa407ca55
commit
068f359dc2
2 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue