@hubpav/hwio-ui 0.11.0 → 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.11.0",
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.11.0",
36
- "@hubpav/hwio-web-runtime": "0.11.0",
37
- "@hubpav/hwio-web-worker": "0.11.0",
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": {
@@ -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
+ }
@@ -152,10 +152,11 @@
152
152
  color: var(--color-accent);
153
153
  border-color: var(--color-accent);
154
154
  }
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). */
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). */
157
158
  @layer base {
158
- [data-theme="er3o"] :where(p, li, dd) a:not([class]) {
159
+ [data-theme="er3o"] :where(main) :where(p, li, dd) a:not([class]) {
159
160
  color: var(--hwio-link);
160
161
  text-decoration: underline;
161
162
  text-underline-offset: 0.18em;