Skip to content

Commit

Permalink
feat: add small font size variable
Browse files Browse the repository at this point in the history
This is needed to create a bit more hyerarchy between more important
and less important text. For example for the talk conversation
description in the header or in NcListItem's "subname"

Signed-off-by: Marco Ambrosini <marcoambrosini@proton.me>
  • Loading branch information
marcoambrosini committed Jul 31, 2024
1 parent b17508a commit 9855485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/theming/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
--color-border-maxcontrast: #7d7d7d;
--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;
/* 1.5 x font-size for accessibility */
--default-line-height: 1.5;
--animation-quick: 100ms;
Expand Down
1 change: 1 addition & 0 deletions apps/theming/lib/Themes/DefaultTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public function getCSSVariables(): array {

'--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',
// 1.5 * font-size for accessibility
'--default-line-height' => '1.5',

Expand Down

0 comments on commit 9855485

Please sign in to comment.