@vaadin/vaadin-lumo-styles 25.0.0-alpha2 → 25.0.0-alpha21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/all-imports.d.ts +0 -8
  2. package/all-imports.js +0 -18
  3. package/components/accordion-heading.css +14 -0
  4. package/components/accordion-panel.css +15 -0
  5. package/{user-colors.d.ts → components/accordion.css} +2 -3
  6. package/components/app-layout.css +11 -0
  7. package/components/avatar-group.css +31 -0
  8. package/components/avatar.css +17 -0
  9. package/components/button.css +11 -0
  10. package/components/card.css +50 -0
  11. package/components/charts.css +11 -0
  12. package/components/checkbox-group.css +23 -0
  13. package/components/checkbox.css +14 -0
  14. package/components/combo-box.css +47 -0
  15. package/components/confirm-dialog.css +17 -0
  16. package/components/context-menu.css +32 -0
  17. package/components/crud.css +40 -0
  18. package/components/custom-field.css +20 -0
  19. package/components/dashboard.css +34 -0
  20. package/components/date-picker.css +49 -0
  21. package/components/date-time-picker.css +28 -0
  22. package/components/details-summary.css +11 -0
  23. package/components/details.css +12 -0
  24. package/components/dialog.css +16 -0
  25. package/components/drawer-toggle.css +14 -0
  26. package/components/email-field.css +25 -0
  27. package/components/field-highlighter.css +22 -0
  28. package/components/form-item.css +11 -0
  29. package/components/form-layout.css +13 -0
  30. package/components/grid-filter-column.css +6 -0
  31. package/components/grid-filter.css +12 -0
  32. package/components/grid-pro-edit-column.css +48 -0
  33. package/components/grid-pro.css +14 -0
  34. package/components/grid-selection-column.css +6 -0
  35. package/components/grid-sort-column.css +6 -0
  36. package/components/grid-sorter.css +19 -0
  37. package/components/grid-tree-column.css +6 -0
  38. package/components/grid-tree-toggle.css +11 -0
  39. package/components/grid.css +11 -0
  40. package/components/horizontal-layout.css +11 -0
  41. package/components/icon.css +11 -0
  42. package/components/index.css +71 -0
  43. package/components/input-container.css +11 -0
  44. package/components/integer-field.css +25 -0
  45. package/components/item.css +11 -0
  46. package/components/list-box.css +11 -0
  47. package/components/login-form.css +14 -0
  48. package/components/login.css +15 -0
  49. package/components/map.css +11 -0
  50. package/components/master-detail-layout.css +19 -0
  51. package/components/menu-bar.css +47 -0
  52. package/components/message-input-button.css +11 -0
  53. package/components/message-input.css +13 -0
  54. package/components/message-list.css +6 -0
  55. package/components/message.css +12 -0
  56. package/components/multi-select-combo-box.css +61 -0
  57. package/components/notification.css +15 -0
  58. package/components/number-field.css +25 -0
  59. package/components/overlay.css +11 -0
  60. package/components/password-field.css +32 -0
  61. package/components/popover.css +14 -0
  62. package/components/progress-bar.css +11 -0
  63. package/components/radio-button.css +14 -0
  64. package/components/radio-group.css +23 -0
  65. package/components/rich-text-editor.css +26 -0
  66. package/components/scroller.css +11 -0
  67. package/components/select.css +48 -0
  68. package/components/side-nav-item.css +14 -0
  69. package/components/side-nav.css +12 -0
  70. package/components/split-layout.css +11 -0
  71. package/components/tab.css +11 -0
  72. package/components/tabs.css +12 -0
  73. package/components/tabsheet.css +19 -0
  74. package/components/text-area.css +25 -0
  75. package/components/text-field.css +23 -0
  76. package/components/time-picker.css +43 -0
  77. package/components/tooltip.css +14 -0
  78. package/components/upload.css +31 -0
  79. package/components/vertical-layout.css +11 -0
  80. package/dist/lumo.css +43 -0
  81. package/dist/presets/compact.css +1 -0
  82. package/dist/utility.css +1 -0
  83. package/{color-global.js → lumo.css} +3 -4
  84. package/mixins/field-button.js +3 -4
  85. package/mixins/helper.js +3 -4
  86. package/mixins/input-field-shared.js +5 -9
  87. package/mixins/loader.js +3 -2
  88. package/mixins/menu-overlay.js +3 -4
  89. package/mixins/overlay.js +3 -4
  90. package/mixins/required-field.js +3 -4
  91. package/package.json +24 -14
  92. package/presets/compact.css +31 -0
  93. package/src/components/accordion-heading.css +42 -0
  94. package/src/components/accordion-panel.css +38 -0
  95. package/src/components/app-layout.css +193 -0
  96. package/src/components/avatar-group-menu-item.css +22 -0
  97. package/src/components/avatar-group-overlay.css +11 -0
  98. package/src/components/avatar-group.css +67 -0
  99. package/src/components/avatar.css +86 -0
  100. package/src/components/button.css +334 -0
  101. package/src/components/card.css +38 -0
  102. package/src/components/chart.css +86 -0
  103. package/src/components/checkbox-group.css +18 -0
  104. package/src/components/checkbox.css +340 -0
  105. package/src/components/combo-box-item.css +18 -0
  106. package/src/components/combo-box-overlay.css +15 -0
  107. package/src/components/combo-box.css +14 -0
  108. package/src/components/confirm-dialog-overlay.css +55 -0
  109. package/src/components/context-menu-item.css +39 -0
  110. package/src/components/context-menu-list-box.css +40 -0
  111. package/src/components/context-menu-overlay.css +61 -0
  112. package/src/components/crud-dialog-overlay.css +57 -0
  113. package/src/components/crud-edit.css +30 -0
  114. package/src/components/crud.css +157 -0
  115. package/src/components/custom-field.css +102 -0
  116. package/src/components/dashboard-layout.css +28 -0
  117. package/src/components/dashboard-section.css +85 -0
  118. package/src/components/dashboard-widget.css +140 -0
  119. package/src/components/dashboard.css +14 -0
  120. package/src/components/date-picker-month-calendar.css +192 -0
  121. package/src/components/date-picker-overlay-content.css +127 -0
  122. package/src/components/date-picker-overlay.css +48 -0
  123. package/src/components/date-picker-year.css +35 -0
  124. package/src/components/date-picker.css +41 -0
  125. package/src/components/date-time-picker.css +36 -0
  126. package/src/components/details-summary.css +131 -0
  127. package/src/components/details.css +37 -0
  128. package/src/components/dialog-overlay.css +164 -0
  129. package/src/components/drawer-toggle.css +51 -0
  130. package/src/components/email-field.css +26 -0
  131. package/src/components/field-outline.css +51 -0
  132. package/src/components/form-item.css +36 -0
  133. package/src/components/grid-filter.css +16 -0
  134. package/src/components/grid-pro-edit-select.css +19 -0
  135. package/src/components/grid-pro.css +90 -0
  136. package/src/components/grid-sorter.css +70 -0
  137. package/src/components/grid-tree-toggle.css +104 -0
  138. package/src/components/grid.css +755 -0
  139. package/src/components/horizontal-layout.css +34 -0
  140. package/src/components/icon.css +11 -0
  141. package/src/components/input-container.css +228 -0
  142. package/src/components/item.css +94 -0
  143. package/src/components/list-box.css +31 -0
  144. package/src/components/login-form-wrapper.css +113 -0
  145. package/src/components/login-overlay-wrapper.css +189 -0
  146. package/src/components/map.css +182 -0
  147. package/src/components/menu-bar-button.css +128 -0
  148. package/src/components/menu-bar-item.css +23 -0
  149. package/{badge-global.js → src/components/menu-bar-overlay.css} +5 -4
  150. package/src/components/menu-bar.css +31 -0
  151. package/src/components/message-input.css +30 -0
  152. package/src/components/message.css +57 -0
  153. package/src/components/multi-select-combo-box-chip.css +113 -0
  154. package/src/components/multi-select-combo-box-container.css +20 -0
  155. package/src/components/multi-select-combo-box-item.css +13 -0
  156. package/src/components/multi-select-combo-box-overlay.css +18 -0
  157. package/src/components/multi-select-combo-box.css +102 -0
  158. package/src/components/notification-card.css +228 -0
  159. package/src/components/notification-container.css +60 -0
  160. package/src/components/number-field.css +53 -0
  161. package/src/components/password-field-button.css +19 -0
  162. package/src/components/password-field.css +24 -0
  163. package/src/components/popover-overlay.css +20 -0
  164. package/src/components/progress-bar.css +295 -0
  165. package/src/components/radio-button.css +156 -0
  166. package/src/components/radio-group.css +18 -0
  167. package/src/components/rich-text-editor-popup-overlay.css +27 -0
  168. package/src/components/rich-text-editor.css +383 -0
  169. package/src/components/scroller.css +21 -0
  170. package/src/components/select-overlay.css +54 -0
  171. package/src/components/select-value-button.css +57 -0
  172. package/src/components/select.css +73 -0
  173. package/src/components/side-nav-item.css +183 -0
  174. package/src/components/side-nav.css +102 -0
  175. package/src/components/split-layout.css +53 -0
  176. package/src/components/tab.css +246 -0
  177. package/src/components/tabs.css +285 -0
  178. package/src/components/tabsheet.css +63 -0
  179. package/src/components/text-area.css +116 -0
  180. package/src/components/time-picker-overlay.css +15 -0
  181. package/src/components/time-picker.css +36 -0
  182. package/src/components/tooltip-overlay.css +53 -0
  183. package/src/components/upload-file.css +99 -0
  184. package/src/components/upload-icon.css +20 -0
  185. package/src/components/upload.css +56 -0
  186. package/src/components/user-tag.css +48 -0
  187. package/src/components/user-tags-overlay.css +64 -0
  188. package/src/components/vertical-layout.css +34 -0
  189. package/src/global/badge.css +167 -0
  190. package/src/global/color-scheme.css +99 -0
  191. package/{utility-global.js → src/global/index.css} +3 -4
  192. package/src/global/typography.css +113 -0
  193. package/src/mixins/checkable-field.css +67 -0
  194. package/src/mixins/combo-box-loader.css +14 -0
  195. package/src/mixins/combo-box-overlay.css +30 -0
  196. package/src/mixins/dashboard-item.css +121 -0
  197. package/src/mixins/field-base.css +187 -0
  198. package/src/mixins/field-button.css +46 -0
  199. package/src/mixins/field-error-message.css +36 -0
  200. package/src/mixins/field-helper.css +62 -0
  201. package/src/mixins/field-label.css +62 -0
  202. package/src/mixins/field-required.css +26 -0
  203. package/src/mixins/grid-pro-editor.css +35 -0
  204. package/src/mixins/group-field.css +58 -0
  205. package/src/mixins/loader.css +48 -0
  206. package/src/mixins/menu-overlay-core.css +36 -0
  207. package/src/mixins/menu-overlay-ext.css +63 -0
  208. package/src/mixins/overlay.css +131 -0
  209. package/src/mixins/resizable-overlay.css +100 -0
  210. package/src/props/color.css +98 -0
  211. package/src/props/icons.css +63 -0
  212. package/src/props/index.css +12 -0
  213. package/src/props/reset.css +11 -0
  214. package/src/props/sizing.css +19 -0
  215. package/src/props/spacing.css +27 -0
  216. package/src/props/style.css +21 -0
  217. package/src/props/typography.css +24 -0
  218. package/src/utilities/accessibility.css +17 -0
  219. package/src/utilities/background.css +189 -0
  220. package/src/utilities/border.css +173 -0
  221. package/src/utilities/filter.css +37 -0
  222. package/src/utilities/flexbox-grid.css +781 -0
  223. package/src/utilities/layout.css +629 -0
  224. package/src/utilities/shadows.css +29 -0
  225. package/src/utilities/sizing.css +142 -0
  226. package/src/utilities/spacing.css +682 -0
  227. package/src/utilities/transition.css +46 -0
  228. package/src/utilities/typography.css +424 -0
  229. package/utility.css +16 -0
  230. package/vaadin-iconset.js +4 -0
  231. package/auto-complete.css +0 -2582
  232. package/badge.d.ts +0 -3
  233. package/badge.js +0 -178
  234. package/color.d.ts +0 -5
  235. package/color.js +0 -221
  236. package/font-icons.js +0 -67
  237. package/global.js +0 -5
  238. package/presets/compact.js +0 -40
  239. package/sizing.d.ts +0 -3
  240. package/sizing.js +0 -29
  241. package/spacing.d.ts +0 -3
  242. package/spacing.js +0 -37
  243. package/style.d.ts +0 -5
  244. package/style.js +0 -119
  245. package/typography-global.js +0 -13
  246. package/typography.d.ts +0 -7
  247. package/typography.js +0 -129
  248. package/user-colors.js +0 -33
  249. package/utilities/accessibility.js +0 -21
  250. package/utilities/background.js +0 -156
  251. package/utilities/border.js +0 -147
  252. package/utilities/filter.js +0 -34
  253. package/utilities/flexbox-grid.js +0 -619
  254. package/utilities/layout.js +0 -504
  255. package/utilities/shadows.js +0 -28
  256. package/utilities/sizing.js +0 -121
  257. package/utilities/spacing.js +0 -542
  258. package/utilities/transition.js +0 -49
  259. package/utilities/typography.js +0 -344
  260. package/utility.d.ts +0 -3
  261. package/utility.js +0 -34
@@ -0,0 +1,56 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ @media lumo_components_upload {
7
+ :host {
8
+ display: block;
9
+ position: relative;
10
+ box-sizing: border-box;
11
+ line-height: var(--lumo-line-height-m);
12
+ }
13
+
14
+ :host([hidden]) {
15
+ display: none !important;
16
+ }
17
+
18
+ [hidden] {
19
+ display: none !important;
20
+ }
21
+
22
+ :host(:not([nodrop])) {
23
+ overflow: hidden;
24
+ border: 1px dashed var(--lumo-contrast-20pct);
25
+ border-radius: var(--lumo-border-radius-l);
26
+ padding: var(--lumo-space-m);
27
+ transition:
28
+ background-color 0.6s,
29
+ border-color 0.6s;
30
+ }
31
+
32
+ [part='drop-label'] {
33
+ display: inline-block;
34
+ white-space: normal;
35
+ padding: 0 var(--lumo-space-s);
36
+ color: var(--lumo-secondary-text-color);
37
+ font-family: var(--lumo-font-family);
38
+ }
39
+
40
+ :host([dragover-valid]) {
41
+ border-color: var(--lumo-primary-color-50pct);
42
+ background: var(--lumo-primary-color-10pct);
43
+ transition:
44
+ background-color 0.1s,
45
+ border-color 0.1s;
46
+ }
47
+
48
+ :host([dragover-valid]) [part='drop-label'] {
49
+ color: var(--lumo-primary-text-color);
50
+ }
51
+
52
+ :host([disabled]) [part='drop-label'],
53
+ :host([max-files-reached]) [part='drop-label'] {
54
+ color: var(--lumo-disabled-text-color);
55
+ }
56
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ @media lumo_components_user-tag {
7
+ :host {
8
+ display: block;
9
+ box-sizing: border-box;
10
+ margin: 0 0 var(--vaadin-user-tag-offset);
11
+ opacity: 0;
12
+ height: 1.3rem;
13
+ transition: opacity 0.2s ease-in-out;
14
+ background-color: var(--vaadin-user-tag-color);
15
+ color: #fff;
16
+ cursor: default;
17
+ -webkit-user-select: none;
18
+ user-select: none;
19
+ --vaadin-user-tag-offset: 4px;
20
+ font-family: var(--lumo-font-family);
21
+ font-size: var(--lumo-font-size-xxs);
22
+ border-radius: var(--lumo-border-radius-s);
23
+ box-shadow: var(--lumo-box-shadow-xs);
24
+ --vaadin-user-tag-offset: var(--lumo-space-xs);
25
+ }
26
+
27
+ :host(.show) {
28
+ opacity: 1;
29
+ }
30
+
31
+ :host(:last-of-type) {
32
+ margin-bottom: 0;
33
+ }
34
+
35
+ [part='name'] {
36
+ overflow: hidden;
37
+ white-space: nowrap;
38
+ text-overflow: ellipsis;
39
+ box-sizing: border-box;
40
+ height: 1.3rem;
41
+ font-size: 13px;
42
+ color: var(--lumo-primary-contrast-color);
43
+ padding: 0.3em calc(0.3em + var(--lumo-border-radius-s) / 4);
44
+ line-height: 1;
45
+ font-weight: 500;
46
+ min-width: calc(var(--lumo-line-height-xs) * 1em + 0.45em);
47
+ }
48
+ }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ @media lumo_components_user-tags-overlay {
7
+ [part='overlay'] {
8
+ box-shadow: none;
9
+ background: transparent;
10
+ position: relative;
11
+ left: -4px;
12
+ padding: 4px;
13
+ outline: none;
14
+ overflow: visible;
15
+ will-change: opacity, transform;
16
+ }
17
+
18
+ [part='content'] {
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: flex-start;
22
+ padding: 0;
23
+ }
24
+
25
+ :host([dir='rtl']) [part='overlay'] {
26
+ left: auto;
27
+ right: -4px;
28
+ }
29
+
30
+ :host([opening]),
31
+ :host([closing]) {
32
+ animation: 0.14s user-tags-overlay-dummy-animation;
33
+ }
34
+
35
+ @keyframes user-tags-overlay-dummy-animation {
36
+ 0% {
37
+ opacity: 1;
38
+ }
39
+
40
+ 100% {
41
+ opacity: 1;
42
+ }
43
+ }
44
+
45
+ :host([opening]) [part='overlay'] {
46
+ animation: 0.1s lumo-user-tags-enter ease-out both;
47
+ }
48
+
49
+ @keyframes lumo-user-tags-enter {
50
+ 0% {
51
+ opacity: 0;
52
+ }
53
+ }
54
+
55
+ :host([closing]) [part='overlay'] {
56
+ animation: 0.1s lumo-user-tags-exit both;
57
+ }
58
+
59
+ @keyframes lumo-user-tags-exit {
60
+ 100% {
61
+ opacity: 0;
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,34 @@
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
+ @media lumo_components_vertical-layout {
7
+ :host([theme~='margin']) {
8
+ margin: var(--lumo-space-m);
9
+ }
10
+
11
+ :host([theme~='padding']) {
12
+ padding: var(--lumo-space-m);
13
+ }
14
+
15
+ :host([theme~='spacing-xs']) {
16
+ gap: var(--lumo-space-xs);
17
+ }
18
+
19
+ :host([theme~='spacing-s']) {
20
+ gap: var(--lumo-space-s);
21
+ }
22
+
23
+ :host([theme~='spacing']) {
24
+ gap: var(--lumo-space-m);
25
+ }
26
+
27
+ :host([theme~='spacing-l']) {
28
+ gap: var(--lumo-space-l);
29
+ }
30
+
31
+ :host([theme~='spacing-xl']) {
32
+ gap: var(--lumo-space-xl);
33
+ }
34
+ }
@@ -0,0 +1,167 @@
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
+ [theme~='badge'] {
7
+ display: inline-flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ box-sizing: border-box;
11
+ padding: 0.4em calc(0.5em + var(--lumo-border-radius-s) / 4);
12
+ color: var(--lumo-primary-text-color);
13
+ background-color: var(--lumo-primary-color-10pct);
14
+ border-radius: var(--lumo-border-radius-s);
15
+ font-family: var(--lumo-font-family);
16
+ font-size: var(--lumo-font-size-s);
17
+ line-height: 1;
18
+ font-weight: 500;
19
+ text-transform: initial;
20
+ letter-spacing: initial;
21
+ min-width: calc(var(--lumo-line-height-xs) * 1em + 0.45em);
22
+ flex-shrink: 0;
23
+ }
24
+
25
+ /* Ensure proper vertical alignment */
26
+ [theme~='badge']::before {
27
+ display: inline-block;
28
+ content: '\2003';
29
+ width: 0;
30
+ }
31
+
32
+ [theme~='badge'][theme~='small'] {
33
+ font-size: var(--lumo-font-size-xxs);
34
+ line-height: 1;
35
+ }
36
+
37
+ /* Colors */
38
+
39
+ [theme~='badge'][theme~='success'] {
40
+ color: var(--lumo-success-text-color);
41
+ background-color: var(--lumo-success-color-10pct);
42
+ }
43
+
44
+ [theme~='badge'][theme~='error'] {
45
+ color: var(--lumo-error-text-color);
46
+ background-color: var(--lumo-error-color-10pct);
47
+ }
48
+
49
+ [theme~='badge'][theme~='warning'] {
50
+ color: var(--lumo-warning-text-color);
51
+ background-color: var(--lumo-warning-color-10pct);
52
+ }
53
+
54
+ [theme~='badge'][theme~='contrast'] {
55
+ color: var(--lumo-contrast-80pct);
56
+ background-color: var(--lumo-contrast-5pct);
57
+ }
58
+
59
+ /* Primary */
60
+
61
+ [theme~='badge'][theme~='primary'] {
62
+ color: var(--lumo-primary-contrast-color);
63
+ background-color: var(--lumo-primary-color);
64
+ }
65
+
66
+ [theme~='badge'][theme~='success'][theme~='primary'] {
67
+ color: var(--lumo-success-contrast-color);
68
+ background-color: var(--lumo-success-color);
69
+ }
70
+
71
+ [theme~='badge'][theme~='error'][theme~='primary'] {
72
+ color: var(--lumo-error-contrast-color);
73
+ background-color: var(--lumo-error-color);
74
+ }
75
+
76
+ [theme~='badge'][theme~='warning'][theme~='primary'] {
77
+ color: var(--lumo-warning-contrast-color);
78
+ background-color: var(--lumo-warning-color);
79
+ }
80
+
81
+ [theme~='badge'][theme~='contrast'][theme~='primary'] {
82
+ color: var(--lumo-base-color);
83
+ background-color: var(--lumo-contrast);
84
+ }
85
+
86
+ /* Links */
87
+
88
+ [theme~='badge'][href]:hover {
89
+ text-decoration: none;
90
+ }
91
+
92
+ /* Icon */
93
+
94
+ [theme~='badge'] > vaadin-icon {
95
+ margin: -0.25em 0;
96
+ }
97
+
98
+ [theme~='badge'] > vaadin-icon:first-child {
99
+ margin-left: -0.375em;
100
+ }
101
+
102
+ [theme~='badge'] > vaadin-icon:last-child {
103
+ margin-right: -0.375em;
104
+ }
105
+
106
+ vaadin-icon[theme~='badge'][icon] {
107
+ min-width: 0;
108
+ padding: 0;
109
+ font-size: 1rem;
110
+ width: var(--lumo-icon-size-m);
111
+ height: var(--lumo-icon-size-m);
112
+ }
113
+
114
+ vaadin-icon[theme~='badge'][icon][theme~='small'] {
115
+ width: var(--lumo-icon-size-s);
116
+ height: var(--lumo-icon-size-s);
117
+ }
118
+
119
+ /* Empty */
120
+
121
+ [theme~='badge']:not([icon]):empty {
122
+ min-width: 0;
123
+ width: 1em;
124
+ height: 1em;
125
+ padding: 0;
126
+ border-radius: 50%;
127
+ background-color: var(--lumo-primary-color);
128
+ }
129
+
130
+ [theme~='badge'][theme~='small']:not([icon]):empty {
131
+ width: 0.75em;
132
+ height: 0.75em;
133
+ }
134
+
135
+ [theme~='badge'][theme~='contrast']:not([icon]):empty {
136
+ background-color: var(--lumo-contrast);
137
+ }
138
+
139
+ [theme~='badge'][theme~='success']:not([icon]):empty {
140
+ background-color: var(--lumo-success-color);
141
+ }
142
+
143
+ [theme~='badge'][theme~='error']:not([icon]):empty {
144
+ background-color: var(--lumo-error-color);
145
+ }
146
+
147
+ [theme~='badge'][theme~='warning']:not([icon]):empty {
148
+ background-color: var(--lumo-warning-color);
149
+ }
150
+
151
+ /* Pill */
152
+
153
+ [theme~='badge'][theme~='pill'] {
154
+ --lumo-border-radius-s: 1em;
155
+ }
156
+
157
+ /* RTL specific styles */
158
+
159
+ [dir='rtl'][theme~='badge'] vaadin-icon:first-child {
160
+ margin-right: -0.375em;
161
+ margin-left: 0;
162
+ }
163
+
164
+ [dir='rtl'][theme~='badge'] vaadin-icon:last-child {
165
+ margin-left: -0.375em;
166
+ margin-right: 0;
167
+ }
@@ -0,0 +1,99 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2000 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ :where(:root, :host) {
7
+ color: var(--lumo-body-text-color);
8
+ background-color: var(--lumo-base-color);
9
+ color-scheme: light;
10
+ }
11
+
12
+ [theme~='dark'] {
13
+ /* Base (background) */
14
+ --lumo-base-color: hsl(214, 35%, 21%);
15
+
16
+ /* Tint */
17
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
18
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
19
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
20
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
21
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
22
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
23
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
24
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
25
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
26
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
27
+ --lumo-tint: hsl(214, 100%, 98%);
28
+
29
+ /* Shade */
30
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
31
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
32
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
33
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
34
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
35
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
36
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
37
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
38
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
39
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
40
+ --lumo-shade: hsl(214, 33%, 13%);
41
+
42
+ /* Contrast */
43
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
44
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
45
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
46
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
47
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
48
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
49
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
50
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
51
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
52
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
53
+ --lumo-contrast: var(--lumo-tint);
54
+
55
+ /* Text */
56
+ --lumo-header-text-color: var(--lumo-contrast);
57
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
58
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
59
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
60
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
61
+
62
+ /* Primary */
63
+ --lumo-primary-color: hsl(214, 90%, 48%);
64
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
65
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
66
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
67
+ --lumo-primary-contrast-color: #fff;
68
+
69
+ /* Error */
70
+ --lumo-error-color: hsl(3, 79%, 49%);
71
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
72
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
73
+ --lumo-error-text-color: hsl(3, 100%, 80%);
74
+
75
+ /* Success */
76
+ --lumo-success-color: hsl(145, 72%, 30%);
77
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
78
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
79
+ --lumo-success-text-color: hsl(145, 85%, 46%);
80
+
81
+ /* Warning */
82
+ --lumo-warning-color: hsl(43, 100%, 48%);
83
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
84
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
85
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
86
+
87
+ /* User colors */
88
+ --vaadin-user-color-0: #ff66c7;
89
+ --vaadin-user-color-1: #9d8aff;
90
+ --vaadin-user-color-2: #8aff66;
91
+ --vaadin-user-color-3: #ffbd66;
92
+ --vaadin-user-color-4: #dc6bff;
93
+ --vaadin-user-color-5: #66fffa;
94
+ --vaadin-user-color-6: #e6ff66;
95
+
96
+ color: var(--lumo-body-text-color);
97
+ background-color: var(--lumo-base-color);
98
+ color-scheme: dark;
99
+ }
@@ -3,7 +3,6 @@
3
3
  * Copyright (c) 2017 - 2025 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
- import { addLumoGlobalStyles } from './global.js';
7
- import { utility } from './utility.js';
8
-
9
- addLumoGlobalStyles('utility', utility);
6
+ @import './badge.css';
7
+ @import './color-scheme.css';
8
+ @import './typography.css';
@@ -0,0 +1,113 @@
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
+ :where(body, :host) {
7
+ font-family: var(--lumo-font-family);
8
+ font-size: var(--lumo-font-size-m);
9
+ line-height: var(--lumo-line-height-m);
10
+ -webkit-text-size-adjust: 100%;
11
+ -webkit-font-smoothing: antialiased;
12
+ -moz-osx-font-smoothing: grayscale;
13
+ }
14
+
15
+ small,
16
+ [theme~='font-size-s'] {
17
+ font-size: var(--lumo-font-size-s);
18
+ line-height: var(--lumo-line-height-s);
19
+ }
20
+
21
+ [theme~='font-size-xs'] {
22
+ font-size: var(--lumo-font-size-xs);
23
+ line-height: var(--lumo-line-height-xs);
24
+ }
25
+
26
+ :where(h1, h2, h3, h4, h5, h6) {
27
+ font-weight: 600;
28
+ line-height: var(--lumo-line-height-xs);
29
+ color: var(--lumo-header-text-color);
30
+ margin-block: 0;
31
+ }
32
+
33
+ :where(h1) {
34
+ font-size: var(--lumo-font-size-xxxl);
35
+ }
36
+
37
+ :where(h2) {
38
+ font-size: var(--lumo-font-size-xxl);
39
+ }
40
+
41
+ :where(h3) {
42
+ font-size: var(--lumo-font-size-xl);
43
+ }
44
+
45
+ :where(h4) {
46
+ font-size: var(--lumo-font-size-l);
47
+ }
48
+
49
+ :where(h5) {
50
+ font-size: var(--lumo-font-size-m);
51
+ }
52
+
53
+ :where(h6) {
54
+ font-size: var(--lumo-font-size-xs);
55
+ text-transform: uppercase;
56
+ letter-spacing: 0.03em;
57
+ }
58
+
59
+ p,
60
+ blockquote {
61
+ margin-top: 0.5em;
62
+ margin-bottom: 0.75em;
63
+ }
64
+
65
+ a {
66
+ text-decoration: none;
67
+ }
68
+
69
+ a:where(:any-link) {
70
+ color: var(--lumo-primary-text-color);
71
+ }
72
+
73
+ a:where(:any-link):hover {
74
+ text-decoration: underline;
75
+ }
76
+
77
+ a:not(:any-link) {
78
+ color: var(--lumo-disabled-text-color);
79
+ }
80
+
81
+ hr {
82
+ display: block;
83
+ align-self: stretch;
84
+ height: 1px;
85
+ border: 0;
86
+ padding: 0;
87
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
88
+ background-color: var(--lumo-contrast-10pct);
89
+ }
90
+
91
+ b,
92
+ strong {
93
+ font-weight: 600;
94
+ }
95
+
96
+ code,
97
+ pre {
98
+ border-radius: var(--lumo-border-radius-m);
99
+ }
100
+
101
+ pre code {
102
+ background: transparent;
103
+ }
104
+
105
+ blockquote {
106
+ border-left: 2px solid var(--lumo-contrast-30pct);
107
+ color: var(--lumo-secondary-text-color);
108
+ }
109
+
110
+ blockquote[dir='rtl'] {
111
+ border-left: none;
112
+ border-right: 2px solid var(--lumo-contrast-30pct);
113
+ }
@@ -0,0 +1,67 @@
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
+ @media lumo_mixins_checkable-field {
7
+ :host {
8
+ display: inline-block;
9
+ }
10
+
11
+ :host([hidden]) {
12
+ display: none !important;
13
+ }
14
+
15
+ :host([disabled]) {
16
+ -webkit-tap-highlight-color: transparent;
17
+ }
18
+
19
+ .vaadin-checkbox-container,
20
+ .vaadin-radio-button-container {
21
+ display: grid;
22
+ grid-template-columns: auto 1fr;
23
+ align-items: baseline;
24
+ }
25
+
26
+ [part='checkbox'],
27
+ [part='radio'],
28
+ [part='label'],
29
+ ::slotted(input),
30
+ ::slotted(label) {
31
+ grid-row: 1;
32
+ }
33
+
34
+ [part='checkbox'],
35
+ [part='radio'],
36
+ ::slotted(input) {
37
+ grid-column: 1;
38
+ }
39
+
40
+ /* Control container (checkbox, radio button) */
41
+ [part='checkbox'],
42
+ [part='radio'] {
43
+ width: var(--_input-size, 1em);
44
+ height: var(--_input-size, 1em);
45
+ --_input-border-width: var(--vaadin-input-field-border-width, 0);
46
+ --_input-border-color: var(--vaadin-input-field-border-color, transparent);
47
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
48
+ }
49
+
50
+ [part='checkbox']::before,
51
+ [part='radio']::before {
52
+ display: block;
53
+ content: '\202F';
54
+ line-height: var(--_input-size, 1em);
55
+ contain: paint;
56
+ }
57
+
58
+ /* visually hidden */
59
+ ::slotted(input) {
60
+ cursor: inherit;
61
+ margin: 0;
62
+ align-self: stretch;
63
+ appearance: none;
64
+ width: initial;
65
+ height: initial;
66
+ }
67
+ }
@@ -0,0 +1,14 @@
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
+ @media lumo_mixins_combo-box-loader {
7
+ [part='loader'] {
8
+ position: absolute;
9
+ z-index: 1;
10
+ inset-inline: var(--lumo-space-s);
11
+ top: var(--lumo-space-s);
12
+ margin-inline: auto 0;
13
+ }
14
+ }
@@ -0,0 +1,30 @@
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
+ @media lumo_mixins_combo-box-overlay {
7
+ [part='content'] {
8
+ display: flex;
9
+ flex-direction: column;
10
+ height: 100%;
11
+ padding: 0;
12
+ }
13
+
14
+ /* When items are empty, the spinner needs some room */
15
+ :host(:not([closing])) [part='content'] {
16
+ min-height: calc(2 * var(--lumo-space-s) + var(--lumo-icon-size-s));
17
+ }
18
+
19
+ [part='overlay'] {
20
+ position: relative;
21
+ }
22
+
23
+ :host([top-aligned]) [part='overlay'] {
24
+ margin-top: var(--lumo-space-xs);
25
+ }
26
+
27
+ :host([bottom-aligned]) [part='overlay'] {
28
+ margin-bottom: var(--lumo-space-xs);
29
+ }
30
+ }