@gaulatti/bleecker 0.1.39 → 0.1.41
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/README.md +53 -1
- package/dist/components/attention-surface.d.ts +11 -0
- package/dist/components/attention-surface.js +16 -0
- package/dist/components/card.js +1 -1
- package/dist/components/eyebrow.d.ts +8 -0
- package/dist/components/eyebrow.js +10 -0
- package/dist/components/field.d.ts +2 -1
- package/dist/components/field.js +2 -2
- package/dist/components/page-header.js +1 -1
- package/dist/components/section-header.js +2 -1
- package/dist/components/status-badge.js +3 -3
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth-shell.d.ts +14 -0
- package/dist/layout/auth-shell.js +11 -0
- package/dist/layout/detail-layout.d.ts +13 -0
- package/dist/layout/detail-layout.js +16 -0
- package/dist/layout/feed-column.d.ts +12 -0
- package/dist/layout/feed-column.js +12 -0
- package/dist/layout/feed-grid.d.ts +5 -0
- package/dist/layout/feed-grid.js +6 -0
- package/dist/layout/header.d.ts +2 -1
- package/dist/layout/header.js +2 -2
- package/dist/layout/page-frame.d.ts +14 -0
- package/dist/layout/page-frame.js +24 -0
- package/dist/login-screen.d.ts +10 -1
- package/dist/login-screen.js +10 -7
- package/dist/styles.css +1 -1
- package/dist/tokens/source.d.ts +4 -0
- package/dist/tokens/source.js +2 -0
- package/dist/utils/attention-color.d.ts +25 -0
- package/dist/utils/attention-color.js +27 -0
- package/package.json +1 -1
- package/src/styles/global.css +5 -12
- package/src/styles/tokens.generated.css +3 -0
package/dist/tokens/source.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export declare const lightColors: {
|
|
|
67
67
|
readonly darkSand: "#d4c4a9";
|
|
68
68
|
readonly sunset: "#ff9677";
|
|
69
69
|
readonly accentGold: "#c6a760";
|
|
70
|
+
readonly accentText: "#8a5735";
|
|
70
71
|
readonly accentBlue: "#2c5784";
|
|
71
72
|
readonly textPrimary: "#2d2d2d";
|
|
72
73
|
readonly textSecondary: "#595959";
|
|
@@ -107,6 +108,7 @@ export declare const darkColors: {
|
|
|
107
108
|
readonly darkSand: "#243447";
|
|
108
109
|
readonly sunset: "#ff9677";
|
|
109
110
|
readonly accentGold: "#d4af37";
|
|
111
|
+
readonly accentText: "#e0ac69";
|
|
110
112
|
readonly accentBlue: "#5ba3f5";
|
|
111
113
|
readonly textPrimary: "#f0f4f8";
|
|
112
114
|
readonly textSecondary: "#b8c5d6";
|
|
@@ -146,6 +148,7 @@ export declare const themes: {
|
|
|
146
148
|
readonly darkSand: "#d4c4a9";
|
|
147
149
|
readonly sunset: "#ff9677";
|
|
148
150
|
readonly accentGold: "#c6a760";
|
|
151
|
+
readonly accentText: "#8a5735";
|
|
149
152
|
readonly accentBlue: "#2c5784";
|
|
150
153
|
readonly textPrimary: "#2d2d2d";
|
|
151
154
|
readonly textSecondary: "#595959";
|
|
@@ -186,6 +189,7 @@ export declare const themes: {
|
|
|
186
189
|
readonly darkSand: "#243447";
|
|
187
190
|
readonly sunset: "#ff9677";
|
|
188
191
|
readonly accentGold: "#d4af37";
|
|
192
|
+
readonly accentText: "#e0ac69";
|
|
189
193
|
readonly accentBlue: "#5ba3f5";
|
|
190
194
|
readonly textPrimary: "#f0f4f8";
|
|
191
195
|
readonly textSecondary: "#b8c5d6";
|
package/dist/tokens/source.js
CHANGED
|
@@ -77,6 +77,7 @@ export const lightColors = {
|
|
|
77
77
|
darkSand: '#d4c4a9',
|
|
78
78
|
sunset: '#ff9677',
|
|
79
79
|
accentGold: '#c6a760',
|
|
80
|
+
accentText: '#8a5735',
|
|
80
81
|
accentBlue: '#2c5784',
|
|
81
82
|
textPrimary: '#2d2d2d',
|
|
82
83
|
textSecondary: '#595959',
|
|
@@ -111,6 +112,7 @@ export const darkColors = {
|
|
|
111
112
|
darkSand: '#243447',
|
|
112
113
|
sunset: '#ff9677',
|
|
113
114
|
accentGold: '#d4af37',
|
|
115
|
+
accentText: '#e0ac69',
|
|
114
116
|
accentBlue: '#5ba3f5',
|
|
115
117
|
textPrimary: '#f0f4f8',
|
|
116
118
|
textSecondary: '#b8c5d6',
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
export interface AttentionColorOptions {
|
|
3
|
+
/** The category or column hue, expressed as a CSS hue angle. */
|
|
4
|
+
hue: number;
|
|
5
|
+
/** Semantic urgency on a continuous 0–10 scale. */
|
|
6
|
+
intensity: number;
|
|
7
|
+
}
|
|
8
|
+
export interface AttentionColorResult {
|
|
9
|
+
/** The mixed category-to-danger color used for markers and labels. */
|
|
10
|
+
accent: string;
|
|
11
|
+
/** Percentage of the surface traversed by the gradient. */
|
|
12
|
+
coverage: number;
|
|
13
|
+
/** Clamped 0–10 intensity. */
|
|
14
|
+
intensity: number;
|
|
15
|
+
/** Percentage of red in the accent color. */
|
|
16
|
+
redMix: number;
|
|
17
|
+
/** Ready-to-apply surface styles. */
|
|
18
|
+
style: CSSProperties;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Builds a calm-to-urgent surface treatment without erasing category identity.
|
|
22
|
+
* An intensity of 2 mixes 80% category hue with 20% red; an intensity of 8
|
|
23
|
+
* mixes 20% category hue with 80% red. Gradient coverage grows continuously.
|
|
24
|
+
*/
|
|
25
|
+
export declare function createAttentionColor({ hue, intensity: rawIntensity }: AttentionColorOptions): AttentionColorResult;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
function clamp(value, min, max) {
|
|
2
|
+
return Math.min(max, Math.max(min, value));
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Builds a calm-to-urgent surface treatment without erasing category identity.
|
|
6
|
+
* An intensity of 2 mixes 80% category hue with 20% red; an intensity of 8
|
|
7
|
+
* mixes 20% category hue with 80% red. Gradient coverage grows continuously.
|
|
8
|
+
*/
|
|
9
|
+
export function createAttentionColor({ hue, intensity: rawIntensity }) {
|
|
10
|
+
const normalizedHue = ((Math.round(Number.isFinite(hue) ? hue : 210) % 360) + 360) % 360;
|
|
11
|
+
const intensity = clamp(Number.isFinite(rawIntensity) ? rawIntensity : 0, 0, 10);
|
|
12
|
+
const redMix = Math.round(intensity * 10);
|
|
13
|
+
const categoryMix = 100 - redMix;
|
|
14
|
+
const coverage = 24 + intensity * 7.2;
|
|
15
|
+
const colorStrength = Math.round(10 + intensity * 6.2);
|
|
16
|
+
const accent = `color-mix(in oklab, hsl(${normalizedHue} 66% 52%) ${categoryMix}%, hsl(6 78% 56%) ${redMix}%)`;
|
|
17
|
+
return {
|
|
18
|
+
accent,
|
|
19
|
+
coverage,
|
|
20
|
+
intensity,
|
|
21
|
+
redMix,
|
|
22
|
+
style: {
|
|
23
|
+
background: `linear-gradient(45deg, color-mix(in oklab, ${accent} ${colorStrength}%, rgba(17, 30, 41, 0.94)) 0%, color-mix(in oklab, ${accent} ${Math.round(colorStrength * 0.66)}%, rgba(17, 30, 41, 0.94)) ${(coverage * 0.58).toFixed(1)}%, rgba(17, 30, 41, 0.94) ${coverage.toFixed(1)}%)`,
|
|
24
|
+
borderColor: `color-mix(in oklab, ${accent} ${Math.round(12 + intensity * 2.4)}%, rgba(255, 255, 255, 0.06))`
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
package/package.json
CHANGED
package/src/styles/global.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@400;500;600;700&family=Libre+Franklin:wght@400;500&display=swap');
|
|
2
|
-
@import "tailwindcss";
|
|
2
|
+
@import "tailwindcss" source(none);
|
|
3
3
|
@import "./tokens.generated.css";
|
|
4
4
|
|
|
5
5
|
@source "../**/*.{ts,tsx}";
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
@layer base {
|
|
13
13
|
|
|
14
|
+
:root {
|
|
15
|
+
--bleecker-header-height: 4.5rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
html {
|
|
15
19
|
color-scheme: light;
|
|
16
20
|
background-color: #ffffff;
|
|
@@ -256,17 +260,6 @@
|
|
|
256
260
|
/* Animate-in utilities used by menus/dropdowns are provided by Tailwind 4 */
|
|
257
261
|
}
|
|
258
262
|
|
|
259
|
-
@media (prefers-reduced-motion: reduce) {
|
|
260
|
-
*,
|
|
261
|
-
*::before,
|
|
262
|
-
*::after {
|
|
263
|
-
scroll-behavior: auto !important;
|
|
264
|
-
animation-duration: 1ms !important;
|
|
265
|
-
animation-iteration-count: 1 !important;
|
|
266
|
-
transition-duration: 1ms !important;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
263
|
@keyframes elegantFadeIn {
|
|
271
264
|
from {
|
|
272
265
|
opacity: 0;
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
--color-dark-sand: var(--app-dark-sand);
|
|
60
60
|
--color-sunset: var(--app-sunset);
|
|
61
61
|
--color-accent-gold: var(--app-accent-gold);
|
|
62
|
+
--color-accent-text: var(--app-accent-text);
|
|
62
63
|
--color-accent-oxblood: var(--app-accent-oxblood);
|
|
63
64
|
--color-accent-bronze: var(--app-accent-bronze);
|
|
64
65
|
--color-accent-blue: var(--app-accent-blue);
|
|
@@ -100,6 +101,7 @@
|
|
|
100
101
|
--app-dark-sand: #d4c4a9;
|
|
101
102
|
--app-sunset: #ff9677;
|
|
102
103
|
--app-accent-gold: #c6a760;
|
|
104
|
+
--app-accent-text: #8a5735;
|
|
103
105
|
--app-accent-oxblood: #76323f;
|
|
104
106
|
--app-accent-bronze: #cd7f32;
|
|
105
107
|
--app-accent-blue: #2c5784;
|
|
@@ -140,6 +142,7 @@
|
|
|
140
142
|
--app-dark-sand: #243447;
|
|
141
143
|
--app-sunset: #ff9677;
|
|
142
144
|
--app-accent-gold: #d4af37;
|
|
145
|
+
--app-accent-text: #e0ac69;
|
|
143
146
|
--app-accent-oxblood: #76323f;
|
|
144
147
|
--app-accent-bronze: #cd7f32;
|
|
145
148
|
--app-accent-blue: #5ba3f5;
|