@hubpav/hwio-ui 0.10.10 → 0.11.0
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubpav/hwio-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "HARDWARIO web design system for Astro: DaisyUI 5 themes generated from the brand tokens, the Tailwind entry stylesheet and the HWio* components.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"test": "node --test \"test/**/*.test.mjs\""
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@hubpav/hwio-brand": "0.
|
|
36
|
-
"@hubpav/hwio-web-runtime": "0.
|
|
37
|
-
"@hubpav/hwio-web-worker": "0.
|
|
35
|
+
"@hubpav/hwio-brand": "0.11.0",
|
|
36
|
+
"@hubpav/hwio-web-runtime": "0.11.0",
|
|
37
|
+
"@hubpav/hwio-web-worker": "0.11.0",
|
|
38
38
|
"daisyui": "5.8.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
package/src/styles/styles.css
CHANGED
|
@@ -510,6 +510,14 @@
|
|
|
510
510
|
font-weight: var(--hwio-type-button-weight, 600);
|
|
511
511
|
padding-inline: 1.5rem;
|
|
512
512
|
}
|
|
513
|
+
/* A theme may set its buttons in caps with tracking (er3o). Layered, so a site's case or tracking
|
|
514
|
+
utility on a button still wins; DaisyUI sets neither property. */
|
|
515
|
+
@layer components {
|
|
516
|
+
.btn {
|
|
517
|
+
letter-spacing: var(--hwio-type-button-tracking, normal);
|
|
518
|
+
text-transform: var(--hwio-type-button-case, none);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
513
521
|
.btn-sm { --fontsize: 0.875rem; padding-inline: 1rem; }
|
|
514
522
|
.btn-lg { height: var(--size); --fontsize: 0.9375rem; padding-inline: 1.75rem; }
|
|
515
523
|
.btn-square, .btn-circle { padding-inline: 0; }
|
|
@@ -5,24 +5,24 @@
|
|
|
5
5
|
prefersdark: false;
|
|
6
6
|
color-scheme: light;
|
|
7
7
|
--color-base-100: #ffffff;
|
|
8
|
-
--color-base-200: #
|
|
9
|
-
--color-base-300: #
|
|
10
|
-
--color-base-content: #
|
|
11
|
-
--color-primary: #
|
|
8
|
+
--color-base-200: #F4F4F4;
|
|
9
|
+
--color-base-300: #DDDDDD;
|
|
10
|
+
--color-base-content: #00171F;
|
|
11
|
+
--color-primary: #296EA7;
|
|
12
12
|
--color-primary-content: #ffffff;
|
|
13
|
-
--color-secondary: #
|
|
14
|
-
--color-secondary-content: #
|
|
13
|
+
--color-secondary: #14A0C0;
|
|
14
|
+
--color-secondary-content: #00171F;
|
|
15
15
|
--color-accent: #0C6678;
|
|
16
16
|
--color-accent-content: #ffffff;
|
|
17
|
-
--color-neutral: #
|
|
17
|
+
--color-neutral: #00171F;
|
|
18
18
|
--color-neutral-content: #ffffff;
|
|
19
|
-
--color-info: #
|
|
19
|
+
--color-info: #0C6678;
|
|
20
20
|
--color-info-content: #ffffff;
|
|
21
|
-
--color-success: #
|
|
21
|
+
--color-success: #15803D;
|
|
22
22
|
--color-success-content: #ffffff;
|
|
23
|
-
--color-warning: #
|
|
23
|
+
--color-warning: #B45309;
|
|
24
24
|
--color-warning-content: #ffffff;
|
|
25
|
-
--color-error: #
|
|
25
|
+
--color-error: #DC2626;
|
|
26
26
|
--color-error-content: #ffffff;
|
|
27
27
|
--radius-selector: 2rem;
|
|
28
28
|
--radius-field: 2rem;
|
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
--hwio-font-sans: 'Poppins', 'Poppins Fallback', ui-sans-serif, system-ui, sans-serif;
|
|
39
39
|
--hwio-container: 1275px;
|
|
40
40
|
--hwio-container-pad: 27px;
|
|
41
|
-
--er3o-gradient
|
|
42
|
-
--er3o-gradient-to: #14A0C0;
|
|
41
|
+
--er3o-gradient: linear-gradient(90deg, #7DE314, #01CC9B, #14A0C0);
|
|
43
42
|
--hwio-chart-1: initial;
|
|
44
43
|
--hwio-chart-2: initial;
|
|
45
44
|
--hwio-chart-3: initial;
|
|
@@ -52,109 +51,116 @@
|
|
|
52
51
|
--hwio-footer-hover: #ffffff;
|
|
53
52
|
--hwio-gradient: initial;
|
|
54
53
|
--hwio-gradient-figure: initial;
|
|
55
|
-
--hwio-icon:
|
|
56
|
-
--hwio-icon-bg:
|
|
54
|
+
--hwio-icon: #00171F;
|
|
55
|
+
--hwio-icon-bg: var(--color-base-200);
|
|
57
56
|
--hwio-kicker-on-alt: initial;
|
|
58
|
-
--hwio-kicker-on-neutral: #
|
|
57
|
+
--hwio-kicker-on-neutral: #ffffff;
|
|
59
58
|
--hwio-link: #0C6678;
|
|
60
|
-
--hwio-link-hover:
|
|
59
|
+
--hwio-link-hover: #00171F;
|
|
61
60
|
--hwio-mist: initial;
|
|
62
61
|
--hwio-motion-base: initial;
|
|
63
62
|
--hwio-motion-easing: initial;
|
|
64
63
|
--hwio-motion-fast: initial;
|
|
65
64
|
--hwio-motion-reveal: initial;
|
|
66
65
|
--hwio-motion-slow: initial;
|
|
67
|
-
--hwio-nav-active: #
|
|
68
|
-
--hwio-nav-hover:
|
|
69
|
-
--hwio-note-opacity:
|
|
70
|
-
--hwio-text-secondary:
|
|
71
|
-
--hwio-text-secondary-on-neutral:
|
|
66
|
+
--hwio-nav-active: #296EA7;
|
|
67
|
+
--hwio-nav-hover: #296EA7;
|
|
68
|
+
--hwio-note-opacity: 1;
|
|
69
|
+
--hwio-text-secondary: #5B5B5B;
|
|
70
|
+
--hwio-text-secondary-on-neutral: #CCD1D2;
|
|
72
71
|
/* Type preset "er3o" */
|
|
73
72
|
--hwio-type-display-size: 2.5rem;
|
|
74
73
|
--hwio-type-display-weight: 700;
|
|
75
|
-
--hwio-type-display-leading: 1.
|
|
76
|
-
--hwio-type-display-tracking: -0.
|
|
77
|
-
--hwio-type-heading-size:
|
|
74
|
+
--hwio-type-display-leading: 1.2;
|
|
75
|
+
--hwio-type-display-tracking: -0.01em;
|
|
76
|
+
--hwio-type-heading-size: 1.875rem;
|
|
78
77
|
--hwio-type-heading-weight: 700;
|
|
79
|
-
--hwio-type-heading-leading: 1.
|
|
80
|
-
--hwio-type-heading-tracking: -0.
|
|
81
|
-
--hwio-type-subheading-size: 1.
|
|
78
|
+
--hwio-type-heading-leading: 1.3;
|
|
79
|
+
--hwio-type-heading-tracking: -0.01em;
|
|
80
|
+
--hwio-type-subheading-size: 1.25rem;
|
|
82
81
|
--hwio-type-subheading-weight: 700;
|
|
83
|
-
--hwio-type-subheading-leading: 1.
|
|
84
|
-
--hwio-type-subheading-tracking:
|
|
82
|
+
--hwio-type-subheading-leading: 1.3;
|
|
83
|
+
--hwio-type-subheading-tracking: 0;
|
|
85
84
|
--hwio-type-title-size: 1.125rem;
|
|
86
85
|
--hwio-type-title-weight: 700;
|
|
87
86
|
--hwio-type-title-leading: 1.3;
|
|
88
|
-
--hwio-type-title-tracking:
|
|
89
|
-
--hwio-type-lead-size: 1.
|
|
87
|
+
--hwio-type-title-tracking: 0;
|
|
88
|
+
--hwio-type-lead-size: 1.125rem;
|
|
90
89
|
--hwio-type-lead-weight: 400;
|
|
91
|
-
--hwio-type-lead-leading: 1.
|
|
90
|
+
--hwio-type-lead-leading: 1.625;
|
|
92
91
|
--hwio-type-lead-tracking: 0;
|
|
93
92
|
--hwio-type-body-size: 1.0625rem;
|
|
94
93
|
--hwio-type-body-weight: 400;
|
|
95
|
-
--hwio-type-body-leading: 1.
|
|
94
|
+
--hwio-type-body-leading: 1.625;
|
|
96
95
|
--hwio-type-body-tracking: 0;
|
|
97
96
|
--hwio-type-caption-size: 0.875rem;
|
|
98
97
|
--hwio-type-caption-weight: 400;
|
|
99
|
-
--hwio-type-caption-leading: 1.
|
|
98
|
+
--hwio-type-caption-leading: 1.55;
|
|
100
99
|
--hwio-type-caption-tracking: 0;
|
|
101
100
|
--hwio-type-kicker-size: 0.875rem;
|
|
102
101
|
--hwio-type-kicker-weight: 600;
|
|
103
102
|
--hwio-type-kicker-leading: 1.4;
|
|
104
|
-
--hwio-type-kicker-tracking: 0;
|
|
105
|
-
--hwio-type-kicker-case:
|
|
106
|
-
--hwio-type-chip-size: 0.
|
|
107
|
-
--hwio-type-chip-weight:
|
|
108
|
-
--hwio-type-chip-tracking: 0;
|
|
109
|
-
--hwio-type-chip-case:
|
|
110
|
-
--hwio-type-figure-size: 2.
|
|
103
|
+
--hwio-type-kicker-tracking: 0.06em;
|
|
104
|
+
--hwio-type-kicker-case: uppercase;
|
|
105
|
+
--hwio-type-chip-size: 0.8125rem;
|
|
106
|
+
--hwio-type-chip-weight: 600;
|
|
107
|
+
--hwio-type-chip-tracking: 0.06em;
|
|
108
|
+
--hwio-type-chip-case: uppercase;
|
|
109
|
+
--hwio-type-figure-size: 2.5rem;
|
|
111
110
|
--hwio-type-figure-weight: 700;
|
|
112
|
-
--hwio-type-figure-leading: 1;
|
|
113
|
-
--hwio-type-figure-tracking: -0.
|
|
111
|
+
--hwio-type-figure-leading: 1.2;
|
|
112
|
+
--hwio-type-figure-tracking: -0.01em;
|
|
114
113
|
--hwio-type-button-size: 0.9375rem;
|
|
115
114
|
--hwio-type-button-weight: 600;
|
|
116
115
|
--hwio-type-button-leading: 1;
|
|
117
|
-
--hwio-type-button-tracking: 0;
|
|
118
|
-
--hwio-
|
|
116
|
+
--hwio-type-button-tracking: 0.06em;
|
|
117
|
+
--hwio-type-button-case: uppercase;
|
|
118
|
+
--hwio-weight-nav: 600;
|
|
119
119
|
--hwio-weight-label: 600;
|
|
120
120
|
--hwio-weight-strong: 600;
|
|
121
|
-
--hwio-weight-footer-title:
|
|
121
|
+
--hwio-weight-footer-title: 600;
|
|
122
122
|
--hwio-choice-title-size: 1.75rem;
|
|
123
|
-
--hwio-choice-title-leading: 1.
|
|
124
|
-
--hwio-choice-title-tracking: -0.
|
|
123
|
+
--hwio-choice-title-leading: 1.3;
|
|
124
|
+
--hwio-choice-title-tracking: -0.01em;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
@media (width >= 48rem) {
|
|
128
128
|
[data-theme="er3o"] {
|
|
129
|
-
--hwio-type-display-size:
|
|
129
|
+
--hwio-type-display-size: 3.5rem;
|
|
130
130
|
--hwio-type-heading-size: 2.5rem;
|
|
131
|
+
--hwio-type-subheading-size: 1.5rem;
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
@media (width >= 64rem) {
|
|
134
135
|
[data-theme="er3o"] {
|
|
135
|
-
--hwio-type-display-size:
|
|
136
|
-
--hwio-type-
|
|
136
|
+
--hwio-type-display-size: 4.375rem;
|
|
137
|
+
--hwio-type-heading-size: 3rem;
|
|
138
|
+
--hwio-type-figure-size: 3rem;
|
|
137
139
|
}
|
|
138
140
|
}
|
|
139
141
|
|
|
140
|
-
/* ENEROOO
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
filter: brightness(0.92);
|
|
142
|
+
/* ENEROOO brand guidelines HBG.261029.01 (owner, 2026-11-24). The signature gradient is the three
|
|
143
|
+
colours of the logo's rings, left to right; it is a picture (an edge strip, a ground for the White
|
|
144
|
+
logo alone, the energy grid) and never stands behind type (chapter 03). Buttons are Modrá pills
|
|
145
|
+
with White SemiBold caps (5.4:1); the outline button is the secondary action in Petrolej. */
|
|
146
|
+
@layer components {
|
|
147
|
+
[data-theme="er3o"] .er3o-gradient {
|
|
148
|
+
background-image: var(--er3o-gradient);
|
|
149
|
+
}
|
|
149
150
|
}
|
|
150
|
-
/* The outline button reads in the AA teal (the theme's accent, 6.6:1); the filled primary teal is 2.9:1 as text. */
|
|
151
151
|
[data-theme="er3o"] .btn-outline.btn-primary:not(:hover):not(:active) {
|
|
152
152
|
color: var(--color-accent);
|
|
153
153
|
border-color: var(--color-accent);
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
155
|
+
/* Defaults in the base layer, so a site's utilities still win. A plain inline link in copy (an anchor
|
|
156
|
+
without a class) is Petrolej and underlined; emphasis is SemiBold, never a colour (chapter 04). */
|
|
157
|
+
@layer base {
|
|
158
|
+
[data-theme="er3o"] :where(p, li, dd) a:not([class]) {
|
|
159
|
+
color: var(--hwio-link);
|
|
160
|
+
text-decoration: underline;
|
|
161
|
+
text-underline-offset: 0.18em;
|
|
162
|
+
}
|
|
163
|
+
[data-theme="er3o"] :where(strong, b) {
|
|
164
|
+
font-weight: var(--hwio-weight-strong);
|
|
165
|
+
}
|
|
160
166
|
}
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
--hwio-grid-columns: 12;
|
|
42
42
|
--hwio-grid-width: 1280px;
|
|
43
43
|
--hwio-grid-gutter: 24px;
|
|
44
|
-
--er3o-gradient
|
|
45
|
-
--er3o-gradient-to: initial;
|
|
44
|
+
--er3o-gradient: initial;
|
|
46
45
|
--hwio-chart-1: #009cfa;
|
|
47
46
|
--hwio-chart-2: #016ad4;
|
|
48
47
|
--hwio-chart-3: #d1d5db;
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
--hwio-grid-columns: 12;
|
|
42
42
|
--hwio-grid-width: 1280px;
|
|
43
43
|
--hwio-grid-gutter: 24px;
|
|
44
|
-
--er3o-gradient
|
|
45
|
-
--er3o-gradient-to: initial;
|
|
44
|
+
--er3o-gradient: initial;
|
|
46
45
|
--hwio-chart-1: #009cfa;
|
|
47
46
|
--hwio-chart-2: #016ad4;
|
|
48
47
|
--hwio-chart-3: #d1d5db;
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
--hwio-grid-columns: 12;
|
|
42
42
|
--hwio-grid-width: 1280px;
|
|
43
43
|
--hwio-grid-gutter: 24px;
|
|
44
|
-
--er3o-gradient
|
|
45
|
-
--er3o-gradient-to: initial;
|
|
44
|
+
--er3o-gradient: initial;
|
|
46
45
|
--hwio-chart-1: #016ad4;
|
|
47
46
|
--hwio-chart-2: #009cfa;
|
|
48
47
|
--hwio-chart-3: #6b6a6a;
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
--hwio-grid-columns: 12;
|
|
42
42
|
--hwio-grid-width: 1280px;
|
|
43
43
|
--hwio-grid-gutter: 24px;
|
|
44
|
-
--er3o-gradient
|
|
45
|
-
--er3o-gradient-to: initial;
|
|
44
|
+
--er3o-gradient: initial;
|
|
46
45
|
--hwio-chart-1: #016ad4;
|
|
47
46
|
--hwio-chart-2: #009cfa;
|
|
48
47
|
--hwio-chart-3: #6b6a6a;
|