@fldr/ui 0.1.0 → 0.3.1
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/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +18 -18
- package/dist/chunks/{code-nj2nu6qzxhz6qnkk.js → code-hp2x28uiufmk3elz.js} +2 -4
- package/dist/chunks/highlighter-mouttug0tu8xg1i8.js +1364 -0
- package/dist/code/server.d.ts +4 -89
- package/dist/code/server.js +3 -136
- package/dist/code.d.ts +53 -70
- package/dist/code.js +186 -327
- package/dist/command-line/cli.js +0 -0
- package/dist/command-line/commands/add.js +0 -0
- package/dist/command-line/commands/ai.js +0 -0
- package/dist/command-line/commands/blocks.js +0 -0
- package/dist/command-line/commands/doc.js +0 -0
- package/dist/command-line/commands/init.js +0 -0
- package/dist/command-line/commands/ls.js +0 -0
- package/dist/components/code.d.ts +1 -1
- package/dist/components/code.js +1 -1
- package/dist/highlighter-BT3TakhJ.d.ts +13 -0
- package/dist/{index-B9niVl3r.d.ts → index-CNL6VDYZ.d.ts} +2 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/kumo-binding.css +1 -0
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/kumo.css +20 -38
- package/dist/styles/theme-code.css +142 -0
- package/dist/styles/theme-fldr.css +429 -15
- package/dist/theming.d.ts +71 -32
- package/dist/theming.js +162 -17
- package/package.json +2 -4
- package/scripts/css-build.ts +1 -0
- package/scripts/publish-fldr.ts +62 -10
- package/scripts/theme-generator/index.ts +15 -5
- package/dist/chunks/bash-jpzh6zbf5237424t.js +0 -3
- package/dist/chunks/core-n0de50o00ej2ecfe.js +0 -7177
- package/dist/chunks/css-j501gxq1am2gnikh.js +0 -4
- package/dist/chunks/diff-g2re0kj6fh27rgg5.js +0 -4
- package/dist/chunks/engine-javascript-e9xj8hhz9xfqhpnu.js +0 -3118
- package/dist/chunks/engine-oniguruma-ias56ildu01gf939.js +0 -389
- package/dist/chunks/github-light-hir7yctc38258pwt.js +0 -5
- package/dist/chunks/graphql-n9vlzkvcp2j19p7a.js +0 -16
- package/dist/chunks/hcl-ohpfnrffs96hzyj5.js +0 -4
- package/dist/chunks/html-nimj6ljkkifnc9ni.js +0 -12
- package/dist/chunks/javascript-b6fq9bl50fdj6813.js +0 -4
- package/dist/chunks/json-h2g0z143t3cs13d7.js +0 -4
- package/dist/chunks/jsonc-jxlzvingck161eej.js +0 -4
- package/dist/chunks/jsx-jp7a33937sef92sn.js +0 -4
- package/dist/chunks/markdown-eybeqjr58vfygtz1.js +0 -4
- package/dist/chunks/python-nrpnmxq4r6yp6fcd.js +0 -4
- package/dist/chunks/shellscript-i4m7lo8wi0f5bl8b.js +0 -4
- package/dist/chunks/sql-hqp2eekl7qhmxe92.js +0 -4
- package/dist/chunks/toml-oyqrgosuct25x413.js +0 -4
- package/dist/chunks/tsx-pem8x69upvmibv6l.js +0 -4
- package/dist/chunks/typescript-pe5y016phdwbgws7.js +0 -4
- package/dist/chunks/vesper-g839e590k3dxnwh3.js +0 -5
- package/dist/chunks/wasm-cpasy0o9lsjrm39j.js +0 -8
- package/dist/chunks/yaml-kzk5ddyekbyha04v.js +0 -4
- package/dist/types-C6in2C8V.d.ts +0 -135
package/dist/theming.js
CHANGED
|
@@ -111,6 +111,27 @@ function generateThemeOverrideCSS(config, themeName, useNewNames = false, header
|
|
|
111
111
|
function defineTheme(theme) {
|
|
112
112
|
return theme;
|
|
113
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Build a theme on top of another one. Token groups merge, and the new
|
|
116
|
+
* theme's tokens win, so a variant only lists what it changes.
|
|
117
|
+
*/
|
|
118
|
+
function extendTheme(base, theme) {
|
|
119
|
+
return {
|
|
120
|
+
name: theme.name,
|
|
121
|
+
text: {
|
|
122
|
+
...base.text,
|
|
123
|
+
...theme.text
|
|
124
|
+
},
|
|
125
|
+
color: {
|
|
126
|
+
...base.color,
|
|
127
|
+
...theme.color
|
|
128
|
+
},
|
|
129
|
+
typography: {
|
|
130
|
+
...base.typography,
|
|
131
|
+
...theme.typography
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
114
135
|
const NAME = /^[a-z][a-z0-9-]*$/;
|
|
115
136
|
const RESERVED = /* @__PURE__ */ new Set(["kumo", "fedramp"]);
|
|
116
137
|
function assertKnown(group, keys, known) {
|
|
@@ -155,9 +176,29 @@ function generateThemeCSS(theme) {
|
|
|
155
176
|
};
|
|
156
177
|
return generateThemeOverrideCSS(config, name, false, `/* Kumo theme "${name}". Generated by generateThemeCSS(); edit the theme definition, not this file. */\n`);
|
|
157
178
|
}
|
|
179
|
+
function defineDensity(density) {
|
|
180
|
+
return density;
|
|
181
|
+
}
|
|
182
|
+
/** Generate the CSS for a density. Load it after Kumo's styles. */
|
|
183
|
+
function generateDensityCSS(density) {
|
|
184
|
+
const { name, spacing, typography = {} } = density;
|
|
185
|
+
if (!NAME.test(name)) throw new Error(`Invalid density name "${name}": use lowercase letters, digits and dashes`);
|
|
186
|
+
assertKnown("typography", Object.keys(typography), THEME_CONFIG.typography);
|
|
187
|
+
const lines = [` --spacing: ${spacing};`];
|
|
188
|
+
for (const [key, value] of Object.entries(typography)) lines.push(` --text-${key}: ${value};`);
|
|
189
|
+
return [
|
|
190
|
+
`/* Kumo density "${name}". Generated by generateDensityCSS(). */`,
|
|
191
|
+
"@layer base {",
|
|
192
|
+
` [data-density="${name}"] {`,
|
|
193
|
+
...lines,
|
|
194
|
+
" }",
|
|
195
|
+
"}",
|
|
196
|
+
""
|
|
197
|
+
].join("\n");
|
|
198
|
+
}
|
|
158
199
|
//#endregion
|
|
159
200
|
//#region src/themes/fldr.ts
|
|
160
|
-
/** fldr: graphite on warm off-white,
|
|
201
|
+
/** fldr: graphite on warm off-white, with Kumo's blue as the accent. */
|
|
161
202
|
const fldrTheme = defineTheme({
|
|
162
203
|
name: "fldr",
|
|
163
204
|
text: {
|
|
@@ -178,12 +219,12 @@ const fldrTheme = defineTheme({
|
|
|
178
219
|
dark: "#9c9a94"
|
|
179
220
|
},
|
|
180
221
|
"kumo-brand": {
|
|
181
|
-
light: "
|
|
182
|
-
dark: "
|
|
222
|
+
light: "oklch(48.8% 0.243 264.376)",
|
|
223
|
+
dark: "oklch(70.7% 0.165 254.624)"
|
|
183
224
|
},
|
|
184
225
|
"kumo-link": {
|
|
185
|
-
light: "
|
|
186
|
-
dark: "
|
|
226
|
+
light: "oklch(42.4% 0.199 265.638)",
|
|
227
|
+
dark: "oklch(70.7% 0.165 254.624)"
|
|
187
228
|
}
|
|
188
229
|
},
|
|
189
230
|
color: {
|
|
@@ -220,22 +261,126 @@ const fldrTheme = defineTheme({
|
|
|
220
261
|
dark: "#2b2a28"
|
|
221
262
|
},
|
|
222
263
|
"kumo-focus": {
|
|
223
|
-
light: "
|
|
224
|
-
dark: "
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
264
|
+
light: "oklch(0.5772 0.2324 260)",
|
|
265
|
+
dark: "oklch(70.7% 0.165 254.624)"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
/** An fldr variant that only swaps the accent hue. */
|
|
270
|
+
function fldrAccent(name, accent) {
|
|
271
|
+
return extendTheme(fldrTheme, {
|
|
272
|
+
name,
|
|
273
|
+
text: {
|
|
274
|
+
"kumo-brand": accent.text,
|
|
275
|
+
"kumo-link": accent.text
|
|
229
276
|
},
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
277
|
+
color: {
|
|
278
|
+
"kumo-brand": accent.brand,
|
|
279
|
+
"kumo-brand-hover": accent.hover,
|
|
280
|
+
"kumo-focus": accent.brand
|
|
233
281
|
}
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
const fldrVioletTheme = fldrAccent("fldr-violet", {
|
|
285
|
+
brand: {
|
|
286
|
+
light: "oklch(54.1% 0.281 293.009)",
|
|
287
|
+
dark: "oklch(54.1% 0.281 293.009)"
|
|
288
|
+
},
|
|
289
|
+
hover: {
|
|
290
|
+
light: "oklch(49.1% 0.27 292.581)",
|
|
291
|
+
dark: "oklch(60.6% 0.25 292.717)"
|
|
292
|
+
},
|
|
293
|
+
text: {
|
|
294
|
+
light: "oklch(49.1% 0.27 292.581)",
|
|
295
|
+
dark: "oklch(70.2% 0.183 293.541)"
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
const fldrGreenTheme = fldrAccent("fldr-green", {
|
|
299
|
+
brand: {
|
|
300
|
+
light: "oklch(50.8% 0.118 165.612)",
|
|
301
|
+
dark: "oklch(50.8% 0.118 165.612)"
|
|
302
|
+
},
|
|
303
|
+
hover: {
|
|
304
|
+
light: "oklch(43.2% 0.095 166.913)",
|
|
305
|
+
dark: "oklch(59.6% 0.145 163.225)"
|
|
306
|
+
},
|
|
307
|
+
text: {
|
|
308
|
+
light: "oklch(43.2% 0.095 166.913)",
|
|
309
|
+
dark: "oklch(76.5% 0.177 163.223)"
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
const fldrOrangeTheme = fldrAccent("fldr-orange", {
|
|
313
|
+
brand: {
|
|
314
|
+
light: "oklch(55.3% 0.195 38.402)",
|
|
315
|
+
dark: "oklch(55.3% 0.195 38.402)"
|
|
316
|
+
},
|
|
317
|
+
hover: {
|
|
318
|
+
light: "oklch(47% 0.157 37.304)",
|
|
319
|
+
dark: "oklch(64.6% 0.222 41.116)"
|
|
320
|
+
},
|
|
321
|
+
text: {
|
|
322
|
+
light: "oklch(47% 0.157 37.304)",
|
|
323
|
+
dark: "oklch(75% 0.183 55.934)"
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
const fldrRoseTheme = fldrAccent("fldr-rose", {
|
|
327
|
+
brand: {
|
|
328
|
+
light: "oklch(58.6% 0.253 17.585)",
|
|
329
|
+
dark: "oklch(58.6% 0.253 17.585)"
|
|
330
|
+
},
|
|
331
|
+
hover: {
|
|
332
|
+
light: "oklch(51.4% 0.222 16.935)",
|
|
333
|
+
dark: "oklch(64.5% 0.246 16.439)"
|
|
334
|
+
},
|
|
335
|
+
text: {
|
|
336
|
+
light: "oklch(51.4% 0.222 16.935)",
|
|
337
|
+
dark: "oklch(71.2% 0.194 13.428)"
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
/** Monochrome: graphite ink instead of a hue. */
|
|
341
|
+
const fldrInkTheme = fldrAccent("fldr-ink", {
|
|
342
|
+
brand: {
|
|
343
|
+
light: "#191918",
|
|
344
|
+
dark: "#41403d"
|
|
345
|
+
},
|
|
346
|
+
hover: {
|
|
347
|
+
light: "#2b2a28",
|
|
348
|
+
dark: "#5a5955"
|
|
349
|
+
},
|
|
350
|
+
text: {
|
|
351
|
+
light: "#191918",
|
|
352
|
+
dark: "#f6f5f2"
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
//#endregion
|
|
356
|
+
//#region src/themes/density.ts
|
|
357
|
+
/** About 12% tighter than Kumo's default: 28px base controls, 13px body text. */
|
|
358
|
+
const compactDensity = defineDensity({
|
|
359
|
+
name: "compact",
|
|
360
|
+
spacing: "0.22rem",
|
|
361
|
+
typography: {
|
|
362
|
+
xs: "11px",
|
|
363
|
+
sm: "12px",
|
|
364
|
+
base: "13px",
|
|
365
|
+
lg: "15px"
|
|
234
366
|
}
|
|
235
367
|
});
|
|
236
368
|
//#endregion
|
|
237
369
|
//#region src/themes/index.ts
|
|
238
|
-
/**
|
|
239
|
-
|
|
370
|
+
/**
|
|
371
|
+
* Themes shipped as prebuilt CSS. All of them are written to
|
|
372
|
+
* `theme-fldr.css` (`@fldr/ui/styles/theme-fldr.css`), which the
|
|
373
|
+
* standalone and Tailwind builds already include.
|
|
374
|
+
*/
|
|
375
|
+
const BUILT_IN_THEMES = [
|
|
376
|
+
fldrTheme,
|
|
377
|
+
fldrVioletTheme,
|
|
378
|
+
fldrGreenTheme,
|
|
379
|
+
fldrOrangeTheme,
|
|
380
|
+
fldrRoseTheme,
|
|
381
|
+
fldrInkTheme
|
|
382
|
+
];
|
|
383
|
+
/** Densities shipped in `theme-fldr.css`, applied with `data-density="<name>"`. */
|
|
384
|
+
const BUILT_IN_DENSITIES = [compactDensity];
|
|
240
385
|
//#endregion
|
|
241
|
-
export { BUILT_IN_THEMES, defineTheme, fldrTheme, generateThemeCSS };
|
|
386
|
+
export { BUILT_IN_DENSITIES, BUILT_IN_THEMES, compactDensity, defineDensity, defineTheme, extendTheme, fldrGreenTheme, fldrInkTheme, fldrOrangeTheme, fldrRoseTheme, fldrTheme, fldrVioletTheme, generateDensityCSS, generateThemeCSS };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fldr/ui",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "fldr's design system: Cloudflare Kumo with a theme authoring API and PandaCSS preset",
|
|
6
6
|
"keywords": [
|
|
@@ -459,13 +459,11 @@
|
|
|
459
459
|
},
|
|
460
460
|
"dependencies": {
|
|
461
461
|
"@base-ui/react": "^1.9.0",
|
|
462
|
-
"@
|
|
463
|
-
"@shikijs/themes": "^4.0.0",
|
|
462
|
+
"@tanstack/highlight": "1.2.12",
|
|
464
463
|
"cn": "0.4.0",
|
|
465
464
|
"d3-geo": "^3.1.1",
|
|
466
465
|
"motion": "^12.34.1",
|
|
467
466
|
"react-day-picker": "^9.13.2",
|
|
468
|
-
"shiki": "^4.0.0",
|
|
469
467
|
"use-sync-external-store": "^1.6.0"
|
|
470
468
|
},
|
|
471
469
|
"peerDependencies": {
|
package/scripts/css-build.ts
CHANGED
package/scripts/publish-fldr.ts
CHANGED
|
@@ -9,25 +9,45 @@
|
|
|
9
9
|
* pnpm build
|
|
10
10
|
* pnpm publish:fldr 0.1.0 --dry-run
|
|
11
11
|
* pnpm publish:fldr 0.1.0 [--otp=123456]
|
|
12
|
+
* pnpm publish:fldr patch # latest on npm + 0.0.1
|
|
12
13
|
*/
|
|
13
14
|
import { spawnSync } from "node:child_process";
|
|
14
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
cpSync,
|
|
17
|
+
existsSync,
|
|
18
|
+
mkdtempSync,
|
|
19
|
+
readFileSync,
|
|
20
|
+
readdirSync,
|
|
21
|
+
statSync,
|
|
22
|
+
writeFileSync,
|
|
23
|
+
} from "node:fs";
|
|
15
24
|
import { tmpdir } from "node:os";
|
|
16
25
|
import { extname, join, resolve } from "node:path";
|
|
17
26
|
import { fileURLToPath } from "node:url";
|
|
18
27
|
|
|
19
28
|
const NAME = "@fldr/ui";
|
|
20
29
|
const UPSTREAM_NAME = "@fldr/ui";
|
|
21
|
-
const TEXT_EXTENSIONS = new Set([
|
|
30
|
+
const TEXT_EXTENSIONS = new Set([
|
|
31
|
+
".js",
|
|
32
|
+
".mjs",
|
|
33
|
+
".cjs",
|
|
34
|
+
".ts",
|
|
35
|
+
".mts",
|
|
36
|
+
".json",
|
|
37
|
+
".md",
|
|
38
|
+
".css",
|
|
39
|
+
".txt",
|
|
40
|
+
]);
|
|
22
41
|
|
|
23
42
|
const pkgDir = resolve(fileURLToPath(import.meta.url), "../..");
|
|
24
43
|
const args = process.argv.slice(2);
|
|
25
|
-
const
|
|
44
|
+
const requested = args.find((arg) => !arg.startsWith("-"));
|
|
45
|
+
const version = requested === "patch" ? await nextPatch() : requested;
|
|
26
46
|
const dryRun = args.includes("--dry-run");
|
|
27
47
|
const otp = args.find((arg) => arg.startsWith("--otp="));
|
|
28
48
|
|
|
29
49
|
if (!version || !/^\d+\.\d+\.\d+(-[\w.]+)?$/.test(version)) {
|
|
30
|
-
console.error("Usage: pnpm publish:fldr <version> [--dry-run]");
|
|
50
|
+
console.error("Usage: pnpm publish:fldr <version|patch> [--dry-run]");
|
|
31
51
|
process.exit(1);
|
|
32
52
|
}
|
|
33
53
|
if (!existsSync(join(pkgDir, "dist/index.js"))) {
|
|
@@ -35,6 +55,14 @@ if (!existsSync(join(pkgDir, "dist/index.js"))) {
|
|
|
35
55
|
process.exit(1);
|
|
36
56
|
}
|
|
37
57
|
|
|
58
|
+
async function nextPatch(): Promise<string> {
|
|
59
|
+
const res = await fetch(`https://registry.npmjs.org/${NAME}/latest`);
|
|
60
|
+
if (!res.ok) throw new Error(`npm registry: ${res.status}`);
|
|
61
|
+
const { version: latest } = (await res.json()) as { version: string };
|
|
62
|
+
const [major, minor, patch] = latest.split("-")[0].split(".").map(Number);
|
|
63
|
+
return `${major}.${minor}.${patch + 1}`;
|
|
64
|
+
}
|
|
65
|
+
|
|
38
66
|
const pkg = JSON.parse(readFileSync(join(pkgDir, "package.json"), "utf8"));
|
|
39
67
|
const stage = mkdtempSync(join(tmpdir(), "fldr-ui-"));
|
|
40
68
|
|
|
@@ -52,7 +80,8 @@ function rewrite(dir: string) {
|
|
|
52
80
|
rewrite(path);
|
|
53
81
|
} else if (TEXT_EXTENSIONS.has(extname(name))) {
|
|
54
82
|
const text = readFileSync(path, "utf8");
|
|
55
|
-
if (text.includes(UPSTREAM_NAME))
|
|
83
|
+
if (text.includes(UPSTREAM_NAME))
|
|
84
|
+
writeFileSync(path, text.replaceAll(UPSTREAM_NAME, NAME));
|
|
56
85
|
}
|
|
57
86
|
}
|
|
58
87
|
}
|
|
@@ -63,16 +92,39 @@ const published = {
|
|
|
63
92
|
...rest,
|
|
64
93
|
name: NAME,
|
|
65
94
|
version,
|
|
66
|
-
description:
|
|
67
|
-
|
|
68
|
-
|
|
95
|
+
description:
|
|
96
|
+
"fldr's design system: Cloudflare Kumo with a theme authoring API and PandaCSS preset",
|
|
97
|
+
keywords: [
|
|
98
|
+
"fldr",
|
|
99
|
+
"kumo",
|
|
100
|
+
"components",
|
|
101
|
+
"design-system",
|
|
102
|
+
"react",
|
|
103
|
+
"ui",
|
|
104
|
+
"pandacss",
|
|
105
|
+
],
|
|
106
|
+
repository: {
|
|
107
|
+
type: "git",
|
|
108
|
+
url: "git+https://github.com/mergd/fldr-ui.git",
|
|
109
|
+
directory: "packages/kumo",
|
|
110
|
+
},
|
|
69
111
|
};
|
|
70
|
-
writeFileSync(
|
|
112
|
+
writeFileSync(
|
|
113
|
+
join(stage, "package.json"),
|
|
114
|
+
`${JSON.stringify(published, null, 2)}\n`,
|
|
115
|
+
);
|
|
71
116
|
|
|
72
117
|
console.log(`Staged ${NAME}@${version} in ${stage}`);
|
|
73
118
|
const result = spawnSync(
|
|
74
119
|
"pnpm",
|
|
75
|
-
[
|
|
120
|
+
[
|
|
121
|
+
"publish",
|
|
122
|
+
"--access",
|
|
123
|
+
"public",
|
|
124
|
+
"--no-git-checks",
|
|
125
|
+
...(dryRun ? ["--dry-run"] : []),
|
|
126
|
+
...(otp ? [otp] : []),
|
|
127
|
+
],
|
|
76
128
|
{ cwd: stage, stdio: "inherit" },
|
|
77
129
|
);
|
|
78
130
|
process.exit(result.status ?? 1);
|
|
@@ -19,8 +19,12 @@ import {
|
|
|
19
19
|
getTokenRenameMap,
|
|
20
20
|
} from "./generate-css.js";
|
|
21
21
|
import { THEME_CONFIG, AVAILABLE_THEMES } from "./config.js";
|
|
22
|
-
import { BUILT_IN_THEMES } from "../../src/themes/index.js";
|
|
23
|
-
import {
|
|
22
|
+
import { BUILT_IN_DENSITIES, BUILT_IN_THEMES } from "../../src/themes/index.js";
|
|
23
|
+
import {
|
|
24
|
+
generateDensityCSS,
|
|
25
|
+
generateThemeCSS,
|
|
26
|
+
} from "../../src/theming/define-theme.js";
|
|
27
|
+
import { generateCodeThemeCSS } from "../../src/code/theme.js";
|
|
24
28
|
|
|
25
29
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
26
30
|
const STYLES_DIR = path.resolve(__dirname, "../../src/styles");
|
|
@@ -135,9 +139,15 @@ async function main() {
|
|
|
135
139
|
useNewNames: args.useNewNames,
|
|
136
140
|
});
|
|
137
141
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
142
|
+
files.set("theme-code.css", generateCodeThemeCSS());
|
|
143
|
+
|
|
144
|
+
files.set(
|
|
145
|
+
"theme-fldr.css",
|
|
146
|
+
[
|
|
147
|
+
...BUILT_IN_THEMES.map(generateThemeCSS),
|
|
148
|
+
...BUILT_IN_DENSITIES.map(generateDensityCSS),
|
|
149
|
+
].join("\n"),
|
|
150
|
+
);
|
|
141
151
|
|
|
142
152
|
for (const [filename, content] of files) {
|
|
143
153
|
const filepath = path.join(STYLES_DIR, filename);
|