pixelize-design-library 2.4.2-beta.1 → 2.4.2-beta.2
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/dist/Components/Header/HeaderActions.d.ts +3 -1
- package/dist/Components/Header/HeaderActions.js +7 -3
- package/dist/Components/PlanPill/PlanPill.js +1 -1
- package/dist/Theme/tokens/brands/emerald/palette.light.js +5 -7
- package/dist/Theme/tokens/brands/lavender/palette.light.js +3 -110
- package/dist/Theme/tokens/brands/meadow/palette.light.js +5 -7
- package/dist/Theme/tokens/brands/neutrals.d.ts +8 -0
- package/dist/Theme/tokens/brands/neutrals.js +119 -0
- package/dist/Theme/tokens/brands/radiant/palette.light.js +5 -7
- package/dist/Theme/tokens/brands/rosewood/palette.light.js +5 -7
- package/dist/Theme/tokens/brands/skyline/palette.light.js +5 -7
- package/dist/Theme/tokens/brands/slate/palette.light.js +5 -7
- package/dist/Theme/tokens/brands/storefront/palette.light.js +5 -7
- package/dist/Theme/tokens/builders/brandInk.d.ts +11 -0
- package/dist/Theme/tokens/builders/brandInk.js +106 -0
- package/dist/Theme/tokens/types.d.ts +5 -0
- package/dist/esm/Components/Header/HeaderActions.js +8 -4
- package/dist/esm/Components/PlanPill/PlanPill.js +2 -2
- package/dist/esm/Theme/tokens/brands/emerald/palette.light.js +5 -4
- package/dist/esm/Theme/tokens/brands/lavender/palette.light.js +3 -110
- package/dist/esm/Theme/tokens/brands/meadow/palette.light.js +5 -4
- package/dist/esm/Theme/tokens/brands/neutrals.js +116 -0
- package/dist/esm/Theme/tokens/brands/radiant/palette.light.js +5 -4
- package/dist/esm/Theme/tokens/brands/rosewood/palette.light.js +5 -4
- package/dist/esm/Theme/tokens/brands/skyline/palette.light.js +5 -4
- package/dist/esm/Theme/tokens/brands/slate/palette.light.js +5 -4
- package/dist/esm/Theme/tokens/brands/storefront/palette.light.js +5 -4
- package/dist/esm/Theme/tokens/builders/brandInk.js +103 -0
- package/package.json +1 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildBrandInk = buildBrandInk;
|
|
4
|
+
const buildBrandTokens_1 = require("./buildBrandTokens");
|
|
5
|
+
const color_1 = require("./color");
|
|
6
|
+
const RUNGS = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
|
|
7
|
+
// Lavender's primary saturation. Each brand's ramps scale away from it.
|
|
8
|
+
const REFERENCE_SATURATION = 55.5;
|
|
9
|
+
const SECONDARY = {
|
|
10
|
+
50: [39.4, 0.8231],
|
|
11
|
+
100: [41.0, 0.61132],
|
|
12
|
+
200: [37.7, 0.39479],
|
|
13
|
+
300: [27.4, 0.18614],
|
|
14
|
+
400: [28.4, 0.10269],
|
|
15
|
+
500: [52.4, 0.00831],
|
|
16
|
+
600: [55.1, 0.00573],
|
|
17
|
+
700: [55.6, 0.00386],
|
|
18
|
+
800: [60.0, 0.00245],
|
|
19
|
+
900: [57.1, 0.00141],
|
|
20
|
+
};
|
|
21
|
+
const TEXT = {
|
|
22
|
+
50: [25.9, 0.86267],
|
|
23
|
+
100: [32.4, 0.63853],
|
|
24
|
+
200: [32.7, 0.48344],
|
|
25
|
+
300: [30.6, 0.30607],
|
|
26
|
+
400: [29.2, 0.21515],
|
|
27
|
+
500: [26.3, 0.10787],
|
|
28
|
+
600: [26.6, 0.08786],
|
|
29
|
+
700: [26.7, 0.05281],
|
|
30
|
+
800: [27.4, 0.03145],
|
|
31
|
+
900: [29.0, 0.01826],
|
|
32
|
+
};
|
|
33
|
+
const HEADER = {
|
|
34
|
+
50: [31.3, 0.83382],
|
|
35
|
+
100: [31.0, 0.59779],
|
|
36
|
+
200: [30.6, 0.44729],
|
|
37
|
+
300: [29.3, 0.27622],
|
|
38
|
+
400: [30.0, 0.19238],
|
|
39
|
+
500: [29.9, 0.10467],
|
|
40
|
+
600: [29.9, 0.08682],
|
|
41
|
+
700: [29.7, 0.05281],
|
|
42
|
+
800: [29.1, 0.0319],
|
|
43
|
+
900: [29.9, 0.01915],
|
|
44
|
+
};
|
|
45
|
+
const PLACEHOLDER = {
|
|
46
|
+
50: [30.4, 0.87913],
|
|
47
|
+
100: [35.4, 0.67128],
|
|
48
|
+
200: [36.1, 0.53513],
|
|
49
|
+
300: [34.7, 0.37333],
|
|
50
|
+
400: [31.4, 0.30462],
|
|
51
|
+
500: [28.2, 0.19307],
|
|
52
|
+
600: [22.8, 0.15818],
|
|
53
|
+
700: [22.0, 0.09196],
|
|
54
|
+
800: [21.5, 0.05448],
|
|
55
|
+
900: [22.3, 0.03206],
|
|
56
|
+
};
|
|
57
|
+
const DISABLED = {
|
|
58
|
+
50: [33.3, 0.90353],
|
|
59
|
+
100: [38.9, 0.80618],
|
|
60
|
+
200: [40.7, 0.71546],
|
|
61
|
+
300: [41.0, 0.60545],
|
|
62
|
+
400: [39.6, 0.53328],
|
|
63
|
+
500: [40.5, 0.43688],
|
|
64
|
+
600: [28.2, 0.35566],
|
|
65
|
+
700: [13.4, 0.20289],
|
|
66
|
+
800: [11.4, 0.1171],
|
|
67
|
+
900: [11.2, 0.06724],
|
|
68
|
+
};
|
|
69
|
+
// Lightness is monotonic in luminance for a fixed hue/saturation, so bisection converges.
|
|
70
|
+
const atLuminance = (anchor, saturation, target) => {
|
|
71
|
+
let low = 0;
|
|
72
|
+
let high = 100;
|
|
73
|
+
for (let i = 0; i < 30; i += 1) {
|
|
74
|
+
const mid = (low + high) / 2;
|
|
75
|
+
if ((0, color_1.relativeLuminance)((0, color_1.withLightness)(anchor, mid, saturation)) < target)
|
|
76
|
+
low = mid;
|
|
77
|
+
else
|
|
78
|
+
high = mid;
|
|
79
|
+
}
|
|
80
|
+
return (0, color_1.withLightness)(anchor, (low + high) / 2, saturation);
|
|
81
|
+
};
|
|
82
|
+
const ramp = (anchor, profile) => {
|
|
83
|
+
const ratio = (0, color_1.hexToHsl)(anchor).s / REFERENCE_SATURATION;
|
|
84
|
+
const scale = {};
|
|
85
|
+
for (const rung of RUNGS) {
|
|
86
|
+
const [saturation, luminance] = profile[rung];
|
|
87
|
+
scale[rung] = atLuminance(anchor, Math.min(100, saturation * ratio), luminance);
|
|
88
|
+
}
|
|
89
|
+
return scale;
|
|
90
|
+
};
|
|
91
|
+
const brandRamp = (anchor, profile) => {
|
|
92
|
+
const scale = ramp(anchor, profile);
|
|
93
|
+
return { ...scale, opacity: (0, buildBrandTokens_1.buildPrimaryOpacity)(scale[500]) };
|
|
94
|
+
};
|
|
95
|
+
/** Brand-hued ink ramps at lavender's verified luminances, so contrast carries over. */
|
|
96
|
+
function buildBrandInk(primary500) {
|
|
97
|
+
const secondary = brandRamp(primary500, SECONDARY);
|
|
98
|
+
return {
|
|
99
|
+
secondary,
|
|
100
|
+
tertiary: { ...secondary },
|
|
101
|
+
text: ramp(primary500, TEXT),
|
|
102
|
+
header: ramp(primary500, HEADER),
|
|
103
|
+
placeholder: ramp(primary500, PLACEHOLDER),
|
|
104
|
+
disabled: ramp(primary500, DISABLED),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -130,6 +130,11 @@ export type BrandPaletteSource = Omit<PaletteProps, "accentText" | "textMuted" |
|
|
|
130
130
|
background: ColorScale;
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
|
+
/** Utility scales carrying no brand identity. The only tokens a brand may inherit. */
|
|
134
|
+
export type NeutralPaletteKey = "transparent" | "black" | "white" | "semantic" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink";
|
|
135
|
+
export type NeutralPaletteTokens = Pick<BrandPaletteSource, NeutralPaletteKey>;
|
|
136
|
+
/** Everything a brand must state itself — never by spreading another brand. */
|
|
137
|
+
export type BrandIdentityTokens = Omit<BrandPaletteSource, NeutralPaletteKey>;
|
|
133
138
|
/** Brand identities shipped by the library. */
|
|
134
139
|
export type ThemeName = "lavender" | "meadow" | "radiant" | "skyline" | "slate" | "emerald" | "rosewood" | "storefront" | "zinc";
|
|
135
140
|
/** User-selectable color mode. `system` follows the OS setting. */
|
|
@@ -3,21 +3,25 @@ import { Box, Text } from "@chakra-ui/react";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { CirclePlus, SquarePen } from "lucide-react";
|
|
5
5
|
import { useCustomTheme } from "../../Theme/useCustomTheme.js";
|
|
6
|
-
import {
|
|
6
|
+
import { AA_NORMAL_TEXT } from "../../Theme/tokens/builders/accentText.js";
|
|
7
|
+
import { AA_NON_TEXT, liftToContrast } from "../../Theme/tokens/builders/outlineRung.js";
|
|
7
8
|
import Select from "../Select/Select.js";
|
|
8
9
|
import VeritcalDivider from "../Divider/Divider.js";
|
|
9
|
-
const HeaderActions = ({ select, edit, create, }) => {
|
|
10
|
+
const HeaderActions = ({ select, edit, create, surface, }) => {
|
|
10
11
|
var _a, _b;
|
|
11
12
|
const { colors } = useCustomTheme();
|
|
13
|
+
const canvas = surface !== null && surface !== void 0 ? surface : colors.backgroundColor.main;
|
|
14
|
+
const ink = liftToContrast(colors.secondary[500], canvas, AA_NORMAL_TEXT);
|
|
15
|
+
const iconInk = liftToContrast(colors.secondary[500], canvas, AA_NON_TEXT);
|
|
12
16
|
const elements = [];
|
|
13
17
|
if (select === null || select === void 0 ? void 0 : select.isSelect) {
|
|
14
18
|
elements.push(_jsx(Box, { width: (_a = select.width) !== null && _a !== void 0 ? _a : "12.5rem", children: _jsx(Select, { options: (_b = select.options) !== null && _b !== void 0 ? _b : [], placeholder: select.selectPlaceholderText, onChange: (option) => { var _a; return (_a = select.onSelectChange) === null || _a === void 0 ? void 0 : _a.call(select, option); }, value: select.value }, "select") }, "select"));
|
|
15
19
|
}
|
|
16
20
|
if (edit === null || edit === void 0 ? void 0 : edit.isEditable) {
|
|
17
|
-
elements.push(_jsxs(Box, { display: "flex", alignItems: "center", gap: "0.375rem", cursor: "pointer", fontSize: 14, onClick: () => { var _a; return (_a = edit.onEdit) === null || _a === void 0 ? void 0 : _a.call(edit); }, children: [_jsx(SquarePen, { size: 16, color:
|
|
21
|
+
elements.push(_jsxs(Box, { display: "flex", alignItems: "center", gap: "0.375rem", cursor: "pointer", fontSize: 14, onClick: () => { var _a; return (_a = edit.onEdit) === null || _a === void 0 ? void 0 : _a.call(edit); }, children: [_jsx(SquarePen, { size: 16, color: iconInk }), _jsx(Text, { color: ink, children: edit.label ? edit.label : "Edit Layout" })] }, "edit"));
|
|
18
22
|
}
|
|
19
23
|
if (create === null || create === void 0 ? void 0 : create.isCreatable) {
|
|
20
|
-
elements.push(_jsxs(Box, { display: "flex", alignItems: "center", gap: "0.375rem", cursor: "pointer", fontSize: 14, onClick: () => { var _a; return (_a = create.onCreate) === null || _a === void 0 ? void 0 : _a.call(create); }, children: [_jsx(CirclePlus, { size: 16, color:
|
|
24
|
+
elements.push(_jsxs(Box, { display: "flex", alignItems: "center", gap: "0.375rem", cursor: "pointer", fontSize: 14, onClick: () => { var _a; return (_a = create.onCreate) === null || _a === void 0 ? void 0 : _a.call(create); }, children: [_jsx(CirclePlus, { size: 16, color: iconInk }), _jsxs(Text, { color: ink, children: [" ", create.label ? create.label : "Create New", " "] })] }, "create"));
|
|
21
25
|
}
|
|
22
26
|
return (_jsx(Box, { display: "flex", alignItems: "center", gap: "0.625rem", children: elements.map((el, i) => (_jsxs(React.Fragment, { children: [i > 0 && _jsx(VeritcalDivider, {}), el] }, i))) }));
|
|
23
27
|
};
|
|
@@ -3,7 +3,7 @@ import { Box, Flex, Text } from "@chakra-ui/react";
|
|
|
3
3
|
import { AlertCircle, Clock, Sparkles } from "lucide-react";
|
|
4
4
|
import { useCustomTheme } from "../../Theme/useCustomTheme.js";
|
|
5
5
|
import { onGradient } from "../../Theme/tokens/builders/accentText.js";
|
|
6
|
-
import {
|
|
6
|
+
import { chipBorder, chipFill, inkSafeGradient, statusGradient, } from "./planPillGradient.js";
|
|
7
7
|
const TONE_ICON = {
|
|
8
8
|
normal: Sparkles,
|
|
9
9
|
warning: Clock,
|
|
@@ -13,7 +13,7 @@ const PlanPill = ({ label, mobileLabel, status, tone = "normal", icon, gradient,
|
|
|
13
13
|
const theme = useCustomTheme();
|
|
14
14
|
const c = theme.colors;
|
|
15
15
|
const toneGradient = {
|
|
16
|
-
normal:
|
|
16
|
+
normal: inkSafeGradient(c.gradient),
|
|
17
17
|
warning: statusGradient(c.semantic.warning),
|
|
18
18
|
danger: statusGradient(c.semantic.error),
|
|
19
19
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
|
|
2
2
|
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
|
|
3
|
+
import { buildBrandInk } from "../../builders/brandInk.js";
|
|
3
4
|
const PRIMARY_500 = "#0f9d8a"; // teal-emerald core (balanced, not too green/blue)
|
|
4
5
|
const primary = {
|
|
5
6
|
50: "#e6f7f5",
|
|
@@ -15,7 +16,8 @@ const primary = {
|
|
|
15
16
|
opacity: buildPrimaryOpacity(PRIMARY_500),
|
|
16
17
|
};
|
|
17
18
|
const palette = {
|
|
18
|
-
...
|
|
19
|
+
...neutralTokens,
|
|
20
|
+
...buildBrandInk(PRIMARY_500),
|
|
19
21
|
// Stops retuned so white gradient-button text (onGradient, accentText.ts) clears AA at both
|
|
20
22
|
// ends — the original pair let white drop to 3.38/2.43 against from/to. Same hue, darker.
|
|
21
23
|
// Both nudged one step further (4.537/4.515 -> 4.618/4.616): the first pass cleared AA by
|
|
@@ -123,8 +125,7 @@ const palette = {
|
|
|
123
125
|
},
|
|
124
126
|
boxShadow: {
|
|
125
127
|
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
126
|
-
|
|
127
|
-
default: lavenderPalette.boxShadow.default,
|
|
128
|
+
...sharedBoxShadow,
|
|
128
129
|
},
|
|
129
130
|
};
|
|
130
131
|
export default palette;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
|
|
2
|
+
import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
|
|
2
3
|
const PRIMARY_500 = "#8B3FC8";
|
|
3
4
|
const SECONDARY_ANCHOR = "#1e0f30";
|
|
4
5
|
const primary = {
|
|
@@ -28,56 +29,6 @@ const secondary = {
|
|
|
28
29
|
opacity: buildPrimaryOpacity(SECONDARY_ANCHOR),
|
|
29
30
|
};
|
|
30
31
|
const tertiary = { ...secondary };
|
|
31
|
-
const semantic = {
|
|
32
|
-
success: {
|
|
33
|
-
50: "#e9f8ef",
|
|
34
|
-
100: "#bbe9cc",
|
|
35
|
-
200: "#9adeb4",
|
|
36
|
-
300: "#6ccf92",
|
|
37
|
-
400: "#4fc67d",
|
|
38
|
-
500: "#23b85c",
|
|
39
|
-
600: "#20a754",
|
|
40
|
-
700: "#198341",
|
|
41
|
-
800: "#136533",
|
|
42
|
-
900: "#0f4d27",
|
|
43
|
-
},
|
|
44
|
-
error: {
|
|
45
|
-
50: "#feedeb",
|
|
46
|
-
100: "#fbc6c2",
|
|
47
|
-
200: "#f9aaa4",
|
|
48
|
-
300: "#f6837b",
|
|
49
|
-
400: "#f56b61",
|
|
50
|
-
500: "#f2463a",
|
|
51
|
-
600: "#dc4035",
|
|
52
|
-
700: "#ac3229",
|
|
53
|
-
800: "#852720",
|
|
54
|
-
900: "#661d18",
|
|
55
|
-
},
|
|
56
|
-
warning: {
|
|
57
|
-
50: "#fff4ef",
|
|
58
|
-
100: "#ffddce",
|
|
59
|
-
200: "#ffccb7",
|
|
60
|
-
300: "#ffb596",
|
|
61
|
-
400: "#ffa781",
|
|
62
|
-
500: "#ff9162",
|
|
63
|
-
600: "#e88459",
|
|
64
|
-
700: "#b56746",
|
|
65
|
-
800: "#8c5036",
|
|
66
|
-
900: "#6b3d29",
|
|
67
|
-
},
|
|
68
|
-
info: {
|
|
69
|
-
50: "#eff9fc",
|
|
70
|
-
100: "#cdedf5",
|
|
71
|
-
200: "#b5e4f0",
|
|
72
|
-
300: "#94d7e9",
|
|
73
|
-
400: "#7fd0e5",
|
|
74
|
-
500: "#5fc4de",
|
|
75
|
-
600: "#56b2ea",
|
|
76
|
-
700: "#438b9e",
|
|
77
|
-
800: "#346c78",
|
|
78
|
-
900: "#28525d",
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
32
|
const gray = {
|
|
82
33
|
50: "#f9f7fb",
|
|
83
34
|
100: "#f0eaf6",
|
|
@@ -98,51 +49,6 @@ const gray = {
|
|
|
98
49
|
};
|
|
99
50
|
// These global color scales stay unchanged — they are
|
|
100
51
|
// utility palettes, not theme-specific
|
|
101
|
-
const red = {
|
|
102
|
-
50: "#feedeb", 100: "#fbc6c2", 200: "#f9aaa4", 300: "#f6837b",
|
|
103
|
-
400: "#f56b61", 500: "#f2463a", 600: "#dc4035", 700: "#ac3229",
|
|
104
|
-
800: "#852720", 900: "#661d18",
|
|
105
|
-
};
|
|
106
|
-
const orange = {
|
|
107
|
-
50: "#fff4ef", 100: "#ffddce", 200: "#ffccb7", 300: "#ffb596",
|
|
108
|
-
400: "#ffa781", 500: "#ff9162", 600: "#e88459", 700: "#b56746",
|
|
109
|
-
800: "#8c5036", 900: "#6b3d29",
|
|
110
|
-
};
|
|
111
|
-
const yellow = {
|
|
112
|
-
50: "#fefbec", 100: "#fdf1c5", 200: "#fbeba9", 300: "#fae281",
|
|
113
|
-
400: "#f9dc69", 500: "#f7d343", 600: "#e1c03d", 700: "#af9630",
|
|
114
|
-
800: "#887425", 900: "#68591c",
|
|
115
|
-
};
|
|
116
|
-
const green = {
|
|
117
|
-
50: "#e9f8ef", 100: "#bbe9cc", 200: "#9adeb4", 300: "#6ccf92",
|
|
118
|
-
400: "#4fc67d", 500: "#23b85c", 600: "#20a754", 700: "#198341",
|
|
119
|
-
800: "#136533", 900: "#0f4d27",
|
|
120
|
-
};
|
|
121
|
-
const teal = {
|
|
122
|
-
50: "#eff9fc", 100: "#cdedf5", 200: "#b5e4f0", 300: "#94d7e9",
|
|
123
|
-
400: "#7fd0e5", 500: "#5fc4de", 600: "#56b2ea", 700: "#438b9e",
|
|
124
|
-
800: "#346c78", 900: "#28525d",
|
|
125
|
-
};
|
|
126
|
-
const blue = {
|
|
127
|
-
50: "#ebf8ff", 100: "#bee3f8", 200: "#90cdf4", 300: "#63b3ed",
|
|
128
|
-
400: "#4299e1", 500: "#3182ce", 600: "#2b6cb0", 700: "#2c5282",
|
|
129
|
-
800: "#2a4365", 900: "#1a365d",
|
|
130
|
-
};
|
|
131
|
-
const cyan = {
|
|
132
|
-
50: "#edfdfd", 100: "#c4f1f9", 200: "#9decf9", 300: "#76e4f7",
|
|
133
|
-
400: "#0bc5ea", 500: "#00b5d8", 600: "#00a3c4", 700: "#0987a0",
|
|
134
|
-
800: "#086f83", 900: "#065666",
|
|
135
|
-
};
|
|
136
|
-
const purple = {
|
|
137
|
-
50: "#faf5ff", 100: "#e9d8fd", 200: "#d6bcfa", 300: "#b794f4",
|
|
138
|
-
400: "#9f7aea", 500: "#805ad5", 600: "#6b46c1", 700: "#553c9a",
|
|
139
|
-
800: "#44337a", 900: "#322659",
|
|
140
|
-
};
|
|
141
|
-
const pink = {
|
|
142
|
-
50: "#fff5f7", 100: "#fed7e2", 200: "#fbb6ce", 300: "#f687b3",
|
|
143
|
-
400: "#ed64a6", 500: "#d53f8c", 600: "#b83280", 700: "#97266d",
|
|
144
|
-
800: "#702459", 900: "#521b41",
|
|
145
|
-
};
|
|
146
52
|
const backgroundColor = {
|
|
147
53
|
main: "#f9f7fc",
|
|
148
54
|
secondary: "#f2edf8",
|
|
@@ -208,8 +114,7 @@ const placeholder = {
|
|
|
208
114
|
};
|
|
209
115
|
const boxShadow = {
|
|
210
116
|
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
211
|
-
|
|
212
|
-
default: "#00000033",
|
|
117
|
+
...sharedBoxShadow,
|
|
213
118
|
};
|
|
214
119
|
const sidebar = {
|
|
215
120
|
background: {
|
|
@@ -292,20 +197,8 @@ const palette = {
|
|
|
292
197
|
primary,
|
|
293
198
|
secondary,
|
|
294
199
|
tertiary,
|
|
295
|
-
|
|
296
|
-
black: "#000",
|
|
297
|
-
white: "#fff",
|
|
298
|
-
semantic,
|
|
200
|
+
...neutralTokens,
|
|
299
201
|
gray,
|
|
300
|
-
red,
|
|
301
|
-
orange,
|
|
302
|
-
yellow,
|
|
303
|
-
green,
|
|
304
|
-
teal,
|
|
305
|
-
blue,
|
|
306
|
-
cyan,
|
|
307
|
-
purple,
|
|
308
|
-
pink,
|
|
309
202
|
backgroundColor,
|
|
310
203
|
background,
|
|
311
204
|
text,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
|
|
2
2
|
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
|
|
3
|
+
import { buildBrandInk } from "../../builders/brandInk.js";
|
|
3
4
|
const PRIMARY_500 = "#2d6a4f"; // was #2caa3d — deeper, forest-toned
|
|
4
5
|
const primary = {
|
|
5
6
|
50: "#edf7f2",
|
|
@@ -15,7 +16,8 @@ const primary = {
|
|
|
15
16
|
opacity: buildPrimaryOpacity(PRIMARY_500),
|
|
16
17
|
};
|
|
17
18
|
const palette = {
|
|
18
|
-
...
|
|
19
|
+
...neutralTokens,
|
|
20
|
+
...buildBrandInk(PRIMARY_500),
|
|
19
21
|
// `to` stop retuned so white gradient-button text (onGradient, accentText.ts) clears AA — the
|
|
20
22
|
// original let white drop to 2.49 there (`from` already passed at 6.39, unchanged).
|
|
21
23
|
// Nudged one step further (4.519 -> 4.627): the first pass cleared AA by <0.02, too thin a
|
|
@@ -121,8 +123,7 @@ const palette = {
|
|
|
121
123
|
},
|
|
122
124
|
boxShadow: {
|
|
123
125
|
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
124
|
-
|
|
125
|
-
default: lavenderPalette.boxShadow.default,
|
|
126
|
+
...sharedBoxShadow,
|
|
126
127
|
},
|
|
127
128
|
};
|
|
128
129
|
export default palette;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
const semantic = {
|
|
2
|
+
success: {
|
|
3
|
+
50: "#e9f8ef",
|
|
4
|
+
100: "#bbe9cc",
|
|
5
|
+
200: "#9adeb4",
|
|
6
|
+
300: "#6ccf92",
|
|
7
|
+
400: "#4fc67d",
|
|
8
|
+
500: "#23b85c",
|
|
9
|
+
600: "#20a754",
|
|
10
|
+
700: "#198341",
|
|
11
|
+
800: "#136533",
|
|
12
|
+
900: "#0f4d27",
|
|
13
|
+
},
|
|
14
|
+
error: {
|
|
15
|
+
50: "#feedeb",
|
|
16
|
+
100: "#fbc6c2",
|
|
17
|
+
200: "#f9aaa4",
|
|
18
|
+
300: "#f6837b",
|
|
19
|
+
400: "#f56b61",
|
|
20
|
+
500: "#f2463a",
|
|
21
|
+
600: "#dc4035",
|
|
22
|
+
700: "#ac3229",
|
|
23
|
+
800: "#852720",
|
|
24
|
+
900: "#661d18",
|
|
25
|
+
},
|
|
26
|
+
warning: {
|
|
27
|
+
50: "#fff4ef",
|
|
28
|
+
100: "#ffddce",
|
|
29
|
+
200: "#ffccb7",
|
|
30
|
+
300: "#ffb596",
|
|
31
|
+
400: "#ffa781",
|
|
32
|
+
500: "#ff9162",
|
|
33
|
+
600: "#e88459",
|
|
34
|
+
700: "#b56746",
|
|
35
|
+
800: "#8c5036",
|
|
36
|
+
900: "#6b3d29",
|
|
37
|
+
},
|
|
38
|
+
info: {
|
|
39
|
+
50: "#eff9fc",
|
|
40
|
+
100: "#cdedf5",
|
|
41
|
+
200: "#b5e4f0",
|
|
42
|
+
300: "#94d7e9",
|
|
43
|
+
400: "#7fd0e5",
|
|
44
|
+
500: "#5fc4de",
|
|
45
|
+
600: "#56b2ea",
|
|
46
|
+
700: "#438b9e",
|
|
47
|
+
800: "#346c78",
|
|
48
|
+
900: "#28525d",
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
const red = {
|
|
52
|
+
50: "#feedeb", 100: "#fbc6c2", 200: "#f9aaa4", 300: "#f6837b",
|
|
53
|
+
400: "#f56b61", 500: "#f2463a", 600: "#dc4035", 700: "#ac3229",
|
|
54
|
+
800: "#852720", 900: "#661d18",
|
|
55
|
+
};
|
|
56
|
+
const orange = {
|
|
57
|
+
50: "#fff4ef", 100: "#ffddce", 200: "#ffccb7", 300: "#ffb596",
|
|
58
|
+
400: "#ffa781", 500: "#ff9162", 600: "#e88459", 700: "#b56746",
|
|
59
|
+
800: "#8c5036", 900: "#6b3d29",
|
|
60
|
+
};
|
|
61
|
+
const yellow = {
|
|
62
|
+
50: "#fefbec", 100: "#fdf1c5", 200: "#fbeba9", 300: "#fae281",
|
|
63
|
+
400: "#f9dc69", 500: "#f7d343", 600: "#e1c03d", 700: "#af9630",
|
|
64
|
+
800: "#887425", 900: "#68591c",
|
|
65
|
+
};
|
|
66
|
+
const green = {
|
|
67
|
+
50: "#e9f8ef", 100: "#bbe9cc", 200: "#9adeb4", 300: "#6ccf92",
|
|
68
|
+
400: "#4fc67d", 500: "#23b85c", 600: "#20a754", 700: "#198341",
|
|
69
|
+
800: "#136533", 900: "#0f4d27",
|
|
70
|
+
};
|
|
71
|
+
const teal = {
|
|
72
|
+
50: "#eff9fc", 100: "#cdedf5", 200: "#b5e4f0", 300: "#94d7e9",
|
|
73
|
+
400: "#7fd0e5", 500: "#5fc4de", 600: "#56b2ea", 700: "#438b9e",
|
|
74
|
+
800: "#346c78", 900: "#28525d",
|
|
75
|
+
};
|
|
76
|
+
const blue = {
|
|
77
|
+
50: "#ebf8ff", 100: "#bee3f8", 200: "#90cdf4", 300: "#63b3ed",
|
|
78
|
+
400: "#4299e1", 500: "#3182ce", 600: "#2b6cb0", 700: "#2c5282",
|
|
79
|
+
800: "#2a4365", 900: "#1a365d",
|
|
80
|
+
};
|
|
81
|
+
const cyan = {
|
|
82
|
+
50: "#edfdfd", 100: "#c4f1f9", 200: "#9decf9", 300: "#76e4f7",
|
|
83
|
+
400: "#0bc5ea", 500: "#00b5d8", 600: "#00a3c4", 700: "#0987a0",
|
|
84
|
+
800: "#086f83", 900: "#065666",
|
|
85
|
+
};
|
|
86
|
+
const purple = {
|
|
87
|
+
50: "#faf5ff", 100: "#e9d8fd", 200: "#d6bcfa", 300: "#b794f4",
|
|
88
|
+
400: "#9f7aea", 500: "#805ad5", 600: "#6b46c1", 700: "#553c9a",
|
|
89
|
+
800: "#44337a", 900: "#322659",
|
|
90
|
+
};
|
|
91
|
+
const pink = {
|
|
92
|
+
50: "#fff5f7", 100: "#fed7e2", 200: "#fbb6ce", 300: "#f687b3",
|
|
93
|
+
400: "#ed64a6", 500: "#d53f8c", 600: "#b83280", 700: "#97266d",
|
|
94
|
+
800: "#702459", 900: "#521b41",
|
|
95
|
+
};
|
|
96
|
+
/** Non-brand shadow tints. Only `primary` is brand-derived. */
|
|
97
|
+
export const sharedBoxShadow = {
|
|
98
|
+
error: "#F2463A47",
|
|
99
|
+
default: "#00000033",
|
|
100
|
+
};
|
|
101
|
+
/** Utility scales shared by every brand — never theme-specific. */
|
|
102
|
+
export const neutralTokens = {
|
|
103
|
+
transparent: "transparent",
|
|
104
|
+
black: "#000",
|
|
105
|
+
white: "#fff",
|
|
106
|
+
semantic,
|
|
107
|
+
red,
|
|
108
|
+
orange,
|
|
109
|
+
yellow,
|
|
110
|
+
green,
|
|
111
|
+
teal,
|
|
112
|
+
blue,
|
|
113
|
+
cyan,
|
|
114
|
+
purple,
|
|
115
|
+
pink,
|
|
116
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
|
|
2
2
|
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
|
|
3
|
+
import { buildBrandInk } from "../../builders/brandInk.js";
|
|
3
4
|
const PRIMARY_500 = "#cf4e3a"; // warm red (terracotta leaning)
|
|
4
5
|
const primary = {
|
|
5
6
|
50: "#fdf1ee",
|
|
@@ -15,7 +16,8 @@ const primary = {
|
|
|
15
16
|
opacity: buildPrimaryOpacity(PRIMARY_500),
|
|
16
17
|
};
|
|
17
18
|
const palette = {
|
|
18
|
-
...
|
|
19
|
+
...neutralTokens,
|
|
20
|
+
...buildBrandInk(PRIMARY_500),
|
|
19
21
|
// Stops retuned so white gradient-button text (onGradient, accentText.ts) clears AA at both
|
|
20
22
|
// ends — the original pair let white drop to 4.37/2.15 against from/to. Same hue, darker.
|
|
21
23
|
// Both nudged one step further (4.509/4.502 -> 4.601/4.617): the first pass cleared AA by
|
|
@@ -123,8 +125,7 @@ const palette = {
|
|
|
123
125
|
},
|
|
124
126
|
boxShadow: {
|
|
125
127
|
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
126
|
-
|
|
127
|
-
default: lavenderPalette.boxShadow.default,
|
|
128
|
+
...sharedBoxShadow,
|
|
128
129
|
},
|
|
129
130
|
};
|
|
130
131
|
export default palette;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
|
|
2
2
|
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
|
|
3
|
+
import { buildBrandInk } from "../../builders/brandInk.js";
|
|
3
4
|
const PRIMARY_500 = "#d16a7e"; // muted warm rose (not neon pink)
|
|
4
5
|
const primary = {
|
|
5
6
|
50: "#fdf2f5",
|
|
@@ -15,7 +16,8 @@ const primary = {
|
|
|
15
16
|
opacity: buildPrimaryOpacity(PRIMARY_500),
|
|
16
17
|
};
|
|
17
18
|
const palette = {
|
|
18
|
-
...
|
|
19
|
+
...neutralTokens,
|
|
20
|
+
...buildBrandInk(PRIMARY_500),
|
|
19
21
|
// Stops retuned so white gradient-button text (onGradient, accentText.ts) clears AA at both
|
|
20
22
|
// ends — the original pair let white drop to 3.46/2.69 against from/to. Same hue, darker.
|
|
21
23
|
// Both nudged one step further (4.520/4.505 -> 4.609/4.607): the first pass cleared AA by
|
|
@@ -127,8 +129,7 @@ const palette = {
|
|
|
127
129
|
},
|
|
128
130
|
boxShadow: {
|
|
129
131
|
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
130
|
-
|
|
131
|
-
default: lavenderPalette.boxShadow.default,
|
|
132
|
+
...sharedBoxShadow,
|
|
132
133
|
},
|
|
133
134
|
};
|
|
134
135
|
export default palette;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
|
|
2
2
|
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
|
|
3
|
+
import { buildBrandInk } from "../../builders/brandInk.js";
|
|
3
4
|
const PRIMARY_500 = "#1a3a6b"; // was #0088cc — deep navy
|
|
4
5
|
const primary = {
|
|
5
6
|
50: "#e8ecf4",
|
|
@@ -15,7 +16,8 @@ const primary = {
|
|
|
15
16
|
opacity: buildPrimaryOpacity(PRIMARY_500),
|
|
16
17
|
};
|
|
17
18
|
const palette = {
|
|
18
|
-
...
|
|
19
|
+
...neutralTokens,
|
|
20
|
+
...buildBrandInk(PRIMARY_500),
|
|
19
21
|
// `to` stop retuned so white gradient-button text (onGradient, accentText.ts) clears AA — the
|
|
20
22
|
// original let white drop to 2.14 there (`from` already passed at 11.28, unchanged).
|
|
21
23
|
// Nudged one step further (4.515 -> 4.600): the first pass cleared AA by <0.02, too thin a
|
|
@@ -121,8 +123,7 @@ const palette = {
|
|
|
121
123
|
},
|
|
122
124
|
boxShadow: {
|
|
123
125
|
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
124
|
-
|
|
125
|
-
default: lavenderPalette.boxShadow.default,
|
|
126
|
+
...sharedBoxShadow,
|
|
126
127
|
},
|
|
127
128
|
};
|
|
128
129
|
export default palette;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
|
|
2
2
|
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
|
|
3
|
+
import { buildBrandInk } from "../../builders/brandInk.js";
|
|
3
4
|
const PRIMARY_500 = "#6b7280"; // was #475569 — pure neutral gray, no blue cast
|
|
4
5
|
const primary = {
|
|
5
6
|
50: "#f9fafb",
|
|
@@ -15,7 +16,8 @@ const primary = {
|
|
|
15
16
|
opacity: buildPrimaryOpacity(PRIMARY_500),
|
|
16
17
|
};
|
|
17
18
|
const palette = {
|
|
18
|
-
...
|
|
19
|
+
...neutralTokens,
|
|
20
|
+
...buildBrandInk(PRIMARY_500),
|
|
19
21
|
// `to` stop retuned so white gradient-button text (onGradient, accentText.ts) clears AA — the
|
|
20
22
|
// original let white drop to 2.98 there (`from` already passed at 4.83, unchanged).
|
|
21
23
|
// Nudged one step further (4.520 -> 4.608): the first pass cleared AA by <0.02, too thin a
|
|
@@ -125,8 +127,7 @@ const palette = {
|
|
|
125
127
|
},
|
|
126
128
|
boxShadow: {
|
|
127
129
|
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
128
|
-
|
|
129
|
-
default: lavenderPalette.boxShadow.default,
|
|
130
|
+
...sharedBoxShadow,
|
|
130
131
|
},
|
|
131
132
|
};
|
|
132
133
|
export default palette;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { neutralTokens, sharedBoxShadow } from "../neutrals.js";
|
|
2
2
|
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens.js";
|
|
3
|
+
import { buildBrandInk } from "../../builders/brandInk.js";
|
|
3
4
|
const PRIMARY_500 = "#004f4b"; // deep spruce teal — storefront/retail brand anchor
|
|
4
5
|
const primary = {
|
|
5
6
|
50: "#eafaf9",
|
|
@@ -15,7 +16,8 @@ const primary = {
|
|
|
15
16
|
opacity: buildPrimaryOpacity(PRIMARY_500),
|
|
16
17
|
};
|
|
17
18
|
const palette = {
|
|
18
|
-
...
|
|
19
|
+
...neutralTokens,
|
|
20
|
+
...buildBrandInk(PRIMARY_500),
|
|
19
21
|
// Same hue as primary, darker stop for the "to" end — mirrors emerald's gradient pattern.
|
|
20
22
|
// White gradient-button text verified AA at both stops (4.98 / 6.96).
|
|
21
23
|
gradient: { from: "#0c7d77", to: "#095e90" }, // spruce teal → deep blue
|
|
@@ -115,8 +117,7 @@ const palette = {
|
|
|
115
117
|
},
|
|
116
118
|
boxShadow: {
|
|
117
119
|
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
118
|
-
|
|
119
|
-
default: lavenderPalette.boxShadow.default,
|
|
120
|
+
...sharedBoxShadow,
|
|
120
121
|
},
|
|
121
122
|
};
|
|
122
123
|
export default palette;
|