@wordpress/theme 0.1.0 → 0.1.1-next.2f1c7c01b.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/README.md +69 -9
- package/bin/generate-default-ramps/index.ts +49 -0
- package/bin/generate-primitive-tokens/index.ts +14 -9
- package/bin/terrazzo-plugin-figma-ds-token-manager/index.ts +11 -4
- package/build/color-ramps/index.js +21 -39
- package/build/color-ramps/index.js.map +3 -3
- package/build/color-ramps/lib/color-utils.js +39 -0
- package/build/color-ramps/lib/color-utils.js.map +7 -0
- package/build/color-ramps/lib/constants.js +18 -25
- package/build/color-ramps/lib/constants.js.map +3 -3
- package/build/color-ramps/lib/default-ramps.js +220 -0
- package/build/color-ramps/lib/default-ramps.js.map +7 -0
- package/build/color-ramps/lib/find-color-with-constraints.js +57 -71
- package/build/color-ramps/lib/find-color-with-constraints.js.map +3 -3
- package/build/color-ramps/lib/index.js +25 -68
- package/build/color-ramps/lib/index.js.map +3 -3
- package/build/color-ramps/lib/ramp-configs.js +12 -11
- package/build/color-ramps/lib/ramp-configs.js.map +1 -1
- package/build/color-ramps/lib/register-color-spaces.js +7 -0
- package/build/color-ramps/lib/register-color-spaces.js.map +7 -0
- package/build/color-ramps/lib/taper-chroma.js +35 -27
- package/build/color-ramps/lib/taper-chroma.js.map +3 -3
- package/build/color-ramps/lib/types.js +2 -1
- package/build/color-ramps/lib/types.js.map +1 -1
- package/build/color-ramps/lib/utils.js +12 -9
- package/build/color-ramps/lib/utils.js.map +2 -2
- package/build/context.js +3 -2
- package/build/context.js.map +1 -1
- package/build/index.js +2 -1
- package/build/index.js.map +1 -1
- package/build/lock-unlock.js +3 -2
- package/build/lock-unlock.js.map +1 -1
- package/build/prebuilt/js/design-tokens.js +14 -1
- package/build/prebuilt/js/design-tokens.js.map +2 -2
- package/build/prebuilt/json/figma.json +214 -32
- package/build/prebuilt/ts/design-tokens.js +38 -1
- package/build/prebuilt/ts/design-tokens.js.map +2 -2
- package/build/private-apis.js +3 -2
- package/build/private-apis.js.map +1 -1
- package/build/theme-provider.js +19 -17
- package/build/theme-provider.js.map +4 -4
- package/build/types/css-modules.d.js +0 -1
- package/build/types.js +2 -1
- package/build/types.js.map +1 -1
- package/build/use-theme-provider-styles.js +50 -36
- package/build/use-theme-provider-styles.js.map +3 -3
- package/build-module/color-ramps/index.js +20 -28
- package/build-module/color-ramps/index.js.map +2 -2
- package/build-module/color-ramps/lib/color-utils.js +19 -0
- package/build-module/color-ramps/lib/color-utils.js.map +7 -0
- package/build-module/color-ramps/lib/constants.js +13 -10
- package/build-module/color-ramps/lib/constants.js.map +2 -2
- package/build-module/color-ramps/lib/default-ramps.js +196 -0
- package/build-module/color-ramps/lib/default-ramps.js.map +7 -0
- package/build-module/color-ramps/lib/find-color-with-constraints.js +56 -60
- package/build-module/color-ramps/lib/find-color-with-constraints.js.map +2 -2
- package/build-module/color-ramps/lib/index.js +28 -55
- package/build-module/color-ramps/lib/index.js.map +3 -3
- package/build-module/color-ramps/lib/ramp-configs.js +11 -10
- package/build-module/color-ramps/lib/ramp-configs.js.map +1 -1
- package/build-module/color-ramps/lib/register-color-spaces.js +7 -0
- package/build-module/color-ramps/lib/register-color-spaces.js.map +7 -0
- package/build-module/color-ramps/lib/taper-chroma.js +40 -16
- package/build-module/color-ramps/lib/taper-chroma.js.map +2 -2
- package/build-module/color-ramps/lib/utils.js +7 -4
- package/build-module/color-ramps/lib/utils.js.map +2 -2
- package/build-module/context.js +2 -1
- package/build-module/context.js.map +1 -1
- package/build-module/index.js +1 -0
- package/build-module/index.js.map +1 -1
- package/build-module/lock-unlock.js +2 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/prebuilt/js/design-tokens.js +13 -0
- package/build-module/prebuilt/js/design-tokens.js.map +2 -2
- package/build-module/prebuilt/json/figma.json +214 -32
- package/build-module/prebuilt/ts/design-tokens.js +37 -0
- package/build-module/prebuilt/ts/design-tokens.js.map +2 -2
- package/build-module/private-apis.js +2 -1
- package/build-module/private-apis.js.map +1 -1
- package/build-module/theme-provider.js +18 -6
- package/build-module/theme-provider.js.map +3 -3
- package/build-module/use-theme-provider-styles.js +52 -31
- package/build-module/use-theme-provider-styles.js.map +2 -2
- package/build-types/color-ramps/index.d.ts +9 -16
- package/build-types/color-ramps/index.d.ts.map +1 -1
- package/build-types/color-ramps/lib/color-utils.d.ts +22 -0
- package/build-types/color-ramps/lib/color-utils.d.ts.map +1 -0
- package/build-types/color-ramps/lib/constants.d.ts +6 -8
- package/build-types/color-ramps/lib/constants.d.ts.map +1 -1
- package/build-types/color-ramps/lib/default-ramps.d.ts +7 -0
- package/build-types/color-ramps/lib/default-ramps.d.ts.map +1 -0
- package/build-types/color-ramps/lib/find-color-with-constraints.d.ts +7 -5
- package/build-types/color-ramps/lib/find-color-with-constraints.d.ts.map +1 -1
- package/build-types/color-ramps/lib/index.d.ts +5 -2
- package/build-types/color-ramps/lib/index.d.ts.map +1 -1
- package/build-types/color-ramps/lib/register-color-spaces.d.ts +2 -0
- package/build-types/color-ramps/lib/register-color-spaces.d.ts.map +1 -0
- package/build-types/color-ramps/lib/taper-chroma.d.ts +7 -3
- package/build-types/color-ramps/lib/taper-chroma.d.ts.map +1 -1
- package/build-types/color-ramps/lib/utils.d.ts +7 -3
- package/build-types/color-ramps/lib/utils.d.ts.map +1 -1
- package/build-types/color-ramps/stories/index.story.d.ts.map +1 -1
- package/build-types/prebuilt/ts/design-tokens.d.ts.map +1 -1
- package/build-types/use-theme-provider-styles.d.ts +4 -0
- package/build-types/use-theme-provider-styles.d.ts.map +1 -1
- package/docs/ds-tokens.md +34 -0
- package/package.json +19 -9
- package/src/color-ramps/index.ts +24 -41
- package/src/color-ramps/lib/color-utils.ts +34 -0
- package/src/color-ramps/lib/constants.ts +8 -6
- package/src/color-ramps/lib/default-ramps.ts +200 -0
- package/src/color-ramps/lib/find-color-with-constraints.ts +70 -79
- package/src/color-ramps/lib/index.ts +27 -61
- package/src/color-ramps/lib/register-color-spaces.ts +13 -0
- package/src/color-ramps/lib/taper-chroma.ts +47 -19
- package/src/color-ramps/lib/utils.ts +8 -9
- package/src/color-ramps/stories/index.story.tsx +16 -22
- package/src/color-ramps/test/__snapshots__/index.test.ts.snap +96 -96
- package/src/color-ramps/test/index.test.ts +27 -15
- package/src/prebuilt/css/design-tokens.css +90 -32
- package/src/prebuilt/js/design-tokens.js +12 -0
- package/src/prebuilt/json/figma.json +214 -32
- package/src/prebuilt/ts/design-tokens.ts +36 -0
- package/src/use-theme-provider-styles.ts +47 -25
- package/tokens/color.json +184 -32
- package/tsconfig.bin.json +13 -0
- package/tsconfig.bin.tsbuildinfo +1 -0
- package/tsconfig.json +6 -4
- package/tsconfig.src.json +9 -0
- package/tsconfig.src.tsbuildinfo +1 -0
- package/bin/build-tokens.js +0 -83
- package/build/color-ramps/lib/cache-utils.js +0 -57
- package/build/color-ramps/lib/cache-utils.js.map +0 -7
- package/build/style.module.css.js +0 -2
- package/build-module/color-ramps/lib/cache-utils.js +0 -31
- package/build-module/color-ramps/lib/cache-utils.js.map +0 -7
- package/build-module/style.module.css.js +0 -1
- package/build-style/style.css +0 -3
- package/build-types/color-ramps/lib/cache-utils.d.ts +0 -22
- package/build-types/color-ramps/lib/cache-utils.d.ts.map +0 -1
- package/src/color-ramps/lib/cache-utils.ts +0 -56
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/theme/src/color-ramps/lib/default-ramps.ts
|
|
20
|
+
var default_ramps_exports = {};
|
|
21
|
+
__export(default_ramps_exports, {
|
|
22
|
+
DEFAULT_RAMPS: () => DEFAULT_RAMPS
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(default_ramps_exports);
|
|
25
|
+
var DEFAULT_RAMPS = {
|
|
26
|
+
bg: {
|
|
27
|
+
ramp: {
|
|
28
|
+
surface2: { color: "#f8f8f8", warning: false },
|
|
29
|
+
bgFill1: { color: "#555", warning: false },
|
|
30
|
+
fgFill: { color: "#f0f0f0", warning: false },
|
|
31
|
+
bgFill2: { color: "#474747", warning: false },
|
|
32
|
+
surface6: { color: "#d0d0d0", warning: false },
|
|
33
|
+
surface5: { color: "#dfdfdf", warning: false },
|
|
34
|
+
surface4: { color: "#eaeaea", warning: false },
|
|
35
|
+
surface3: { color: "#fff", warning: false },
|
|
36
|
+
fgSurface4: { color: "#1e1e1e", warning: false },
|
|
37
|
+
fgSurface3: { color: "#6d6d6d", warning: false },
|
|
38
|
+
fgSurface2: { color: "#898989", warning: false },
|
|
39
|
+
fgSurface1: { color: "#a9a9a9", warning: false },
|
|
40
|
+
stroke3: { color: "#898989", warning: false },
|
|
41
|
+
stroke4: { color: "#6a6a6a", warning: false },
|
|
42
|
+
stroke2: { color: "#adadad", warning: false },
|
|
43
|
+
stroke1: { color: "#d0d0d0", warning: false },
|
|
44
|
+
bgFillDark: { color: "#1e1e1e", warning: false },
|
|
45
|
+
fgFillDark: { color: "#f0f0f0", warning: false },
|
|
46
|
+
bgFillInverted2: { color: "#1e1e1e", warning: false },
|
|
47
|
+
bgFillInverted1: { color: "#2f2f2f", warning: false },
|
|
48
|
+
fgFillInverted: { color: "#f0f0f0", warning: false },
|
|
49
|
+
surface1: { color: "#f0f0f0", warning: false }
|
|
50
|
+
},
|
|
51
|
+
direction: "darker"
|
|
52
|
+
},
|
|
53
|
+
primary: {
|
|
54
|
+
ramp: {
|
|
55
|
+
bgFill1: { color: "#3858e9", warning: false },
|
|
56
|
+
fgFill: { color: "#eff0f2", warning: false },
|
|
57
|
+
bgFill2: { color: "#2c47d7", warning: false },
|
|
58
|
+
surface2: { color: "#f6f8fc", warning: false },
|
|
59
|
+
surface6: { color: "#c4d0ee", warning: false },
|
|
60
|
+
surface5: { color: "#d8e0f3", warning: false },
|
|
61
|
+
surface4: { color: "#e5eaf7", warning: false },
|
|
62
|
+
surface3: { color: "#fff", warning: false },
|
|
63
|
+
fgSurface4: { color: "#080071", warning: false },
|
|
64
|
+
fgSurface3: { color: "#3858e9", warning: false },
|
|
65
|
+
fgSurface2: { color: "#5780ff", warning: false },
|
|
66
|
+
fgSurface1: { color: "#81a7ff", warning: false },
|
|
67
|
+
stroke3: { color: "#3858e9", warning: false },
|
|
68
|
+
stroke4: { color: "#2236c7", warning: false },
|
|
69
|
+
stroke2: { color: "#6f85c0", warning: false },
|
|
70
|
+
stroke1: { color: "#92a4cf", warning: false },
|
|
71
|
+
bgFillDark: { color: "#1b1e26", warning: false },
|
|
72
|
+
fgFillDark: { color: "#eff0f2", warning: false },
|
|
73
|
+
bgFillInverted2: { color: "#1b1e26", warning: false },
|
|
74
|
+
bgFillInverted1: { color: "#1401a4", warning: false },
|
|
75
|
+
fgFillInverted: { color: "#eff0f2", warning: false },
|
|
76
|
+
surface1: { color: "#ecf0f9", warning: false }
|
|
77
|
+
},
|
|
78
|
+
direction: "darker"
|
|
79
|
+
},
|
|
80
|
+
info: {
|
|
81
|
+
ramp: {
|
|
82
|
+
bgFill1: { color: "#0090ff", warning: false },
|
|
83
|
+
fgFill: { color: "#1b1e23", warning: false },
|
|
84
|
+
bgFill2: { color: "#007eec", warning: false },
|
|
85
|
+
surface2: { color: "#f5f9fd", warning: false },
|
|
86
|
+
surface6: { color: "#bad3f0", warning: false },
|
|
87
|
+
surface5: { color: "#d1e1f5", warning: false },
|
|
88
|
+
surface4: { color: "#e1ecf8", warning: false },
|
|
89
|
+
surface3: { color: "#fff", warning: false },
|
|
90
|
+
fgSurface4: { color: "#001758", warning: false },
|
|
91
|
+
fgSurface3: { color: "#006cd8", warning: false },
|
|
92
|
+
fgSurface2: { color: "#008bfa", warning: false },
|
|
93
|
+
fgSurface1: { color: "#4dafff", warning: false },
|
|
94
|
+
stroke3: { color: "#006cd8", warning: false },
|
|
95
|
+
stroke4: { color: "#004bb5", warning: false },
|
|
96
|
+
stroke2: { color: "#5e90c7", warning: false },
|
|
97
|
+
stroke1: { color: "#8baed6", warning: false },
|
|
98
|
+
bgFillDark: { color: "#1b1e23", warning: false },
|
|
99
|
+
fgFillDark: { color: "#eff0f2", warning: false },
|
|
100
|
+
bgFillInverted2: { color: "#1b1e23", warning: false },
|
|
101
|
+
bgFillInverted1: { color: "#00297a", warning: false },
|
|
102
|
+
fgFillInverted: { color: "#eff0f2", warning: false },
|
|
103
|
+
surface1: { color: "#e9f1fa", warning: false }
|
|
104
|
+
},
|
|
105
|
+
direction: "darker"
|
|
106
|
+
},
|
|
107
|
+
success: {
|
|
108
|
+
ramp: {
|
|
109
|
+
bgFill1: { color: "#4ab866", warning: false },
|
|
110
|
+
fgFill: { color: "#1b1f1c", warning: false },
|
|
111
|
+
bgFill2: { color: "#34a554", warning: false },
|
|
112
|
+
surface2: { color: "#f0fcf2", warning: false },
|
|
113
|
+
surface6: { color: "#7be792", warning: false },
|
|
114
|
+
surface5: { color: "#acf0b7", warning: false },
|
|
115
|
+
surface4: { color: "#cdf5d3", warning: false },
|
|
116
|
+
surface3: { color: "#fff", warning: false },
|
|
117
|
+
fgSurface4: { color: "#002b00", warning: false },
|
|
118
|
+
fgSurface3: { color: "#008030", warning: false },
|
|
119
|
+
fgSurface2: { color: "#2a9e4d", warning: false },
|
|
120
|
+
fgSurface1: { color: "#52bf6d", warning: false },
|
|
121
|
+
stroke3: { color: "#008030", warning: false },
|
|
122
|
+
stroke4: { color: "#006113", warning: false },
|
|
123
|
+
stroke2: { color: "#62996c", warning: false },
|
|
124
|
+
stroke1: { color: "#78ba84", warning: false },
|
|
125
|
+
bgFillDark: { color: "#1b1f1c", warning: false },
|
|
126
|
+
fgFillDark: { color: "#edf2ed", warning: false },
|
|
127
|
+
bgFillInverted2: { color: "#1b1f1c", warning: false },
|
|
128
|
+
bgFillInverted1: { color: "#003a00", warning: false },
|
|
129
|
+
fgFillInverted: { color: "#edf2ed", warning: false },
|
|
130
|
+
surface1: { color: "#ddf8e0", warning: false }
|
|
131
|
+
},
|
|
132
|
+
direction: "darker"
|
|
133
|
+
},
|
|
134
|
+
caution: {
|
|
135
|
+
ramp: {
|
|
136
|
+
bgFill1: { color: "#f0d149", warning: false },
|
|
137
|
+
fgFill: { color: "#1f1e1b", warning: false },
|
|
138
|
+
bgFill2: { color: "#dabb2b", warning: false },
|
|
139
|
+
surface2: { color: "#fdf9e7", warning: false },
|
|
140
|
+
surface6: { color: "#e7d070", warning: false },
|
|
141
|
+
surface5: { color: "#f4e08c", warning: false },
|
|
142
|
+
surface4: { color: "#f8ebb6", warning: false },
|
|
143
|
+
surface3: { color: "#fff", warning: false },
|
|
144
|
+
fgSurface4: { color: "#291d00", warning: false },
|
|
145
|
+
fgSurface3: { color: "#866a00", warning: false },
|
|
146
|
+
fgSurface2: { color: "#a58700", warning: false },
|
|
147
|
+
fgSurface1: { color: "#c6a800", warning: false },
|
|
148
|
+
stroke3: { color: "#866a00", warning: false },
|
|
149
|
+
stroke4: { color: "#644e00", warning: false },
|
|
150
|
+
stroke2: { color: "#988d60", warning: false },
|
|
151
|
+
stroke1: { color: "#b8ab76", warning: false },
|
|
152
|
+
bgFillDark: { color: "#1f1e1b", warning: false },
|
|
153
|
+
fgFillDark: { color: "#f6f1da", warning: false },
|
|
154
|
+
bgFillInverted2: { color: "#1f1e1b", warning: false },
|
|
155
|
+
bgFillInverted1: { color: "#3d2d00", warning: false },
|
|
156
|
+
fgFillInverted: { color: "#f6f1da", warning: false },
|
|
157
|
+
surface1: { color: "#faf1cb", warning: false }
|
|
158
|
+
},
|
|
159
|
+
direction: "darker"
|
|
160
|
+
},
|
|
161
|
+
warning: {
|
|
162
|
+
ramp: {
|
|
163
|
+
bgFill1: { color: "#f0b849", warning: false },
|
|
164
|
+
fgFill: { color: "#1f1e1b", warning: false },
|
|
165
|
+
bgFill2: { color: "#dba430", warning: false },
|
|
166
|
+
surface2: { color: "#fdf7ee", warning: false },
|
|
167
|
+
surface6: { color: "#f0cb89", warning: false },
|
|
168
|
+
surface5: { color: "#f5ddb2", warning: false },
|
|
169
|
+
surface4: { color: "#f8e9cd", warning: false },
|
|
170
|
+
surface3: { color: "#fff", warning: false },
|
|
171
|
+
fgSurface4: { color: "#2f1800", warning: false },
|
|
172
|
+
fgSurface3: { color: "#966200", warning: false },
|
|
173
|
+
fgSurface2: { color: "#b58000", warning: false },
|
|
174
|
+
fgSurface1: { color: "#d7a02b", warning: false },
|
|
175
|
+
stroke3: { color: "#966200", warning: false },
|
|
176
|
+
stroke4: { color: "#724700", warning: false },
|
|
177
|
+
stroke2: { color: "#a08961", warning: false },
|
|
178
|
+
stroke1: { color: "#c2a777", warning: false },
|
|
179
|
+
bgFillDark: { color: "#1f1e1b", warning: false },
|
|
180
|
+
fgFillDark: { color: "#f3f0e9", warning: false },
|
|
181
|
+
bgFillInverted2: { color: "#1f1e1b", warning: false },
|
|
182
|
+
bgFillInverted1: { color: "#472900", warning: false },
|
|
183
|
+
fgFillInverted: { color: "#f3f0e9", warning: false },
|
|
184
|
+
surface1: { color: "#faefdb", warning: false }
|
|
185
|
+
},
|
|
186
|
+
direction: "darker"
|
|
187
|
+
},
|
|
188
|
+
error: {
|
|
189
|
+
ramp: {
|
|
190
|
+
bgFill1: { color: "#cc1818", warning: false },
|
|
191
|
+
fgFill: { color: "#f2efef", warning: false },
|
|
192
|
+
bgFill2: { color: "#b90000", warning: false },
|
|
193
|
+
surface2: { color: "#fdf6f5", warning: false },
|
|
194
|
+
surface6: { color: "#f5c5be", warning: false },
|
|
195
|
+
surface5: { color: "#f8d8d3", warning: false },
|
|
196
|
+
surface4: { color: "#fae6e2", warning: false },
|
|
197
|
+
surface3: { color: "#fff", warning: false },
|
|
198
|
+
fgSurface4: { color: "#4a0000", warning: false },
|
|
199
|
+
fgSurface3: { color: "#cc1818", warning: false },
|
|
200
|
+
fgSurface2: { color: "#f64b40", warning: false },
|
|
201
|
+
fgSurface1: { color: "#ff8070", warning: false },
|
|
202
|
+
stroke3: { color: "#cc1818", warning: false },
|
|
203
|
+
stroke4: { color: "#a40000", warning: false },
|
|
204
|
+
stroke2: { color: "#cd695d", warning: false },
|
|
205
|
+
stroke1: { color: "#dc9085", warning: false },
|
|
206
|
+
bgFillDark: { color: "#231c1b", warning: false },
|
|
207
|
+
fgFillDark: { color: "#f2efef", warning: false },
|
|
208
|
+
bgFillInverted2: { color: "#231c1b", warning: false },
|
|
209
|
+
bgFillInverted1: { color: "#6d0000", warning: false },
|
|
210
|
+
fgFillInverted: { color: "#f2efef", warning: false },
|
|
211
|
+
surface1: { color: "#fcecea", warning: false }
|
|
212
|
+
},
|
|
213
|
+
direction: "darker"
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
217
|
+
0 && (module.exports = {
|
|
218
|
+
DEFAULT_RAMPS
|
|
219
|
+
});
|
|
220
|
+
//# sourceMappingURL=default-ramps.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/color-ramps/lib/default-ramps.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Internal dependencies\n */\nimport type { RampResult } from './types';\nimport type { DEFAULT_SEED_COLORS } from './constants';\n\nexport const DEFAULT_RAMPS: Record<\n\tkeyof typeof DEFAULT_SEED_COLORS,\n\tRampResult\n> = {\n\tbg: {\n\t\tramp: {\n\t\t\tsurface2: { color: '#f8f8f8', warning: false },\n\t\t\tbgFill1: { color: '#555', warning: false },\n\t\t\tfgFill: { color: '#f0f0f0', warning: false },\n\t\t\tbgFill2: { color: '#474747', warning: false },\n\t\t\tsurface6: { color: '#d0d0d0', warning: false },\n\t\t\tsurface5: { color: '#dfdfdf', warning: false },\n\t\t\tsurface4: { color: '#eaeaea', warning: false },\n\t\t\tsurface3: { color: '#fff', warning: false },\n\t\t\tfgSurface4: { color: '#1e1e1e', warning: false },\n\t\t\tfgSurface3: { color: '#6d6d6d', warning: false },\n\t\t\tfgSurface2: { color: '#898989', warning: false },\n\t\t\tfgSurface1: { color: '#a9a9a9', warning: false },\n\t\t\tstroke3: { color: '#898989', warning: false },\n\t\t\tstroke4: { color: '#6a6a6a', warning: false },\n\t\t\tstroke2: { color: '#adadad', warning: false },\n\t\t\tstroke1: { color: '#d0d0d0', warning: false },\n\t\t\tbgFillDark: { color: '#1e1e1e', warning: false },\n\t\t\tfgFillDark: { color: '#f0f0f0', warning: false },\n\t\t\tbgFillInverted2: { color: '#1e1e1e', warning: false },\n\t\t\tbgFillInverted1: { color: '#2f2f2f', warning: false },\n\t\t\tfgFillInverted: { color: '#f0f0f0', warning: false },\n\t\t\tsurface1: { color: '#f0f0f0', warning: false },\n\t\t},\n\t\tdirection: 'darker',\n\t},\n\tprimary: {\n\t\tramp: {\n\t\t\tbgFill1: { color: '#3858e9', warning: false },\n\t\t\tfgFill: { color: '#eff0f2', warning: false },\n\t\t\tbgFill2: { color: '#2c47d7', warning: false },\n\t\t\tsurface2: { color: '#f6f8fc', warning: false },\n\t\t\tsurface6: { color: '#c4d0ee', warning: false },\n\t\t\tsurface5: { color: '#d8e0f3', warning: false },\n\t\t\tsurface4: { color: '#e5eaf7', warning: false },\n\t\t\tsurface3: { color: '#fff', warning: false },\n\t\t\tfgSurface4: { color: '#080071', warning: false },\n\t\t\tfgSurface3: { color: '#3858e9', warning: false },\n\t\t\tfgSurface2: { color: '#5780ff', warning: false },\n\t\t\tfgSurface1: { color: '#81a7ff', warning: false },\n\t\t\tstroke3: { color: '#3858e9', warning: false },\n\t\t\tstroke4: { color: '#2236c7', warning: false },\n\t\t\tstroke2: { color: '#6f85c0', warning: false },\n\t\t\tstroke1: { color: '#92a4cf', warning: false },\n\t\t\tbgFillDark: { color: '#1b1e26', warning: false },\n\t\t\tfgFillDark: { color: '#eff0f2', warning: false },\n\t\t\tbgFillInverted2: { color: '#1b1e26', warning: false },\n\t\t\tbgFillInverted1: { color: '#1401a4', warning: false },\n\t\t\tfgFillInverted: { color: '#eff0f2', warning: false },\n\t\t\tsurface1: { color: '#ecf0f9', warning: false },\n\t\t},\n\t\tdirection: 'darker',\n\t},\n\tinfo: {\n\t\tramp: {\n\t\t\tbgFill1: { color: '#0090ff', warning: false },\n\t\t\tfgFill: { color: '#1b1e23', warning: false },\n\t\t\tbgFill2: { color: '#007eec', warning: false },\n\t\t\tsurface2: { color: '#f5f9fd', warning: false },\n\t\t\tsurface6: { color: '#bad3f0', warning: false },\n\t\t\tsurface5: { color: '#d1e1f5', warning: false },\n\t\t\tsurface4: { color: '#e1ecf8', warning: false },\n\t\t\tsurface3: { color: '#fff', warning: false },\n\t\t\tfgSurface4: { color: '#001758', warning: false },\n\t\t\tfgSurface3: { color: '#006cd8', warning: false },\n\t\t\tfgSurface2: { color: '#008bfa', warning: false },\n\t\t\tfgSurface1: { color: '#4dafff', warning: false },\n\t\t\tstroke3: { color: '#006cd8', warning: false },\n\t\t\tstroke4: { color: '#004bb5', warning: false },\n\t\t\tstroke2: { color: '#5e90c7', warning: false },\n\t\t\tstroke1: { color: '#8baed6', warning: false },\n\t\t\tbgFillDark: { color: '#1b1e23', warning: false },\n\t\t\tfgFillDark: { color: '#eff0f2', warning: false },\n\t\t\tbgFillInverted2: { color: '#1b1e23', warning: false },\n\t\t\tbgFillInverted1: { color: '#00297a', warning: false },\n\t\t\tfgFillInverted: { color: '#eff0f2', warning: false },\n\t\t\tsurface1: { color: '#e9f1fa', warning: false },\n\t\t},\n\t\tdirection: 'darker',\n\t},\n\tsuccess: {\n\t\tramp: {\n\t\t\tbgFill1: { color: '#4ab866', warning: false },\n\t\t\tfgFill: { color: '#1b1f1c', warning: false },\n\t\t\tbgFill2: { color: '#34a554', warning: false },\n\t\t\tsurface2: { color: '#f0fcf2', warning: false },\n\t\t\tsurface6: { color: '#7be792', warning: false },\n\t\t\tsurface5: { color: '#acf0b7', warning: false },\n\t\t\tsurface4: { color: '#cdf5d3', warning: false },\n\t\t\tsurface3: { color: '#fff', warning: false },\n\t\t\tfgSurface4: { color: '#002b00', warning: false },\n\t\t\tfgSurface3: { color: '#008030', warning: false },\n\t\t\tfgSurface2: { color: '#2a9e4d', warning: false },\n\t\t\tfgSurface1: { color: '#52bf6d', warning: false },\n\t\t\tstroke3: { color: '#008030', warning: false },\n\t\t\tstroke4: { color: '#006113', warning: false },\n\t\t\tstroke2: { color: '#62996c', warning: false },\n\t\t\tstroke1: { color: '#78ba84', warning: false },\n\t\t\tbgFillDark: { color: '#1b1f1c', warning: false },\n\t\t\tfgFillDark: { color: '#edf2ed', warning: false },\n\t\t\tbgFillInverted2: { color: '#1b1f1c', warning: false },\n\t\t\tbgFillInverted1: { color: '#003a00', warning: false },\n\t\t\tfgFillInverted: { color: '#edf2ed', warning: false },\n\t\t\tsurface1: { color: '#ddf8e0', warning: false },\n\t\t},\n\t\tdirection: 'darker',\n\t},\n\tcaution: {\n\t\tramp: {\n\t\t\tbgFill1: { color: '#f0d149', warning: false },\n\t\t\tfgFill: { color: '#1f1e1b', warning: false },\n\t\t\tbgFill2: { color: '#dabb2b', warning: false },\n\t\t\tsurface2: { color: '#fdf9e7', warning: false },\n\t\t\tsurface6: { color: '#e7d070', warning: false },\n\t\t\tsurface5: { color: '#f4e08c', warning: false },\n\t\t\tsurface4: { color: '#f8ebb6', warning: false },\n\t\t\tsurface3: { color: '#fff', warning: false },\n\t\t\tfgSurface4: { color: '#291d00', warning: false },\n\t\t\tfgSurface3: { color: '#866a00', warning: false },\n\t\t\tfgSurface2: { color: '#a58700', warning: false },\n\t\t\tfgSurface1: { color: '#c6a800', warning: false },\n\t\t\tstroke3: { color: '#866a00', warning: false },\n\t\t\tstroke4: { color: '#644e00', warning: false },\n\t\t\tstroke2: { color: '#988d60', warning: false },\n\t\t\tstroke1: { color: '#b8ab76', warning: false },\n\t\t\tbgFillDark: { color: '#1f1e1b', warning: false },\n\t\t\tfgFillDark: { color: '#f6f1da', warning: false },\n\t\t\tbgFillInverted2: { color: '#1f1e1b', warning: false },\n\t\t\tbgFillInverted1: { color: '#3d2d00', warning: false },\n\t\t\tfgFillInverted: { color: '#f6f1da', warning: false },\n\t\t\tsurface1: { color: '#faf1cb', warning: false },\n\t\t},\n\t\tdirection: 'darker',\n\t},\n\twarning: {\n\t\tramp: {\n\t\t\tbgFill1: { color: '#f0b849', warning: false },\n\t\t\tfgFill: { color: '#1f1e1b', warning: false },\n\t\t\tbgFill2: { color: '#dba430', warning: false },\n\t\t\tsurface2: { color: '#fdf7ee', warning: false },\n\t\t\tsurface6: { color: '#f0cb89', warning: false },\n\t\t\tsurface5: { color: '#f5ddb2', warning: false },\n\t\t\tsurface4: { color: '#f8e9cd', warning: false },\n\t\t\tsurface3: { color: '#fff', warning: false },\n\t\t\tfgSurface4: { color: '#2f1800', warning: false },\n\t\t\tfgSurface3: { color: '#966200', warning: false },\n\t\t\tfgSurface2: { color: '#b58000', warning: false },\n\t\t\tfgSurface1: { color: '#d7a02b', warning: false },\n\t\t\tstroke3: { color: '#966200', warning: false },\n\t\t\tstroke4: { color: '#724700', warning: false },\n\t\t\tstroke2: { color: '#a08961', warning: false },\n\t\t\tstroke1: { color: '#c2a777', warning: false },\n\t\t\tbgFillDark: { color: '#1f1e1b', warning: false },\n\t\t\tfgFillDark: { color: '#f3f0e9', warning: false },\n\t\t\tbgFillInverted2: { color: '#1f1e1b', warning: false },\n\t\t\tbgFillInverted1: { color: '#472900', warning: false },\n\t\t\tfgFillInverted: { color: '#f3f0e9', warning: false },\n\t\t\tsurface1: { color: '#faefdb', warning: false },\n\t\t},\n\t\tdirection: 'darker',\n\t},\n\terror: {\n\t\tramp: {\n\t\t\tbgFill1: { color: '#cc1818', warning: false },\n\t\t\tfgFill: { color: '#f2efef', warning: false },\n\t\t\tbgFill2: { color: '#b90000', warning: false },\n\t\t\tsurface2: { color: '#fdf6f5', warning: false },\n\t\t\tsurface6: { color: '#f5c5be', warning: false },\n\t\t\tsurface5: { color: '#f8d8d3', warning: false },\n\t\t\tsurface4: { color: '#fae6e2', warning: false },\n\t\t\tsurface3: { color: '#fff', warning: false },\n\t\t\tfgSurface4: { color: '#4a0000', warning: false },\n\t\t\tfgSurface3: { color: '#cc1818', warning: false },\n\t\t\tfgSurface2: { color: '#f64b40', warning: false },\n\t\t\tfgSurface1: { color: '#ff8070', warning: false },\n\t\t\tstroke3: { color: '#cc1818', warning: false },\n\t\t\tstroke4: { color: '#a40000', warning: false },\n\t\t\tstroke2: { color: '#cd695d', warning: false },\n\t\t\tstroke1: { color: '#dc9085', warning: false },\n\t\t\tbgFillDark: { color: '#231c1b', warning: false },\n\t\t\tfgFillDark: { color: '#f2efef', warning: false },\n\t\t\tbgFillInverted2: { color: '#231c1b', warning: false },\n\t\t\tbgFillInverted1: { color: '#6d0000', warning: false },\n\t\t\tfgFillInverted: { color: '#f2efef', warning: false },\n\t\t\tsurface1: { color: '#fcecea', warning: false },\n\t\t},\n\t\tdirection: 'darker',\n\t},\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,IAAM,gBAGT;AAAA,EACH,IAAI;AAAA,IACH,MAAM;AAAA,MACL,UAAU,EAAE,OAAO,WAAW,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AAM;AAAA,MAC/C,YAAY,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MAC/C,YAAY,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MAC/C,YAAY,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MAC/C,SAAS,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MAC5C,SAAS,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MAC5C,SAAS,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MAC5C,SAAS,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MAC5C,YAAY,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MAC/C,YAAY,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MAC/C,iBAAiB,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MACpD,iBAAiB,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MACpD,gBAAgB,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,MACnD,UAAU,EAAE,OAAO,WAAW,SAAS,MAAM;AAAA,IAC9C;AAAA,IACA,WAAW;AAAA,EACZ;AACD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
1
|
var __defProp = Object.defineProperty;
|
|
4
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
5
|
var __export = (target, all) => {
|
|
9
6
|
for (var name in all)
|
|
@@ -17,55 +14,48 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
14
|
}
|
|
18
15
|
return to;
|
|
19
16
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/theme/src/color-ramps/lib/find-color-with-constraints.ts
|
|
29
20
|
var find_color_with_constraints_exports = {};
|
|
30
21
|
__export(find_color_with_constraints_exports, {
|
|
31
22
|
findColorMeetingRequirements: () => findColorMeetingRequirements
|
|
32
23
|
});
|
|
33
24
|
module.exports = __toCommonJS(find_color_with_constraints_exports);
|
|
34
|
-
var
|
|
25
|
+
var import_fn = require("colorjs.io/fn");
|
|
26
|
+
var import_register_color_spaces = require("./register-color-spaces");
|
|
35
27
|
var import_utils = require("./utils");
|
|
36
28
|
var import_constants = require("./constants");
|
|
37
|
-
var
|
|
29
|
+
var import_color_utils = require("./color-utils");
|
|
38
30
|
var import_taper_chroma = require("./taper-chroma");
|
|
39
31
|
function findColorMeetingRequirements(reference, seed, target, direction, {
|
|
40
32
|
lightnessConstraint,
|
|
41
33
|
taperChromaOptions,
|
|
42
|
-
strict = true
|
|
43
|
-
debug = false
|
|
34
|
+
strict = true
|
|
44
35
|
} = {}) {
|
|
45
36
|
if (target <= 1) {
|
|
46
|
-
return { color: seed
|
|
37
|
+
return { color: seed, reached: true, achieved: 1 };
|
|
47
38
|
}
|
|
48
|
-
|
|
49
|
-
let newL =
|
|
50
|
-
let newC = seed.
|
|
39
|
+
function getColorForL(l) {
|
|
40
|
+
let newL = l;
|
|
41
|
+
let newC = (0, import_fn.get)(seed, [import_fn.OKLCH, "c"]);
|
|
51
42
|
if (taperChromaOptions) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
newL
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
new import_colorjs.default("oklch", [newL, newC, seed.oklch.h])
|
|
60
|
-
);
|
|
61
|
-
const exactLContrast = (0, import_cache_utils.getCachedContrast)(reference, colorWithExactL);
|
|
62
|
-
if (debug) {
|
|
63
|
-
console.log(
|
|
64
|
-
`Succeeded with ${lightnessConstraint.type} lightness`,
|
|
65
|
-
lightnessConstraint.value,
|
|
66
|
-
colorWithExactL.oklch.l
|
|
67
|
-
);
|
|
43
|
+
const tapered = (0, import_taper_chroma.taperChroma)(seed, newL, taperChromaOptions);
|
|
44
|
+
if ("l" in tapered && "c" in tapered) {
|
|
45
|
+
newL = tapered.l;
|
|
46
|
+
newC = tapered.c;
|
|
47
|
+
} else {
|
|
48
|
+
return tapered;
|
|
49
|
+
}
|
|
68
50
|
}
|
|
51
|
+
return (0, import_utils.clampToGamut)({
|
|
52
|
+
spaceId: "oklch",
|
|
53
|
+
coords: [newL, newC, (0, import_fn.get)(seed, [import_fn.OKLCH, "h"])]
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
if (lightnessConstraint) {
|
|
57
|
+
const colorWithExactL = getColorForL(lightnessConstraint.value);
|
|
58
|
+
const exactLContrast = (0, import_color_utils.getContrast)(reference, colorWithExactL);
|
|
69
59
|
if (lightnessConstraint.type === "force" || exactLContrast >= target) {
|
|
70
60
|
return {
|
|
71
61
|
color: colorWithExactL,
|
|
@@ -76,62 +66,58 @@ function findColorMeetingRequirements(reference, seed, target, direction, {
|
|
|
76
66
|
}
|
|
77
67
|
const mostContrastingL = direction === "lighter" ? 1 : 0;
|
|
78
68
|
const mostContrastingColor = direction === "lighter" ? import_constants.WHITE : import_constants.BLACK;
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
mostContrastingColor
|
|
82
|
-
);
|
|
83
|
-
if (highestPossibleContrast < target) {
|
|
69
|
+
const highestContrast = (0, import_color_utils.getContrast)(reference, mostContrastingColor);
|
|
70
|
+
if (highestContrast < target) {
|
|
84
71
|
if (strict) {
|
|
85
72
|
throw new Error(
|
|
86
73
|
`Contrast target ${target.toFixed(
|
|
87
74
|
2
|
|
88
|
-
)}:1 unreachable in ${direction} direction
|
|
89
|
-
3
|
|
90
|
-
)}:1).`
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
if (debug) {
|
|
94
|
-
console.log(
|
|
95
|
-
"Did not succeeded because it reached the limit",
|
|
96
|
-
mostContrastingL
|
|
75
|
+
)}:1 unreachable in ${direction} direction(boundary achieves ${highestContrast.toFixed(3)}:1).`
|
|
97
76
|
);
|
|
98
77
|
}
|
|
99
78
|
return {
|
|
100
79
|
color: mostContrastingColor,
|
|
101
80
|
reached: false,
|
|
102
|
-
achieved:
|
|
81
|
+
achieved: highestContrast
|
|
103
82
|
};
|
|
104
83
|
}
|
|
105
|
-
let worseL = reference.
|
|
84
|
+
let worseL = (0, import_fn.get)(reference, [import_fn.OKLCH, "l"]);
|
|
85
|
+
let worseContrast = 1;
|
|
86
|
+
let replacedWorse = false;
|
|
106
87
|
let betterL = mostContrastingL;
|
|
107
|
-
let
|
|
108
|
-
let
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
));
|
|
88
|
+
let betterContrast = highestContrast;
|
|
89
|
+
let replacedBetter = false;
|
|
90
|
+
let bestColor = mostContrastingColor;
|
|
91
|
+
let bestContrast = highestContrast;
|
|
92
|
+
for (let i = 0; i < import_constants.MAX_BISECTION_ITERATIONS; i++) {
|
|
93
|
+
const newL = (worseL * (betterContrast - target) - betterL * (worseContrast - target)) / (betterContrast - worseContrast);
|
|
94
|
+
bestColor = getColorForL(newL);
|
|
95
|
+
bestContrast = (0, import_color_utils.getContrast)(reference, bestColor);
|
|
96
|
+
if (Math.abs(bestContrast - target) <= import_constants.LIGHTNESS_EPSILON) {
|
|
97
|
+
break;
|
|
118
98
|
}
|
|
119
|
-
|
|
120
|
-
new import_colorjs.default("oklch", [newL, newC, seed.oklch.h])
|
|
121
|
-
);
|
|
122
|
-
const newContrast = (0, import_cache_utils.getCachedContrast)(reference, newColor);
|
|
123
|
-
if (newContrast >= target) {
|
|
99
|
+
if (bestContrast >= target) {
|
|
124
100
|
betterL = newL;
|
|
125
|
-
|
|
126
|
-
|
|
101
|
+
betterContrast = bestContrast;
|
|
102
|
+
if (replacedBetter) {
|
|
103
|
+
worseContrast = (worseContrast + target) / 2;
|
|
104
|
+
}
|
|
105
|
+
replacedBetter = true;
|
|
106
|
+
replacedWorse = false;
|
|
127
107
|
} else {
|
|
128
108
|
worseL = newL;
|
|
109
|
+
worseContrast = bestContrast;
|
|
110
|
+
if (replacedWorse) {
|
|
111
|
+
betterContrast = (betterContrast + target) / 2;
|
|
112
|
+
}
|
|
113
|
+
replacedWorse = true;
|
|
114
|
+
replacedBetter = false;
|
|
129
115
|
}
|
|
130
116
|
}
|
|
131
117
|
return {
|
|
132
|
-
color:
|
|
118
|
+
color: bestColor,
|
|
133
119
|
reached: true,
|
|
134
|
-
achieved:
|
|
120
|
+
achieved: bestContrast
|
|
135
121
|
};
|
|
136
122
|
}
|
|
137
123
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/color-ramps/lib/find-color-with-constraints.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * External dependencies\n */\nimport
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
4
|
+
"sourcesContent": ["/**\n * External dependencies\n */\nimport { get, OKLCH, type ColorTypes } from 'colorjs.io/fn';\n\n/**\n * Internal dependencies\n */\nimport './register-color-spaces';\nimport { clampToGamut } from './utils';\nimport {\n\tWHITE,\n\tBLACK,\n\tLIGHTNESS_EPSILON,\n\tMAX_BISECTION_ITERATIONS,\n} from './constants';\nimport { getContrast } from './color-utils';\nimport { type TaperChromaOptions, taperChroma } from './taper-chroma';\n\n/**\n * Solve for L such that:\n * - the L applied to the seed meets the contrast target against the reference\n * - the search is performed in one direction (ie lighter / darker)\n * - more constraints can be applied around lightness\n * - chroma could be tapered\n * @param reference\n * @param seed\n * @param target\n * @param direction\n * @param options\n * @param options.strict\n * @param options.lightnessConstraint\n * @param options.lightnessConstraint.type\n * @param options.lightnessConstraint.value\n * @param options.taperChromaOptions\n */\nexport function findColorMeetingRequirements(\n\treference: ColorTypes,\n\tseed: ColorTypes,\n\ttarget: number,\n\tdirection: 'lighter' | 'darker',\n\t{\n\t\tlightnessConstraint,\n\t\ttaperChromaOptions,\n\t\tstrict = true,\n\t}: {\n\t\tlightnessConstraint?: {\n\t\t\ttype: 'force' | 'onlyIfSucceeds';\n\t\t\tvalue: number;\n\t\t};\n\t\ttaperChromaOptions?: TaperChromaOptions;\n\t\tstrict?: boolean;\n\t} = {}\n): { color: ColorTypes; reached: boolean; achieved: number } {\n\t// A target of 1 means same color.\n\t// A target lower than 1 doesn't make sense.\n\tif ( target <= 1 ) {\n\t\treturn { color: seed, reached: true, achieved: 1 };\n\t}\n\n\tfunction getColorForL( l: number ): ColorTypes {\n\t\tlet newL = l;\n\t\tlet newC = get( seed, [ OKLCH, 'c' ] );\n\n\t\tif ( taperChromaOptions ) {\n\t\t\tconst tapered = taperChroma( seed, newL, taperChromaOptions );\n\t\t\t// taperChroma returns either { l, c } or a ColorObject\n\t\t\tif ( 'l' in tapered && 'c' in tapered ) {\n\t\t\t\tnewL = tapered.l;\n\t\t\t\tnewC = tapered.c;\n\t\t\t} else {\n\t\t\t\t// It's already a ColorObject, return it directly\n\t\t\t\treturn tapered;\n\t\t\t}\n\t\t}\n\n\t\treturn clampToGamut( {\n\t\t\tspaceId: 'oklch',\n\t\t\tcoords: [ newL, newC, get( seed, [ OKLCH, 'h' ] ) ],\n\t\t} );\n\t}\n\n\tif ( lightnessConstraint ) {\n\t\t// Apply a specific L value.\n\t\t// Useful when pinning a step to a specific lightness, of to specify\n\t\t// min/max L values.\n\t\tconst colorWithExactL = getColorForL( lightnessConstraint.value );\n\t\tconst exactLContrast = getContrast( reference, colorWithExactL );\n\n\t\t// If the L constraint is of \"force\" type, apply it even when it doesn't\n\t\t// meet the contrast target.\n\t\tif (\n\t\t\tlightnessConstraint.type === 'force' ||\n\t\t\texactLContrast >= target\n\t\t) {\n\t\t\treturn {\n\t\t\t\tcolor: colorWithExactL,\n\t\t\t\treached: exactLContrast >= target,\n\t\t\t\tachieved: exactLContrast,\n\t\t\t};\n\t\t}\n\t}\n\n\t// Set the boundary based on the direction.\n\tconst mostContrastingL = direction === 'lighter' ? 1 : 0;\n\tconst mostContrastingColor = direction === 'lighter' ? WHITE : BLACK;\n\tconst highestContrast = getContrast( reference, mostContrastingColor );\n\n\t// If even the most contrasting color can't reach the target,\n\t// the target is unreachable.\n\tif ( highestContrast < target ) {\n\t\tif ( strict ) {\n\t\t\tthrow new Error(\n\t\t\t\t`Contrast target ${ target.toFixed(\n\t\t\t\t\t2\n\t\t\t\t) }:1 unreachable in ${ direction } direction` +\n\t\t\t\t\t`(boundary achieves ${ highestContrast.toFixed( 3 ) }:1).`\n\t\t\t);\n\t\t}\n\n\t\treturn {\n\t\t\tcolor: mostContrastingColor,\n\t\t\treached: false,\n\t\t\tachieved: highestContrast,\n\t\t};\n\t}\n\n\t// Bracket: low fails, high meets.\n\t// Originally this was seed.oklch.l \u2014 although it's an assumption that works\n\t// only when we know for sure the direction of the search.\n\t// TODO: can we bring this back to seed.oklch.l ?\n\tlet worseL = get( reference, [ OKLCH, 'l' ] );\n\tlet worseContrast = 1;\n\tlet replacedWorse = false;\n\tlet betterL = mostContrastingL;\n\tlet betterContrast = highestContrast;\n\tlet replacedBetter = false;\n\n\tlet bestColor: ColorTypes = mostContrastingColor;\n\tlet bestContrast = highestContrast;\n\n\tfor ( let i = 0; i < MAX_BISECTION_ITERATIONS; i++ ) {\n\t\t// Linear interpolation between worse and better L values, weighted by the contrast difference.\n\t\tconst newL =\n\t\t\t( worseL * ( betterContrast - target ) -\n\t\t\t\tbetterL * ( worseContrast - target ) ) /\n\t\t\t( betterContrast - worseContrast );\n\n\t\tbestColor = getColorForL( newL );\n\t\tbestContrast = getContrast( reference, bestColor );\n\n\t\tif ( Math.abs( bestContrast - target ) <= LIGHTNESS_EPSILON ) {\n\t\t\tbreak;\n\t\t}\n\n\t\t// Update one of the boundary L values, using the Illinois method.\n\t\tif ( bestContrast >= target ) {\n\t\t\tbetterL = newL;\n\t\t\tbetterContrast = bestContrast;\n\t\t\tif ( replacedBetter ) {\n\t\t\t\tworseContrast = ( worseContrast + target ) / 2;\n\t\t\t}\n\t\t\treplacedBetter = true;\n\t\t\treplacedWorse = false;\n\t\t} else {\n\t\t\tworseL = newL;\n\t\t\tworseContrast = bestContrast;\n\t\t\tif ( replacedWorse ) {\n\t\t\t\tbetterContrast = ( betterContrast + target ) / 2;\n\t\t\t}\n\t\t\treplacedWorse = true;\n\t\t\treplacedBetter = false;\n\t\t}\n\t}\n\n\treturn {\n\t\tcolor: bestColor,\n\t\treached: true,\n\t\tachieved: bestContrast,\n\t};\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,gBAA4C;AAK5C,mCAAO;AACP,mBAA6B;AAC7B,uBAKO;AACP,yBAA4B;AAC5B,0BAAqD;AAmB9C,SAAS,6BACf,WACA,MACA,QACA,WACA;AAAA,EACC;AAAA,EACA;AAAA,EACA,SAAS;AACV,IAOI,CAAC,GACuD;AAG5D,MAAK,UAAU,GAAI;AAClB,WAAO,EAAE,OAAO,MAAM,SAAS,MAAM,UAAU,EAAE;AAAA,EAClD;AAEA,WAAS,aAAc,GAAwB;AAC9C,QAAI,OAAO;AACX,QAAI,WAAO,eAAK,MAAM,CAAE,iBAAO,GAAI,CAAE;AAErC,QAAK,oBAAqB;AACzB,YAAM,cAA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