replicas-cli 0.3.439 → 0.3.440
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/index.cjs +5 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22609,7 +22609,7 @@ function designColors({ mode, palette, accent, custom: custom2 }) {
|
|
|
22609
22609
|
const colors = { ...DESIGN_COLORS[mode], ...paletteColors, ...accent === "custom" ? customAccent(custom2.accent, paletteColors) : ACCENT_COLORS[accent][mode] };
|
|
22610
22610
|
return resolved === "custom" ? { ...colors, ...Object.fromEntries(READABLE_TEXT_KEYS.map((key) => [key, readableText(colors[key], paletteColors)])) } : colors;
|
|
22611
22611
|
}
|
|
22612
|
-
var plain, THEME_PREFERENCES, PALETTE_PRESETS, PALETTES, PALETTE_COLORS, ACCENT_PRESETS, ACCENTS, ACCENT_COLORS, dark, DESIGN_COLORS, SERIES, BRAND_COLORS, channels, mix, luminance, contrast, customMode, themeCode,
|
|
22612
|
+
var plain, THEME_PREFERENCES, PALETTE_PRESETS, PALETTES, PALETTE_COLORS, ACCENT_PRESETS, ACCENTS, ACCENT_COLORS, dark, DESIGN_COLORS, SERIES, BRAND_COLORS, channels, mix, luminance, contrast, customMode, themeCode, DEFAULT_THEME, resolvePalette, READABLE_TEXT_KEYS;
|
|
22613
22613
|
var init_design_tokens = __esm({
|
|
22614
22614
|
"../shared/src/design-tokens.ts"() {
|
|
22615
22615
|
"use strict";
|
|
@@ -22737,7 +22737,7 @@ var init_design_tokens = __esm({
|
|
|
22737
22737
|
};
|
|
22738
22738
|
customMode = ({ background, foreground }) => luminance(background) < luminance(foreground) ? "dark" : "light";
|
|
22739
22739
|
themeCode = ({ background, foreground, accent }) => [background, foreground, accent].join(",");
|
|
22740
|
-
|
|
22740
|
+
DEFAULT_THEME = {
|
|
22741
22741
|
palette: "default",
|
|
22742
22742
|
accent: "green",
|
|
22743
22743
|
custom: { background: PALETTE_COLORS.dark.default.background, foreground: PALETTE_COLORS.dark.default.foreground, accent: "#888888" }
|
|
@@ -26238,8 +26238,8 @@ curl -sS --fail-with-body -X POST "\${REPLICAS_MONOLITH_URL:-$MONOLITH_URL}/v1/e
|
|
|
26238
26238
|
});
|
|
26239
26239
|
|
|
26240
26240
|
// ../shared/src/visuals.ts
|
|
26241
|
-
function visualTheme(mode, fontUrl,
|
|
26242
|
-
const colors = designColors({ ...
|
|
26241
|
+
function visualTheme(mode, fontUrl, theme = DEFAULT_THEME) {
|
|
26242
|
+
const colors = designColors({ ...theme, mode });
|
|
26243
26243
|
return {
|
|
26244
26244
|
appearance: mode,
|
|
26245
26245
|
variables: {
|
|
@@ -38650,7 +38650,7 @@ var CLI_VERSION;
|
|
|
38650
38650
|
var init_cli_version = __esm({
|
|
38651
38651
|
"../shared/src/cli-version.ts"() {
|
|
38652
38652
|
"use strict";
|
|
38653
|
-
CLI_VERSION = "0.3.
|
|
38653
|
+
CLI_VERSION = "0.3.440";
|
|
38654
38654
|
}
|
|
38655
38655
|
});
|
|
38656
38656
|
|