@yenio-pld/blocks 1.2.0-rc.25 → 1.2.0-rc.26

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 (3) hide show
  1. package/README.md +3 -3
  2. package/package.json +2 -1
  3. package/src/theme.css +99 -88
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @yenio-pld/blocks
2
2
 
3
- Shared UI for Yenio applications: shadcn primitives, the provisional theme, product chrome, and PLD components.
3
+ Shared UI for Alhajero applications: shadcn primitives, the Onyx & Gold theme, product chrome, and PLD components.
4
4
 
5
5
  The main entry is a Client Component boundary (`"use client"`). Import avatar helpers from `@yenio-pld/blocks/avatar` and cookie helpers from `@yenio-pld/blocks/consent` in React Server Components. Import `THEME_INIT_SCRIPT` from `@yenio-pld/blocks/theme-init` in root layouts. That entry has no client boundary.
6
6
 
@@ -27,7 +27,7 @@ Scan the built package so utilities are not purged:
27
27
  @source "../../node_modules/@yenio-pld/blocks/dist/**/*.{js,cjs,mjs}";
28
28
  ```
29
29
 
30
- Import the shared light and dark palette. Do not paste `:root` / `.dark` color tokens into the app. `src/theme.css` is the only color-token source. The palette is provisional (precise, calm, trustworthy) until brand sign-off.
30
+ Import the shared light and dark palette. Do not paste `:root` / `.dark` color tokens into the app. `src/theme.css` is the only color-token source. The palette is Alhajero Onyx & Gold (cream + onyx primary in light; gold primary in dark).
31
31
 
32
32
  ```css
33
33
  @import "tailwindcss";
@@ -90,7 +90,7 @@ pnpm storybook
90
90
  pnpm build-storybook
91
91
  ```
92
92
 
93
- Storybook serves on port 6006. The static build writes `storybook-static/`. Preview CSS imports `src/theme.css` and loads Inter.
93
+ Storybook serves on port 6006. The static build writes `storybook-static/`. Preview CSS imports `src/theme.css` and loads Inter plus Outfit.
94
94
 
95
95
  ## Quality gate
96
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yenio-pld/blocks",
3
- "version": "1.2.0-rc.25",
3
+ "version": "1.2.0-rc.26",
4
4
  "description": "Shared UI components for Yenio applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -264,6 +264,7 @@
264
264
  "@commitlint/config-conventional": "^19.8.1",
265
265
  "@eslint/js": "^9.26.0",
266
266
  "@fontsource/inter": "^5.3.0",
267
+ "@fontsource/outfit": "^5.3.0",
267
268
  "@semantic-release/changelog": "^6.0.3",
268
269
  "@semantic-release/git": "^10.0.1",
269
270
  "@semantic-release/github": "^11.0.1",
package/src/theme.css CHANGED
@@ -1,4 +1,5 @@
1
- /* Provisional Yenio palette. Primary matches the isotype blue #2567d4.
1
+ /* Alhajero Onyx & Gold palette.
2
+ Light: cream surfaces + onyx primary. Dark: gold primary.
2
3
  This file is the only color-token source.
3
4
  Import it after `tailwindcss`. Do not copy these values into an app.
4
5
  CSS only: no JavaScript and no client boundary. */
@@ -6,41 +7,42 @@
6
7
  @custom-variant dark (&:is(.dark *));
7
8
 
8
9
  :root {
9
- --background: oklch(0.985 0.004 230);
10
- --foreground: oklch(0.28 0.02 250);
11
- --card: oklch(0.995 0.002 230);
12
- --card-foreground: oklch(0.28 0.02 250);
13
- --popover: oklch(0.995 0.002 230);
14
- --popover-foreground: oklch(0.28 0.02 250);
15
- --primary: oklch(0.536 0.181 260.13);
16
- --primary-foreground: oklch(0.985 0.005 260);
17
- --secondary: oklch(0.95 0.008 230);
18
- --secondary-foreground: oklch(0.28 0.02 250);
19
- --muted: oklch(0.95 0.006 230);
20
- --muted-foreground: oklch(0.48 0.02 250);
10
+ --background: oklch(0.989 0.013 86.83);
11
+ --foreground: oklch(0.185 0.008 67.32);
12
+ --card: oklch(1 0 0);
13
+ --card-foreground: oklch(0.185 0.008 67.32);
14
+ --popover: oklch(1 0 0);
15
+ --popover-foreground: oklch(0.185 0.008 67.32);
16
+ --primary: oklch(0.185 0.008 67.32);
17
+ --primary-foreground: oklch(1 0 0);
18
+ --secondary: oklch(0.968 0.022 87.15);
19
+ --secondary-foreground: oklch(0.185 0.008 67.32);
20
+ --muted: oklch(0.968 0.022 87.15);
21
+ --muted-foreground: oklch(0.49 0.02 75.94);
21
22
  --skeleton: oklch(0.9 0 0);
22
- --accent: oklch(0.94 0.025 260);
23
- --accent-foreground: oklch(0.28 0.02 250);
23
+ --accent: oklch(0.713 0.123 81.73);
24
+ --accent-foreground: oklch(0.146 0.006 69.2);
24
25
  --destructive: oklch(0.52 0.16 25);
25
26
  --destructive-foreground: oklch(0.98 0.01 95);
26
- --border: oklch(0.9 0.008 230);
27
- --input: oklch(0.86 0.01 230);
28
- --ring: oklch(0.536 0.181 260.13);
29
- --chart-1: oklch(0.536 0.181 260.13);
30
- --chart-2: oklch(0.55 0.07 170);
31
- --chart-3: oklch(0.55 0.06 90);
32
- --chart-4: oklch(0.55 0.08 30);
33
- --chart-5: oklch(0.5 0.07 300);
34
- --sidebar: oklch(0.975 0.006 230);
35
- --sidebar-foreground: oklch(0.28 0.02 250);
36
- --sidebar-primary: oklch(0.536 0.181 260.13);
37
- --sidebar-primary-foreground: oklch(0.985 0.005 260);
38
- --sidebar-accent: oklch(0.94 0.025 260);
39
- --sidebar-accent-foreground: oklch(0.28 0.02 250);
40
- --sidebar-border: oklch(0.9 0.008 230);
41
- --sidebar-ring: oklch(0.536 0.181 260.13);
27
+ --border: oklch(0.933 0.035 87.08);
28
+ --input: oklch(0.846 0.011 81.79);
29
+ --ring: oklch(0.713 0.123 81.73);
30
+ --chart-1: oklch(0.713 0.123 81.73);
31
+ --chart-2: oklch(0.49 0.02 75.94);
32
+ --chart-3: oklch(0.837 0.123 87.99);
33
+ --chart-4: oklch(0.323 0.017 63.38);
34
+ --chart-5: oklch(0.611 0.113 78.37);
35
+ --sidebar: oklch(0.968 0.022 87.15);
36
+ --sidebar-foreground: oklch(0.185 0.008 67.32);
37
+ --sidebar-primary: oklch(0.185 0.008 67.32);
38
+ --sidebar-primary-foreground: oklch(1 0 0);
39
+ --sidebar-accent: oklch(0.933 0.035 87.08);
40
+ --sidebar-accent-foreground: oklch(0.185 0.008 67.32);
41
+ --sidebar-border: oklch(0.933 0.035 87.08);
42
+ --sidebar-ring: oklch(0.713 0.123 81.73);
42
43
  --font-sans: var(--font-inter), Inter, ui-sans-serif, sans-serif, system-ui;
43
- --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
44
+ --font-serif:
45
+ var(--font-outfit), Outfit, ui-sans-serif, sans-serif, system-ui;
44
46
  --font-mono:
45
47
  ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
46
48
  "Courier New", monospace;
@@ -50,64 +52,66 @@
50
52
  --shadow-blur: 3px;
51
53
  --shadow-spread: 0px;
52
54
  --shadow-opacity: 0.1;
53
- --shadow-color: #000000;
54
- --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
55
- --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
55
+ --shadow-color: #15120f;
56
+ --shadow-2xs: 0 1px 2px 0px rgb(21 18 15 / 0.04);
57
+ --shadow-xs: 0 1px 2px 0px rgb(21 18 15 / 0.06);
56
58
  --shadow-sm:
57
- 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
58
- --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
59
+ 0 1px 2px rgb(21 18 15 / 0.06), 0 8px 24px -12px rgb(21 18 15 / 0.2);
60
+ --shadow:
61
+ 0 1px 2px rgb(21 18 15 / 0.06), 0 8px 24px -12px rgb(21 18 15 / 0.2);
59
62
  --shadow-md:
60
- 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);
63
+ 0 1px 2px rgb(21 18 15 / 0.08), 0 10px 28px -12px rgb(21 18 15 / 0.24);
61
64
  --shadow-lg:
62
- 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);
65
+ 0 0 0 1px rgb(201 154 59 / 0.2), 0 8px 24px -8px rgb(201 154 59 / 0.35);
63
66
  --shadow-xl:
64
- 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);
65
- --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
67
+ 0 0 0 1px rgb(201 154 59 / 0.35), 0 8px 24px -8px rgb(201 154 59 / 0.45);
68
+ --shadow-2xl: 0 12px 40px -12px rgb(21 18 15 / 0.35);
66
69
  --tracking-normal: 0em;
67
70
  --spacing: 0.25rem;
68
71
  /* Theme-sensitive overlay scrollbars (Apple-like thin thumb). */
69
72
  --scrollbar-size: 0.625rem;
70
- --scrollbar-thumb: oklch(0.28 0.02 250 / 0.28);
71
- --scrollbar-thumb-hover: oklch(0.28 0.02 250 / 0.45);
73
+ --scrollbar-thumb: oklch(0.185 0.008 67.32 / 0.28);
74
+ --scrollbar-thumb-hover: oklch(0.185 0.008 67.32 / 0.45);
72
75
  color-scheme: light;
73
76
  }
74
77
 
75
78
  .dark {
76
- --background: oklch(0.2 0.015 250);
77
- --foreground: oklch(0.9 0.01 230);
78
- --card: oklch(0.24 0.016 250);
79
- --card-foreground: oklch(0.9 0.01 230);
80
- --popover: oklch(0.24 0.016 250);
81
- --popover-foreground: oklch(0.9 0.01 230);
82
- --primary: oklch(0.536 0.181 260.13);
83
- --primary-foreground: oklch(0.985 0.005 260);
84
- --secondary: oklch(0.3 0.012 250);
85
- --secondary-foreground: oklch(0.9 0.01 230);
86
- --muted: oklch(0.28 0.012 250);
87
- --muted-foreground: oklch(0.68 0.015 230);
79
+ --background: oklch(0.146 0.006 69.2);
80
+ --foreground: oklch(0.989 0.013 86.83);
81
+ --card: oklch(0.185 0.008 67.32);
82
+ --card-foreground: oklch(0.989 0.013 86.83);
83
+ --popover: oklch(0.185 0.008 67.32);
84
+ --popover-foreground: oklch(0.989 0.013 86.83);
85
+ --primary: oklch(0.713 0.123 81.73);
86
+ --primary-foreground: oklch(0.146 0.006 69.2);
87
+ --secondary: oklch(0.249 0.017 66.93);
88
+ --secondary-foreground: oklch(0.989 0.013 86.83);
89
+ --muted: oklch(0.249 0.017 66.93);
90
+ --muted-foreground: oklch(0.724 0.016 80.69);
88
91
  --skeleton: oklch(0.32 0 0);
89
- --accent: oklch(0.32 0.04 260);
90
- --accent-foreground: oklch(0.95 0.01 230);
92
+ --accent: oklch(0.837 0.123 87.99);
93
+ --accent-foreground: oklch(0.146 0.006 69.2);
91
94
  --destructive: oklch(0.65 0.15 25);
92
95
  --destructive-foreground: oklch(0.98 0.005 250);
93
- --border: oklch(0.34 0.012 250);
94
- --input: oklch(0.34 0.012 250);
95
- --ring: oklch(0.536 0.181 260.13);
96
- --chart-1: oklch(0.7 0.14 260.13);
97
- --chart-2: oklch(0.7 0.06 170);
98
- --chart-3: oklch(0.75 0.05 95);
99
- --chart-4: oklch(0.7 0.07 40);
100
- --chart-5: oklch(0.68 0.07 310);
101
- --sidebar: oklch(0.22 0.016 250);
102
- --sidebar-foreground: oklch(0.9 0.01 230);
103
- --sidebar-primary: oklch(0.536 0.181 260.13);
104
- --sidebar-primary-foreground: oklch(0.985 0.005 260);
105
- --sidebar-accent: oklch(0.32 0.04 260);
106
- --sidebar-accent-foreground: oklch(0.95 0.01 230);
107
- --sidebar-border: oklch(0.3 0.012 250);
108
- --sidebar-ring: oklch(0.536 0.181 260.13);
96
+ --border: oklch(0.323 0.017 63.38);
97
+ --input: oklch(0.323 0.017 63.38);
98
+ --ring: oklch(0.713 0.123 81.73);
99
+ --chart-1: oklch(0.713 0.123 81.73);
100
+ --chart-2: oklch(0.724 0.016 80.69);
101
+ --chart-3: oklch(0.837 0.123 87.99);
102
+ --chart-4: oklch(0.49 0.02 75.94);
103
+ --chart-5: oklch(0.611 0.113 78.37);
104
+ --sidebar: oklch(0.185 0.008 67.32);
105
+ --sidebar-foreground: oklch(0.989 0.013 86.83);
106
+ --sidebar-primary: oklch(0.713 0.123 81.73);
107
+ --sidebar-primary-foreground: oklch(0.146 0.006 69.2);
108
+ --sidebar-accent: oklch(0.249 0.017 66.93);
109
+ --sidebar-accent-foreground: oklch(0.989 0.013 86.83);
110
+ --sidebar-border: oklch(0.323 0.017 63.38);
111
+ --sidebar-ring: oklch(0.713 0.123 81.73);
109
112
  --font-sans: var(--font-inter), Inter, ui-sans-serif, sans-serif, system-ui;
110
- --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
113
+ --font-serif:
114
+ var(--font-outfit), Outfit, ui-sans-serif, sans-serif, system-ui;
111
115
  --font-mono:
112
116
  ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
113
117
  "Courier New", monospace;
@@ -116,22 +120,20 @@
116
120
  --shadow-y: 1px;
117
121
  --shadow-blur: 3px;
118
122
  --shadow-spread: 0px;
119
- --shadow-opacity: 0.1;
120
- --shadow-color: #000000;
121
- --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
122
- --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
123
- --shadow-sm:
124
- 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
125
- --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
126
- --shadow-md:
127
- 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 2px 4px -1px hsl(0 0% 0% / 0.1);
123
+ --shadow-opacity: 0.35;
124
+ --shadow-color: #0c0a08;
125
+ --shadow-2xs: 0 1px 2px 0px rgb(0 0 0 / 0.2);
126
+ --shadow-xs: 0 1px 2px 0px rgb(0 0 0 / 0.28);
127
+ --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.28), 0 8px 24px -12px rgb(0 0 0 / 0.45);
128
+ --shadow: 0 1px 2px rgb(0 0 0 / 0.28), 0 8px 24px -12px rgb(0 0 0 / 0.45);
129
+ --shadow-md: 0 1px 2px rgb(0 0 0 / 0.32), 0 10px 28px -12px rgb(0 0 0 / 0.5);
128
130
  --shadow-lg:
129
- 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 4px 6px -1px hsl(0 0% 0% / 0.1);
131
+ 0 0 0 1px rgb(201 154 59 / 0.25), 0 8px 24px -8px rgb(201 154 59 / 0.4);
130
132
  --shadow-xl:
131
- 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 8px 10px -1px hsl(0 0% 0% / 0.1);
132
- --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
133
- --scrollbar-thumb: oklch(0.9 0.01 230 / 0.28);
134
- --scrollbar-thumb-hover: oklch(0.9 0.01 230 / 0.45);
133
+ 0 0 0 1px rgb(201 154 59 / 0.35), 0 8px 24px -8px rgb(201 154 59 / 0.45);
134
+ --shadow-2xl: 0 12px 40px -12px rgb(0 0 0 / 0.55);
135
+ --scrollbar-thumb: oklch(0.989 0.013 86.83 / 0.28);
136
+ --scrollbar-thumb-hover: oklch(0.989 0.013 86.83 / 0.45);
135
137
  color-scheme: dark;
136
138
  }
137
139
 
@@ -268,3 +270,12 @@
268
270
  height: 0;
269
271
  }
270
272
  }
273
+
274
+ /* Velvet surface for heroes, splash screens, and app-icon tiles. */
275
+ .bg-onyx-velvet {
276
+ background: radial-gradient(
277
+ ellipse at 30% 20%,
278
+ oklch(0.323 0.017 63.38) 0%,
279
+ oklch(0.185 0.008 67.32) 62%
280
+ );
281
+ }