Skip to content

Commit bf2b8a0

Browse files
Feat: update border radius variables
Signed-off-by: Marco Ambrosini <marcoambrosini@proton.me>
1 parent 6a0edef commit bf2b8a0

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

apps/theming/lib/Themes/DefaultTheme.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,22 @@ public function getCSSVariables(): array {
171171
// Border width for input elements such as text fields and selects
172172
'--border-width-input' => '1px',
173173
'--border-width-input-focused' => '2px',
174-
'--border-radius' => '3px',
174+
175+
// Border radii (new values)
176+
// See url on how to use
177+
'--border-radius-small' => '4px', // For smaller elements
178+
'--border-radius-element' => '8px', // For normal elements like buttons and inputs
179+
'--border-radius-container' => '12px', // For smaller containers like action menus
180+
'--border-radius-container-large' => '16px', // For bigger containers like body or modals
181+
182+
// Border radii (deprecated)
183+
'--border-radius' => '4px',
175184
'--border-radius-large' => '10px',
176185
'--border-radius-rounded' => '28px',
177-
'--border-radius-element' => '8px',
178-
// pill-style button, value is large so big buttons also have correct roundness
179-
'--border-radius-pill' => '100px',
186+
'--border-radius-pill' => '100px',
187+
188+
// Big containers border radius, used for the body container
189+
'--border-radius-large' => '10px',
180190

181191
'--default-clickable-area' => '34px',
182192
'--clickable-area-large' => '48px',

0 commit comments

Comments
 (0)