eva-css-ycode 1.0.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 +170 -0
- package/dist/cli.js +443 -0
- package/dist/index.d.mts +56 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.js +372 -0
- package/dist/index.mjs +342 -0
- package/package.json +30 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/** Intensity levels matching eva-css SCSS convention */
|
|
2
|
+
type Intensity = '__' | '_' | '' | '-';
|
|
3
|
+
/** Intensity levels for font-size (3 levels only, matching SCSS) */
|
|
4
|
+
type FontIntensity = '__' | '_' | '';
|
|
5
|
+
interface EvaYcodeConfig {
|
|
6
|
+
/** Spacing sizes in px from Figma tokens */
|
|
7
|
+
sizes: number[];
|
|
8
|
+
/** Font sizes in px from Figma tokens */
|
|
9
|
+
fontSizes: number[];
|
|
10
|
+
/** Reference screen width (default: 1440) */
|
|
11
|
+
screen?: number;
|
|
12
|
+
/** Spacing ratio multiplier — golden ratio (default: 1.61803398875) */
|
|
13
|
+
phi?: number;
|
|
14
|
+
/** Font ratio multiplier (default: 1.3) */
|
|
15
|
+
fontPhi?: number;
|
|
16
|
+
/** Min fluid factor for spacing (default: 0.5) */
|
|
17
|
+
min?: number;
|
|
18
|
+
/** Min fluid factor for fonts (default: 0.5 — matches SCSS where getMinRem uses module-level $min) */
|
|
19
|
+
fontMin?: number;
|
|
20
|
+
/** Max fluid factor (default: 1) */
|
|
21
|
+
max?: number;
|
|
22
|
+
/** Extreme intensity factor (default: 142.4) */
|
|
23
|
+
ez?: number;
|
|
24
|
+
/** Default intensity (default: '') */
|
|
25
|
+
defaultIntensity?: Intensity;
|
|
26
|
+
}
|
|
27
|
+
interface ResolvedConfig {
|
|
28
|
+
sizes: number[];
|
|
29
|
+
fontSizes: number[];
|
|
30
|
+
screen: number;
|
|
31
|
+
phi: number;
|
|
32
|
+
fontPhi: number;
|
|
33
|
+
min: number;
|
|
34
|
+
fontMin: number;
|
|
35
|
+
max: number;
|
|
36
|
+
ez: number;
|
|
37
|
+
defaultIntensity: Intensity;
|
|
38
|
+
}
|
|
39
|
+
/** Map of Tailwind prefix → CSS property for spacing/layout */
|
|
40
|
+
declare const PROPERTY_MAP: Record<string, string>;
|
|
41
|
+
/** Font property map — uses --fs-XX vars */
|
|
42
|
+
declare const FONT_PROPERTY_MAP: Record<string, string>;
|
|
43
|
+
declare function resolveConfig(config: EvaYcodeConfig): ResolvedConfig;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* CSS Bridge Generator
|
|
47
|
+
*
|
|
48
|
+
* Generates 3 sections:
|
|
49
|
+
* A) :root CSS custom properties (clamp vars)
|
|
50
|
+
* B) Tailwind arbitrary class overrides (default intensity)
|
|
51
|
+
* C) [data-eva] per-section intensity selectors
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
declare function generateBridge(config: EvaYcodeConfig): string;
|
|
55
|
+
|
|
56
|
+
export { type EvaYcodeConfig, FONT_PROPERTY_MAP, type FontIntensity, type Intensity, PROPERTY_MAP, type ResolvedConfig, generateBridge, resolveConfig };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
FONT_PROPERTY_MAP: () => FONT_PROPERTY_MAP,
|
|
24
|
+
PROPERTY_MAP: () => PROPERTY_MAP,
|
|
25
|
+
generateBridge: () => generateBridge,
|
|
26
|
+
resolveConfig: () => resolveConfig
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(index_exports);
|
|
29
|
+
|
|
30
|
+
// src/clamp.ts
|
|
31
|
+
function round2(n) {
|
|
32
|
+
return Math.round(n * 100) / 100;
|
|
33
|
+
}
|
|
34
|
+
function getPercent(size, screen, ratio = 100) {
|
|
35
|
+
return round2(size / screen * ratio);
|
|
36
|
+
}
|
|
37
|
+
function toRem(size) {
|
|
38
|
+
return size / 16;
|
|
39
|
+
}
|
|
40
|
+
function getMinRem(percent, min) {
|
|
41
|
+
return round2(percent * min);
|
|
42
|
+
}
|
|
43
|
+
function getMaxRem(percent, max) {
|
|
44
|
+
return round2(percent * max);
|
|
45
|
+
}
|
|
46
|
+
function getVW(percent) {
|
|
47
|
+
return round2(percent);
|
|
48
|
+
}
|
|
49
|
+
function getFinalMinDiv(size, ratio) {
|
|
50
|
+
return round2(size / ratio);
|
|
51
|
+
}
|
|
52
|
+
function getFinalMinMulti(size, ratio) {
|
|
53
|
+
return round2(size * ratio);
|
|
54
|
+
}
|
|
55
|
+
function vwLight(calcPercent, sizeRem) {
|
|
56
|
+
return {
|
|
57
|
+
vw: round2(getVW(calcPercent) / 4),
|
|
58
|
+
offset: round2(sizeRem / 1.33)
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function vwMedium(calcPercent, sizeRem) {
|
|
62
|
+
return {
|
|
63
|
+
vw: round2(getVW(calcPercent) / 2),
|
|
64
|
+
offset: round2(sizeRem / 2)
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function vwStrong(calcPercent, sizeRem) {
|
|
68
|
+
return {
|
|
69
|
+
vw: round2(getVW(calcPercent) / 1.33),
|
|
70
|
+
offset: round2(sizeRem / 4)
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function vwExtrem(calcPercentEz, remMin) {
|
|
74
|
+
return {
|
|
75
|
+
vw: getVW(calcPercentEz),
|
|
76
|
+
offset: round2(-remMin)
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function formatClamp(min, fluid, max) {
|
|
80
|
+
const minStr = `${round2(min)}rem`;
|
|
81
|
+
const maxStr = `${round2(max)}rem`;
|
|
82
|
+
const sign = fluid.offset >= 0 ? "+" : "-";
|
|
83
|
+
const absOffset = round2(Math.abs(fluid.offset));
|
|
84
|
+
const fluidStr = `${fluid.vw}vw ${sign} ${absOffset}rem`;
|
|
85
|
+
return `clamp(${minStr}, ${fluidStr}, ${maxStr})`;
|
|
86
|
+
}
|
|
87
|
+
function generateSpacingClamp(sizePx, screen, phi, min, max, ez, intensity) {
|
|
88
|
+
const calcPercent = getPercent(sizePx, screen);
|
|
89
|
+
const calcPercentEz = getPercent(sizePx, screen, ez);
|
|
90
|
+
const sizeRem = toRem(sizePx);
|
|
91
|
+
const remMin = getMinRem(calcPercent, min);
|
|
92
|
+
const remMax = getMaxRem(calcPercent, max);
|
|
93
|
+
switch (intensity) {
|
|
94
|
+
// __ = extreme (most fluid)
|
|
95
|
+
case "__": {
|
|
96
|
+
const fluid = vwExtrem(calcPercentEz, remMin);
|
|
97
|
+
return formatClamp(min, fluid, remMax);
|
|
98
|
+
}
|
|
99
|
+
// _ = strong
|
|
100
|
+
case "_": {
|
|
101
|
+
const finalMin = getFinalMinDiv(remMin, phi);
|
|
102
|
+
const fluid = vwStrong(calcPercent, sizeRem);
|
|
103
|
+
return formatClamp(finalMin, fluid, remMax);
|
|
104
|
+
}
|
|
105
|
+
// '' = normal (default)
|
|
106
|
+
case "": {
|
|
107
|
+
const fluid = vwMedium(calcPercent, sizeRem);
|
|
108
|
+
return formatClamp(remMin, fluid, remMax);
|
|
109
|
+
}
|
|
110
|
+
// - = light (least fluid)
|
|
111
|
+
case "-": {
|
|
112
|
+
const finalMin = getFinalMinMulti(remMin, phi);
|
|
113
|
+
const fluid = vwLight(calcPercent, sizeRem);
|
|
114
|
+
return formatClamp(finalMin, fluid, remMax);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function generateFontClamp(sizePx, screen, phi, min, max, intensity) {
|
|
119
|
+
const calcPercent = getPercent(sizePx, screen);
|
|
120
|
+
const sizeRem = toRem(sizePx);
|
|
121
|
+
const remMin = getMinRem(calcPercent, min);
|
|
122
|
+
const remMax = getMaxRem(calcPercent, max);
|
|
123
|
+
switch (intensity) {
|
|
124
|
+
// __ = most fluid (uses vw-strong + min/phi)
|
|
125
|
+
case "__": {
|
|
126
|
+
const finalMin = getFinalMinDiv(remMin, phi);
|
|
127
|
+
const fluid = vwStrong(calcPercent, sizeRem);
|
|
128
|
+
return formatClamp(finalMin, fluid, remMax);
|
|
129
|
+
}
|
|
130
|
+
// _ = medium (uses vw-medium + remMin)
|
|
131
|
+
case "_": {
|
|
132
|
+
const fluid = vwMedium(calcPercent, sizeRem);
|
|
133
|
+
return formatClamp(remMin, fluid, remMax);
|
|
134
|
+
}
|
|
135
|
+
// '' = least fluid (uses vw-light + min*phi)
|
|
136
|
+
case "": {
|
|
137
|
+
const finalMin = getFinalMinMulti(remMin, phi);
|
|
138
|
+
const fluid = vwLight(calcPercent, sizeRem);
|
|
139
|
+
return formatClamp(finalMin, fluid, remMax);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// src/types.ts
|
|
145
|
+
var PROPERTY_MAP = {
|
|
146
|
+
// Sizing
|
|
147
|
+
h: "height",
|
|
148
|
+
w: "width",
|
|
149
|
+
"min-h": "min-height",
|
|
150
|
+
"min-w": "min-width",
|
|
151
|
+
"max-w": "max-width",
|
|
152
|
+
"max-h": "max-height",
|
|
153
|
+
// Padding
|
|
154
|
+
p: "padding",
|
|
155
|
+
px: "padding-inline",
|
|
156
|
+
py: "padding-block",
|
|
157
|
+
pt: "padding-top",
|
|
158
|
+
pr: "padding-right",
|
|
159
|
+
pb: "padding-bottom",
|
|
160
|
+
pl: "padding-left",
|
|
161
|
+
// Margin
|
|
162
|
+
m: "margin",
|
|
163
|
+
mx: "margin-inline",
|
|
164
|
+
my: "margin-block",
|
|
165
|
+
mt: "margin-top",
|
|
166
|
+
mr: "margin-right",
|
|
167
|
+
mb: "margin-bottom",
|
|
168
|
+
ml: "margin-left",
|
|
169
|
+
// Layout
|
|
170
|
+
gap: "gap",
|
|
171
|
+
// Borders
|
|
172
|
+
rounded: "border-radius"
|
|
173
|
+
};
|
|
174
|
+
var FONT_PROPERTY_MAP = {
|
|
175
|
+
text: "font-size"
|
|
176
|
+
};
|
|
177
|
+
var SPACING_INTENSITIES = ["__", "_", "", "-"];
|
|
178
|
+
var FONT_INTENSITIES = ["__", "_", ""];
|
|
179
|
+
var DATA_EVA_MAP = {
|
|
180
|
+
extreme: "__",
|
|
181
|
+
strong: "_",
|
|
182
|
+
// normal = default (no data-eva needed)
|
|
183
|
+
light: "-"
|
|
184
|
+
};
|
|
185
|
+
var DATA_EVA_FONT_MAP = {
|
|
186
|
+
extreme: "__",
|
|
187
|
+
strong: "_"
|
|
188
|
+
// normal = default (no data-eva needed)
|
|
189
|
+
};
|
|
190
|
+
function resolveConfig(config) {
|
|
191
|
+
return {
|
|
192
|
+
sizes: config.sizes,
|
|
193
|
+
fontSizes: config.fontSizes,
|
|
194
|
+
screen: config.screen ?? 1440,
|
|
195
|
+
phi: config.phi ?? 1.61803398875,
|
|
196
|
+
fontPhi: config.fontPhi ?? 1.3,
|
|
197
|
+
min: config.min ?? 0.5,
|
|
198
|
+
fontMin: config.fontMin ?? 0.5,
|
|
199
|
+
max: config.max ?? 1,
|
|
200
|
+
ez: config.ez ?? 142.4,
|
|
201
|
+
defaultIntensity: config.defaultIntensity ?? ""
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// src/generator.ts
|
|
206
|
+
function escapeTwClass(prefix, value) {
|
|
207
|
+
return `.${prefix}-\\[${value}\\]`;
|
|
208
|
+
}
|
|
209
|
+
function generateRootVars(cfg) {
|
|
210
|
+
const lines = [":root {"];
|
|
211
|
+
for (const size of cfg.sizes) {
|
|
212
|
+
lines.push(` /* ---- ${size}px ---- */`);
|
|
213
|
+
for (const intensity of SPACING_INTENSITIES) {
|
|
214
|
+
const clamp = generateSpacingClamp(
|
|
215
|
+
size,
|
|
216
|
+
cfg.screen,
|
|
217
|
+
cfg.phi,
|
|
218
|
+
cfg.min,
|
|
219
|
+
cfg.max,
|
|
220
|
+
cfg.ez,
|
|
221
|
+
intensity
|
|
222
|
+
);
|
|
223
|
+
lines.push(` --${size}${intensity}: ${clamp};`);
|
|
224
|
+
}
|
|
225
|
+
lines.push("");
|
|
226
|
+
}
|
|
227
|
+
for (const size of cfg.fontSizes) {
|
|
228
|
+
lines.push(` /* ---- fs-${size}px ---- */`);
|
|
229
|
+
for (const intensity of FONT_INTENSITIES) {
|
|
230
|
+
const clamp = generateFontClamp(
|
|
231
|
+
size,
|
|
232
|
+
cfg.screen,
|
|
233
|
+
cfg.fontPhi,
|
|
234
|
+
cfg.fontMin,
|
|
235
|
+
cfg.max,
|
|
236
|
+
intensity
|
|
237
|
+
);
|
|
238
|
+
lines.push(` --fs-${size}${intensity}: ${clamp};`);
|
|
239
|
+
}
|
|
240
|
+
lines.push("");
|
|
241
|
+
}
|
|
242
|
+
lines.push("}");
|
|
243
|
+
return lines.join("\n");
|
|
244
|
+
}
|
|
245
|
+
function generateDefaultOverrides(cfg) {
|
|
246
|
+
const lines = [];
|
|
247
|
+
const suffix = cfg.defaultIntensity;
|
|
248
|
+
for (const size of cfg.sizes) {
|
|
249
|
+
lines.push(`/* ---- ${size}px ---- */`);
|
|
250
|
+
const varRef = `var(--${size}${suffix})`;
|
|
251
|
+
for (const [twPrefix, cssProp] of Object.entries(PROPERTY_MAP)) {
|
|
252
|
+
lines.push(`${escapeTwClass(twPrefix, `${size}px`)} { ${cssProp}: ${varRef} }`);
|
|
253
|
+
}
|
|
254
|
+
lines.push("");
|
|
255
|
+
}
|
|
256
|
+
const fontSuffix = cfg.defaultIntensity === "-" ? "" : cfg.defaultIntensity;
|
|
257
|
+
for (const size of cfg.fontSizes) {
|
|
258
|
+
const varRef = `var(--fs-${size}${fontSuffix})`;
|
|
259
|
+
for (const [twPrefix, cssProp] of Object.entries(FONT_PROPERTY_MAP)) {
|
|
260
|
+
lines.push(`${escapeTwClass(twPrefix, `${size}px`)} { ${cssProp}: ${varRef} }`);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
lines.push("");
|
|
264
|
+
const allSizes = /* @__PURE__ */ new Set([...cfg.sizes]);
|
|
265
|
+
const remEntries = [];
|
|
266
|
+
for (const size of allSizes) {
|
|
267
|
+
const rem = size / 16;
|
|
268
|
+
if (rem === Math.round(rem * 100) / 100 && rem > 0) {
|
|
269
|
+
remEntries.push({ rem, size });
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
if (remEntries.length > 0) {
|
|
273
|
+
lines.push("/* ---- rem mappings ---- */");
|
|
274
|
+
for (const { rem, size } of remEntries) {
|
|
275
|
+
const remStr = rem % 1 === 0 ? `${rem}rem` : `${rem}rem`;
|
|
276
|
+
const varRef = `var(--${size}${suffix})`;
|
|
277
|
+
for (const [twPrefix, cssProp] of Object.entries(PROPERTY_MAP)) {
|
|
278
|
+
lines.push(`${escapeTwClass(twPrefix, remStr)} { ${cssProp}: ${varRef} }`);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
lines.push("");
|
|
282
|
+
}
|
|
283
|
+
const fontRemEntries = [];
|
|
284
|
+
for (const size of cfg.fontSizes) {
|
|
285
|
+
const rem = size / 16;
|
|
286
|
+
if (rem === Math.round(rem * 100) / 100 && rem > 0) {
|
|
287
|
+
fontRemEntries.push({ rem, size });
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
if (fontRemEntries.length > 0) {
|
|
291
|
+
for (const { rem, size } of fontRemEntries) {
|
|
292
|
+
const remStr = rem % 1 === 0 ? `${rem}rem` : `${rem}rem`;
|
|
293
|
+
const varRef = `var(--fs-${size}${fontSuffix})`;
|
|
294
|
+
for (const [twPrefix, cssProp] of Object.entries(FONT_PROPERTY_MAP)) {
|
|
295
|
+
lines.push(`${escapeTwClass(twPrefix, remStr)} { ${cssProp}: ${varRef} }`);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
lines.push("");
|
|
299
|
+
}
|
|
300
|
+
return lines.join("\n");
|
|
301
|
+
}
|
|
302
|
+
function generateResponsiveOverrides(cfg) {
|
|
303
|
+
const lines = [];
|
|
304
|
+
const suffix = cfg.defaultIntensity;
|
|
305
|
+
const fontSuffix = cfg.defaultIntensity === "-" ? "" : cfg.defaultIntensity;
|
|
306
|
+
lines.push("/* ---- max-md responsive overrides ---- */");
|
|
307
|
+
lines.push("@media (width < 48rem) {");
|
|
308
|
+
for (const size of cfg.sizes) {
|
|
309
|
+
const varRef = `var(--${size}${suffix})`;
|
|
310
|
+
for (const [twPrefix, cssProp] of Object.entries(PROPERTY_MAP)) {
|
|
311
|
+
lines.push(` .max-md\\:${twPrefix}-\\[${size}px\\] { ${cssProp}: ${varRef} }`);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
for (const size of cfg.fontSizes) {
|
|
315
|
+
const varRef = `var(--fs-${size}${fontSuffix})`;
|
|
316
|
+
for (const [twPrefix, cssProp] of Object.entries(FONT_PROPERTY_MAP)) {
|
|
317
|
+
lines.push(` .max-md\\:${twPrefix}-\\[${size}px\\] { ${cssProp}: ${varRef} }`);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
lines.push("}");
|
|
321
|
+
lines.push("");
|
|
322
|
+
return lines.join("\n");
|
|
323
|
+
}
|
|
324
|
+
function generateIntensitySelectors(cfg) {
|
|
325
|
+
const lines = [];
|
|
326
|
+
for (const [evaValue, intensity] of Object.entries(DATA_EVA_MAP)) {
|
|
327
|
+
lines.push(`/* ---- data-eva="${evaValue}" (${intensity}) ---- */`);
|
|
328
|
+
for (const size of cfg.sizes) {
|
|
329
|
+
const varRef = `var(--${size}${intensity})`;
|
|
330
|
+
for (const [twPrefix, cssProp] of Object.entries(PROPERTY_MAP)) {
|
|
331
|
+
lines.push(`[data-eva="${evaValue}"] ${escapeTwClass(twPrefix, `${size}px`)} { ${cssProp}: ${varRef} }`);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
lines.push("");
|
|
335
|
+
}
|
|
336
|
+
for (const [evaValue, intensity] of Object.entries(DATA_EVA_FONT_MAP)) {
|
|
337
|
+
for (const size of cfg.fontSizes) {
|
|
338
|
+
const varRef = `var(--fs-${size}${intensity})`;
|
|
339
|
+
for (const [twPrefix, cssProp] of Object.entries(FONT_PROPERTY_MAP)) {
|
|
340
|
+
lines.push(`[data-eva="${evaValue}"] ${escapeTwClass(twPrefix, `${size}px`)} { ${cssProp}: ${varRef} }`);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
lines.push("");
|
|
345
|
+
return lines.join("\n");
|
|
346
|
+
}
|
|
347
|
+
function generateBridge(config) {
|
|
348
|
+
const cfg = resolveConfig(config);
|
|
349
|
+
const sections = [
|
|
350
|
+
"/* =============================================================",
|
|
351
|
+
" EVA CSS \xD7 yCode \u2014 Fluid Bridge",
|
|
352
|
+
" Generated by eva-css-ycode",
|
|
353
|
+
" ============================================================= */",
|
|
354
|
+
"",
|
|
355
|
+
"/* Section A \u2014 CSS Custom Properties */",
|
|
356
|
+
generateRootVars(cfg),
|
|
357
|
+
"",
|
|
358
|
+
"/* Section B \u2014 Tailwind Arbitrary Class Overrides */",
|
|
359
|
+
generateDefaultOverrides(cfg),
|
|
360
|
+
generateResponsiveOverrides(cfg),
|
|
361
|
+
"/* Section C \u2014 Per-Section Intensity Selectors */",
|
|
362
|
+
generateIntensitySelectors(cfg)
|
|
363
|
+
];
|
|
364
|
+
return sections.join("\n");
|
|
365
|
+
}
|
|
366
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
367
|
+
0 && (module.exports = {
|
|
368
|
+
FONT_PROPERTY_MAP,
|
|
369
|
+
PROPERTY_MAP,
|
|
370
|
+
generateBridge,
|
|
371
|
+
resolveConfig
|
|
372
|
+
});
|