Skip to content

Commit 52c1400

Browse files
authored
refactor!: convert Lumo compact preset to CSS file (#10132)
1 parent 90120af commit 52c1400

File tree

3 files changed

+32
-41
lines changed

3 files changed

+32
-41
lines changed

packages/vaadin-lumo-styles/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"components/*.css",
3131
"mixins/*.d.ts",
3232
"mixins/*.js",
33-
"presets/*.js",
33+
"presets",
3434
"src",
3535
"utilities/*.js"
3636
],
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* @license
3+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
4+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5+
*/
6+
7+
/* Use a stronger selector than `:where()` used by other Lumo CSS */
8+
:is(:root, :host) {
9+
--lumo-size-xl: 3rem;
10+
--lumo-size-l: 2.5rem;
11+
--lumo-size-m: 2rem;
12+
--lumo-size-s: 1.75rem;
13+
--lumo-size-xs: 1.5rem;
14+
--lumo-font-size: 1rem;
15+
--lumo-font-size-xxxl: 1.75rem;
16+
--lumo-font-size-xxl: 1.375rem;
17+
--lumo-font-size-xl: 1.125rem;
18+
--lumo-font-size-l: 1rem;
19+
--lumo-font-size-m: 0.875rem;
20+
--lumo-font-size-s: 0.8125rem;
21+
--lumo-font-size-xs: 0.75rem;
22+
--lumo-font-size-xxs: 0.6875rem;
23+
--lumo-line-height-m: 1.4;
24+
--lumo-line-height-s: 1.2;
25+
--lumo-line-height-xs: 1.1;
26+
--lumo-space-xl: 1.875rem;
27+
--lumo-space-l: 1.25rem;
28+
--lumo-space-m: 0.625rem;
29+
--lumo-space-s: 0.3125rem;
30+
--lumo-space-xs: 0.1875rem;
31+
}

packages/vaadin-lumo-styles/presets/compact.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)