@hubpav/hwio-ui 0.10.10 → 0.12.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.10.10",
3
+ "version": "0.12.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.10.10",
36
- "@hubpav/hwio-web-runtime": "0.10.10",
37
- "@hubpav/hwio-web-worker": "0.10.10",
35
+ "@hubpav/hwio-brand": "0.12.0",
36
+ "@hubpav/hwio-web-runtime": "0.12.0",
37
+ "@hubpav/hwio-web-worker": "0.12.0",
38
38
  "daisyui": "5.8.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -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; }
@@ -0,0 +1,167 @@
1
+ /* Generated from brand.json by @hubpav/hwio-ui (scripts/build-themes.mjs). Theme "er3o-dark". */
2
+ @plugin "daisyui/theme" {
3
+ name: "er3o-dark";
4
+ default: false;
5
+ prefersdark: false;
6
+ color-scheme: dark;
7
+ --color-base-100: #00171F;
8
+ --color-base-200: #0A2530;
9
+ --color-base-300: #1E3A45;
10
+ --color-base-content: #F4F4F4;
11
+ --color-primary: #296EA7;
12
+ --color-primary-content: #ffffff;
13
+ --color-secondary: #01CC9B;
14
+ --color-secondary-content: #00171F;
15
+ --color-accent: #14A0C0;
16
+ --color-accent-content: #00171F;
17
+ --color-neutral: #000D12;
18
+ --color-neutral-content: #ffffff;
19
+ --color-info: #14A0C0;
20
+ --color-info-content: #00171F;
21
+ --color-success: #4ADE80;
22
+ --color-success-content: #00171F;
23
+ --color-warning: #FBBF24;
24
+ --color-warning-content: #00171F;
25
+ --color-error: #F87171;
26
+ --color-error-content: #00171F;
27
+ --radius-selector: 2rem;
28
+ --radius-field: 2rem;
29
+ --radius-box: 1.5rem;
30
+ --size-selector: 0.25rem;
31
+ --size-field: 0.3rem;
32
+ --border: 1px;
33
+ --depth: 0;
34
+ --noise: 0;
35
+ }
36
+
37
+ [data-theme="er3o-dark"] {
38
+ --hwio-font-sans: 'Poppins', 'Poppins Fallback', ui-sans-serif, system-ui, sans-serif;
39
+ --hwio-container: 1275px;
40
+ --hwio-container-pad: 27px;
41
+ --er3o-gradient: linear-gradient(90deg, #7DE314, #01CC9B, #14A0C0);
42
+ --hwio-chart-1: initial;
43
+ --hwio-chart-2: initial;
44
+ --hwio-chart-3: initial;
45
+ --hwio-chart-failure: initial;
46
+ --hwio-chart-forecast: initial;
47
+ --hwio-chart-highlight: initial;
48
+ --hwio-chart-label: initial;
49
+ --hwio-chart-outline: initial;
50
+ --hwio-chart-outline-width: initial;
51
+ --hwio-footer-hover: #ffffff;
52
+ --hwio-gradient: initial;
53
+ --hwio-gradient-figure: initial;
54
+ --hwio-icon: #F4F4F4;
55
+ --hwio-icon-bg: var(--color-base-200);
56
+ --hwio-kicker-on-alt: initial;
57
+ --hwio-kicker-on-neutral: #ffffff;
58
+ --hwio-link: #14A0C0;
59
+ --hwio-link-hover: #ffffff;
60
+ --hwio-mist: initial;
61
+ --hwio-motion-base: initial;
62
+ --hwio-motion-easing: initial;
63
+ --hwio-motion-fast: initial;
64
+ --hwio-motion-reveal: initial;
65
+ --hwio-motion-slow: initial;
66
+ --hwio-nav-active: #14A0C0;
67
+ --hwio-nav-hover: #14A0C0;
68
+ --hwio-note-opacity: 1;
69
+ --hwio-text-secondary: #AEB8BC;
70
+ --hwio-text-secondary-on-neutral: #CCD1D2;
71
+ /* Type preset "er3o" */
72
+ --hwio-type-display-size: 2.5rem;
73
+ --hwio-type-display-weight: 700;
74
+ --hwio-type-display-leading: 1.2;
75
+ --hwio-type-display-tracking: -0.01em;
76
+ --hwio-type-heading-size: 1.875rem;
77
+ --hwio-type-heading-weight: 700;
78
+ --hwio-type-heading-leading: 1.3;
79
+ --hwio-type-heading-tracking: -0.01em;
80
+ --hwio-type-subheading-size: 1.25rem;
81
+ --hwio-type-subheading-weight: 700;
82
+ --hwio-type-subheading-leading: 1.3;
83
+ --hwio-type-subheading-tracking: 0;
84
+ --hwio-type-title-size: 1.125rem;
85
+ --hwio-type-title-weight: 700;
86
+ --hwio-type-title-leading: 1.3;
87
+ --hwio-type-title-tracking: 0;
88
+ --hwio-type-lead-size: 1.125rem;
89
+ --hwio-type-lead-weight: 400;
90
+ --hwio-type-lead-leading: 1.625;
91
+ --hwio-type-lead-tracking: 0;
92
+ --hwio-type-body-size: 1.0625rem;
93
+ --hwio-type-body-weight: 400;
94
+ --hwio-type-body-leading: 1.625;
95
+ --hwio-type-body-tracking: 0;
96
+ --hwio-type-caption-size: 0.875rem;
97
+ --hwio-type-caption-weight: 400;
98
+ --hwio-type-caption-leading: 1.55;
99
+ --hwio-type-caption-tracking: 0;
100
+ --hwio-type-kicker-size: 0.875rem;
101
+ --hwio-type-kicker-weight: 600;
102
+ --hwio-type-kicker-leading: 1.4;
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;
110
+ --hwio-type-figure-weight: 700;
111
+ --hwio-type-figure-leading: 1.2;
112
+ --hwio-type-figure-tracking: -0.01em;
113
+ --hwio-type-button-size: 0.9375rem;
114
+ --hwio-type-button-weight: 600;
115
+ --hwio-type-button-leading: 1;
116
+ --hwio-type-button-tracking: 0.06em;
117
+ --hwio-type-button-case: uppercase;
118
+ --hwio-weight-nav: 600;
119
+ --hwio-weight-label: 600;
120
+ --hwio-weight-strong: 600;
121
+ --hwio-weight-footer-title: 600;
122
+ --hwio-choice-title-size: 1.75rem;
123
+ --hwio-choice-title-leading: 1.3;
124
+ --hwio-choice-title-tracking: -0.01em;
125
+ }
126
+
127
+ @media (width >= 48rem) {
128
+ [data-theme="er3o-dark"] {
129
+ --hwio-type-display-size: 3.5rem;
130
+ --hwio-type-heading-size: 2.5rem;
131
+ --hwio-type-subheading-size: 1.5rem;
132
+ }
133
+ }
134
+ @media (width >= 64rem) {
135
+ [data-theme="er3o-dark"] {
136
+ --hwio-type-display-size: 4.375rem;
137
+ --hwio-type-heading-size: 3rem;
138
+ --hwio-type-figure-size: 3rem;
139
+ }
140
+ }
141
+
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-dark"] .er3o-gradient {
148
+ background-image: var(--er3o-gradient);
149
+ }
150
+ }
151
+ [data-theme="er3o-dark"] .btn-outline.btn-primary:not(:hover):not(:active) {
152
+ color: var(--color-accent);
153
+ border-color: var(--color-accent);
154
+ }
155
+ /* Defaults in the base layer, so a site's utilities still win. A plain inline link in the page's copy
156
+ (an anchor without a class inside main) is Petrolej and underlined; navigation menus keep their own
157
+ look; emphasis is SemiBold, never a colour (chapter 04). */
158
+ @layer base {
159
+ [data-theme="er3o-dark"] :where(main) :where(p, li, dd) a:not([class]) {
160
+ color: var(--hwio-link);
161
+ text-decoration: underline;
162
+ text-underline-offset: 0.18em;
163
+ }
164
+ [data-theme="er3o-dark"] :where(strong, b) {
165
+ font-weight: var(--hwio-weight-strong);
166
+ }
167
+ }
@@ -5,24 +5,24 @@
5
5
  prefersdark: false;
6
6
  color-scheme: light;
7
7
  --color-base-100: #ffffff;
8
- --color-base-200: #f9fafb;
9
- --color-base-300: #f3f4f6;
10
- --color-base-content: #333333;
11
- --color-primary: #14A0C0;
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: #01CC9B;
14
- --color-secondary-content: #061920;
13
+ --color-secondary: #14A0C0;
14
+ --color-secondary-content: #00171F;
15
15
  --color-accent: #0C6678;
16
16
  --color-accent-content: #ffffff;
17
- --color-neutral: #404040;
17
+ --color-neutral: #00171F;
18
18
  --color-neutral-content: #ffffff;
19
- --color-info: #19768B;
19
+ --color-info: #0C6678;
20
20
  --color-info-content: #ffffff;
21
- --color-success: #15803d;
21
+ --color-success: #15803D;
22
22
  --color-success-content: #ffffff;
23
- --color-warning: #b45309;
23
+ --color-warning: #B45309;
24
24
  --color-warning-content: #ffffff;
25
- --color-error: #dc2626;
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-from: #01CC9B;
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,117 @@
52
51
  --hwio-footer-hover: #ffffff;
53
52
  --hwio-gradient: initial;
54
53
  --hwio-gradient-figure: initial;
55
- --hwio-icon: initial;
56
- --hwio-icon-bg: initial;
54
+ --hwio-icon: #00171F;
55
+ --hwio-icon-bg: var(--color-base-200);
57
56
  --hwio-kicker-on-alt: initial;
58
- --hwio-kicker-on-neutral: #01CC9B;
57
+ --hwio-kicker-on-neutral: #ffffff;
59
58
  --hwio-link: #0C6678;
60
- --hwio-link-hover: initial;
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: #296ea7;
68
- --hwio-nav-hover: initial;
69
- --hwio-note-opacity: initial;
70
- --hwio-text-secondary: initial;
71
- --hwio-text-secondary-on-neutral: initial;
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.05;
76
- --hwio-type-display-tracking: -0.03em;
77
- --hwio-type-heading-size: 2rem;
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.1;
80
- --hwio-type-heading-tracking: -0.025em;
81
- --hwio-type-subheading-size: 1.375rem;
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.2;
84
- --hwio-type-subheading-tracking: -0.01em;
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: -0.005em;
89
- --hwio-type-lead-size: 1.1875rem;
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.55;
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.6;
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.4;
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: none;
106
- --hwio-type-chip-size: 0.875rem;
107
- --hwio-type-chip-weight: 500;
108
- --hwio-type-chip-tracking: 0;
109
- --hwio-type-chip-case: none;
110
- --hwio-type-figure-size: 2.25rem;
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.03em;
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-weight-nav: 500;
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: 500;
121
+ --hwio-weight-footer-title: 600;
122
122
  --hwio-choice-title-size: 1.75rem;
123
- --hwio-choice-title-leading: 1.15;
124
- --hwio-choice-title-tracking: -0.02em;
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: 3rem;
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: 3.5rem;
136
- --hwio-type-figure-size: 2.5rem;
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 carries its gradient as a theme rule: DaisyUI slots are single colours. Only the filled
141
- button gets it; outline, ghost and link variants keep their transparent background. */
142
- [data-theme="er3o"] .btn-primary:not(.btn-outline):not(.btn-ghost):not(.btn-link) {
143
- background-image: linear-gradient(90deg, var(--er3o-gradient-from), var(--er3o-gradient-to));
144
- border-color: transparent;
145
- }
146
- /* DaisyUI's hover darkens background-color, which the gradient image covers; dim the gradient instead. */
147
- [data-theme="er3o"] .btn-primary:not(.btn-outline):not(.btn-ghost):not(.btn-link):hover {
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
- [data-theme="er3o"] .er3o-gradient-text {
156
- background-image: linear-gradient(90deg, var(--er3o-gradient-from), var(--er3o-gradient-to));
157
- -webkit-background-clip: text;
158
- background-clip: text;
159
- color: transparent;
155
+ /* Defaults in the base layer, so a site's utilities still win. A plain inline link in the page's copy
156
+ (an anchor without a class inside main) is Petrolej and underlined; navigation menus keep their own
157
+ look; emphasis is SemiBold, never a colour (chapter 04). */
158
+ @layer base {
159
+ [data-theme="er3o"] :where(main) :where(p, li, dd) a:not([class]) {
160
+ color: var(--hwio-link);
161
+ text-decoration: underline;
162
+ text-underline-offset: 0.18em;
163
+ }
164
+ [data-theme="er3o"] :where(strong, b) {
165
+ font-weight: var(--hwio-weight-strong);
166
+ }
160
167
  }
@@ -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-from: initial;
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-from: initial;
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-from: initial;
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-from: initial;
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;