@besaitech/ng-design-system 0.0.54 → 0.0.55
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 +6 -3
- package/fesm2022/besaitech-ng-design-system.mjs +1230 -65
- package/fesm2022/besaitech-ng-design-system.mjs.map +1 -1
- package/index.d.ts +354 -29
- package/package.json +1 -1
- package/themes/belvigo-emerald.css +73 -0
package/package.json
CHANGED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Belvigo emerald theme — the brand green of the Belvigo mobile apps, for the web apps that follow them.
|
|
3
|
+
*
|
|
4
|
+
* Same token contract as `belvigo.css` / `saitech.css`: only the eleven brand steps are defined here, so
|
|
5
|
+
* every `sds-*` component re-brands without a component change. It sits beside the black `belvigo.css`
|
|
6
|
+
* (which other Belvigo apps still import) rather than replacing it.
|
|
7
|
+
*
|
|
8
|
+
* Source palette (belvigo-shop-mobile lib/core/theme/tokens.dart): brand #059669, brandPressed/brandText
|
|
9
|
+
* #047857, brandDeep #065F46, brandTint #E7F5EE; dark brandText #34D399, dark brandTint #0E2A1F.
|
|
10
|
+
*
|
|
11
|
+
* This is NOT a straight Tailwind emerald ramp. Each step is pinned to the job the library gives it, and a
|
|
12
|
+
* few jobs put white text on the fill — where #059669 (3.77:1 with white) and Tailwind's emerald-500
|
|
13
|
+
* #10b981 (2.54:1) both fail WCAG AA for normal text. So:
|
|
14
|
+
*
|
|
15
|
+
* 50 soft tint (selected option/row, tertiary button, calendar hover) — the mobile brandTint
|
|
16
|
+
* 500 active nav pill (white label), focus rings, focused-field border, accent bar — #05845c,
|
|
17
|
+
* 4.71:1 with white (AA), a hair darker than #059669 so the label passes
|
|
18
|
+
* 600 primary button, checkbox/toggle "on", active tab underline, check marks — #047857, 5.48:1 with
|
|
19
|
+
* white, the mobile apps' pressed/text green
|
|
20
|
+
* 700 primary hover, brand text on the 50 tint (badge, tertiary, active tab label) — #065f46,
|
|
21
|
+
* 7.68:1 on white, 6.84:1 on the 50 tint
|
|
22
|
+
* 800 primary active, brand top-bar gradient start — 9.72:1 with white
|
|
23
|
+
* 900 brand sidebar rail — #022c22, 15.15:1 with white; the 500 pill on it is 3.22:1 (UI contrast ≥ 3)
|
|
24
|
+
*
|
|
25
|
+
* Import AFTER `@import "tailwindcss"` and after base.css:
|
|
26
|
+
*
|
|
27
|
+
* @import "tailwindcss";
|
|
28
|
+
* @source "../node_modules/@besaitech/ng-design-system";
|
|
29
|
+
* @import "@besaitech/ng-design-system/themes/base.css";
|
|
30
|
+
* @import "@besaitech/ng-design-system/themes/belvigo-emerald.css";
|
|
31
|
+
*/
|
|
32
|
+
@theme {
|
|
33
|
+
--color-brand-50: #e7f5ee; /* soft tint — mobile brandTint */
|
|
34
|
+
--color-brand-100: #cdeedd;
|
|
35
|
+
--color-brand-200: #a5dfc3;
|
|
36
|
+
--color-brand-300: #6fcaa2;
|
|
37
|
+
--color-brand-400: #2aa77a;
|
|
38
|
+
--color-brand-500: #05845c; /* active nav pill, focus ring — white 4.71:1 */
|
|
39
|
+
--color-brand-600: #047857; /* primary button — white 5.48:1 */
|
|
40
|
+
--color-brand-700: #065f46; /* hover; brand text on the 50 tint — 6.84:1 */
|
|
41
|
+
--color-brand-800: #064e3b; /* active; top-bar gradient start */
|
|
42
|
+
--color-brand-900: #022c22; /* brand sidebar rail — white 15.15:1 */
|
|
43
|
+
--color-brand-950: #011a14;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/*
|
|
47
|
+
* Dark brand ramp, for the zinc dark canvas of base.css (surface #18181b). The pins keep their meaning:
|
|
48
|
+
*
|
|
49
|
+
* 50/100/200 soft tints — go DARK (50 is the mobile dark brandTint #0e2a1f)
|
|
50
|
+
* 500 active nav pill / focus ring — #05845c: white 4.71:1, 3.76:1 against the dark surface
|
|
51
|
+
* 600 fills with white marks (checkbox, selected day, tab underline) — #047857: white 5.48:1,
|
|
52
|
+
* 3.23:1 against the dark surface
|
|
53
|
+
* 700 brand TEXT in dark (active tab label, selected option, brand badge) — the mobile dark
|
|
54
|
+
* brandText #34d399: 9.22:1 on the surface, 7.98:1 on the 50 tint. Trade-off: a component
|
|
55
|
+
* that uses 700 as a fill under white text (the calendar's selected-day hover, the `brand`
|
|
56
|
+
* top bar) loses contrast in dark; the library's primary button, toggle and tri-state chip
|
|
57
|
+
* already switch to ink fills in dark, and the Belvigo apps use the glass top bar.
|
|
58
|
+
* 800 dark brand text on white (the collapsed-rail badge) — #065f46, 7.68:1
|
|
59
|
+
* 900 brand sidebar rail — #0a1f18, white 17.18:1; the 500 pill on it is 3.65:1
|
|
60
|
+
*/
|
|
61
|
+
html.dark {
|
|
62
|
+
--color-brand-50: #0e2a1f;
|
|
63
|
+
--color-brand-100: #12352a;
|
|
64
|
+
--color-brand-200: #174434;
|
|
65
|
+
--color-brand-300: #1d5e47;
|
|
66
|
+
--color-brand-400: #237a5a;
|
|
67
|
+
--color-brand-500: #05845c;
|
|
68
|
+
--color-brand-600: #047857;
|
|
69
|
+
--color-brand-700: #34d399;
|
|
70
|
+
--color-brand-800: #065f46;
|
|
71
|
+
--color-brand-900: #0a1f18;
|
|
72
|
+
--color-brand-950: #03110d;
|
|
73
|
+
}
|