Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge main into feat/diwali-mascots: Diwali and Aurora side by side

milind-soni098394b8c368
diff --cc electron/skin-overlay.cjs
index 390e56f04b,d31ef71aec..4ec425bde2
--- a/electron/skin-overlay.cjs
+++ b/electron/skin-overlay.cjs
@@@ -14,7 -14,7 +14,8 @@@ const SKIN_CHROME = Object.freeze(
meadow: Object.freeze({ color: "#ffffff", symbolColor: "#4d5a52" }),
pop: Object.freeze({ color: "#fdf5ea", symbolColor: "#3a322d" }),
halloween: Object.freeze({ color: "#110d16", symbolColor: "#c2b3cc" }),
+ diwali: Object.freeze({ color: "#100d1f", symbolColor: "#cdbfdc" }),
+ aurora: Object.freeze({ color: "#0b0c0b", symbolColor: "#b4bab4" }),
});
const DEFAULT_SKIN = "midnight";
diff --cc electron/skin-overlay.test.mjs
index e941f3b170,d1be2cfdb5..390a27e98c
--- a/electron/skin-overlay.test.mjs
+++ b/electron/skin-overlay.test.mjs
@@@ -69,8 -69,8 +69,13 @@@ describe("skin overlay chrome", () =>
expect(isKnownSkin("halloween")).toBe(true);
});
+ it("paints Diwali's indigo ground behind the caption buttons", () => {
+ expect(skinChrome("diwali")).toEqual({ color: "#100d1f", symbolColor: "#cdbfdc" });
+ expect(isKnownSkin("diwali")).toBe(true);
+ });
++
+ it("paints Aurora's near-black ground behind the caption buttons", () => {
+ expect(skinChrome("aurora")).toEqual({ color: "#0b0c0b", symbolColor: "#b4bab4" });
+ expect(skinIsLight("aurora")).toBe(false);
+ });
});
diff --cc scripts/testing/rail-preview.tsx
index 3d5086b864,6001d46fc9..6b407a91cc
--- a/scripts/testing/rail-preview.tsx
+++ b/scripts/testing/rail-preview.tsx
@@@ -224,7 -224,7 +224,7 @@@ if (params.has("railpage"))
// Windows' own title bar is drawn outside the page; this stands in for it, above the page.
const bar = document.createElement("div");
bar.setAttribute("aria-hidden", "true");
- const dark = ["midnight", "foundry", "graphite", "dusk", "halloween", "diwali"].includes(params.get("skin") ?? "midnight");
- const dark = ["midnight", "foundry", "graphite", "dusk", "halloween", "aurora"].includes(params.get("skin") ?? "midnight");
++ const dark = ["midnight", "foundry", "graphite", "dusk", "halloween", "diwali", "aurora"].includes(params.get("skin") ?? "midnight");
bar.style.cssText = `position:fixed;inset:0 0 auto 0;height:31px;display:flex;align-items:center;z-index:100;font:12px "Segoe UI",sans-serif;padding-left:12px;${dark ? "background:#202020;color:#fff" : "background:#f3f3f3;color:#000"}`;
bar.innerHTML = `<span style="flex:1">MausBot</span>${["\u2013", "\u2610", "\u2715"].map((glyph) => `<span style="width:46px;text-align:center">${glyph}</span>`).join("")}`;
document.body.append(bar);
diff --cc scripts/verify-window-frame.ts
index d1ba07cdb7,bf7832b0dd..670fed7b83
--- a/scripts/verify-window-frame.ts
+++ b/scripts/verify-window-frame.ts
@@@ -23,7 -23,7 +23,7 @@@ const argument = (name: string) => { co
const shots = argument("--shots") === null ? null : resolve(argument("--shots")!);
const only = argument("--only") === null ? null : new Set(argument("--only")!.split(",").filter(Boolean));
const WIDTH = 1280, HEIGHT = 800;
- const ALL_SKINS = ["daylight", "midnight", "atelier", "foundry", "lagoon", "graphite", "linen", "dusk", "meadow", "pop", "halloween", "diwali"];
-const ALL_SKINS = ["daylight", "midnight", "atelier", "foundry", "lagoon", "graphite", "linen", "dusk", "meadow", "pop", "halloween", "aurora"];
++const ALL_SKINS = ["daylight", "midnight", "atelier", "foundry", "lagoon", "graphite", "linen", "dusk", "meadow", "pop", "halloween", "diwali", "aurora"];
const SKINS = argument("--skins") === "all" ? ALL_SKINS : ["daylight", "midnight"];
const LOOK: Record<string, string> = { daylight: "light", midnight: "dark" };
const BAR = "[data-window-frame-bar]";
diff --cc src/lib/skins.test.ts
index 0ab9486901,ac6818256b..c227baaaae
--- a/src/lib/skins.test.ts
+++ b/src/lib/skins.test.ts
@@@ -90,16 -90,20 +90,23 @@@ describe("skins", () =>
expect(css).toMatch(/@scope \(\[data-skin="pop"\]:not\(\[data-skin-preview\]\)\) to \(\[data-skin\]\)/);
});
- it("adds Halloween after Pop, dark, with its atmosphere kept off the picker miniature", () => {
- expect(SKIN_IDS[10]).toBe("halloween");
- expect(SKINS.find((s) => s.id === "halloween")?.name).toBe("Halloween");
- expect(css).toMatch(/@scope \(\[data-skin="halloween"\]:not\(\[data-skin-preview\]\)\) to \(\[data-skin\]\)\s*\{\s*main\.bg-app\s*\{/);
- expect(css).toMatch(/@media \(prefers-reduced-motion: reduce\)\s*\{\s*\[data-skin="halloween"\] main\.bg-app::before/);
- });
+ it.each([["halloween", "Halloween"], ["diwali", "Diwali"]] as const)(
- "adds the %s festival skin at the end, with its atmosphere kept off the picker miniature",
++ "adds the %s festival skin after Pop, with its atmosphere kept off the picker miniature",
+ (id, name) => {
- expect(SKIN_IDS.slice(-2)).toEqual(["halloween", "diwali"]);
++ expect(SKIN_IDS.slice(10, 12)).toEqual(["halloween", "diwali"]);
+ expect(SKINS.find((s) => s.id === id)?.name).toBe(name);
+ expect(css).toMatch(new RegExp(`@scope \\(\\[data-skin="${id}"\\]:not\\(\\[data-skin-preview\\]\\)\\) to \\(\\[data-skin\\]\\)\\s*\\{\\s*main\\.bg-app\\s*\\{`));
+ expect(css).toMatch(new RegExp(`@media \\(prefers-reduced-motion: reduce\\)\\s*\\{\\s*\\[data-skin="${id}"\\] main\\.bg-app::before`));
+ },
+ );
+ it("adds Aurora last, dark, with its light field kept off the picker miniature", () => {
+ expect(SKIN_IDS.at(-1)).toBe("aurora");
+ expect(SKINS.find((s) => s.id === "aurora")?.name).toBe("Aurora");
+ expect(css).toMatch(/\[data-skin="aurora"\] \{[^}]*--code-color-scheme: dark;/);
+ expect(css).toMatch(/@scope \(\[data-skin="aurora"\]:not\(\[data-skin-preview\]\)\) to \(\[data-skin\]\)\s*\{\s*main\.bg-app\s*\{/);
+ });
+
it("describes each skin exactly once", () => {
expect(SKINS.map((s) => s.id).sort()).toEqual([...SKIN_IDS].sort());
for (const skin of SKINS) {
diff --cc src/lib/skins.ts
index 648efea2ca,28db2f0b3b..54f906604e
--- a/src/lib/skins.ts
+++ b/src/lib/skins.ts
@@@ -12,7 -13,7 +13,8 @@@ export const SKIN_IDS =
"meadow",
"pop",
"halloween",
+ "diwali",
+ "aurora",
] as const;
export type SkinId = (typeof SKIN_IDS)[number];
@@@ -34,7 -35,7 +36,8 @@@ export const SKINS: readonly Skin[] =
{ id: "meadow", name: "Meadow", tagline: "Fresh white with a calm green. The MausBot look." },
{ id: "pop", name: "Pop", tagline: "Cream paper, thick ink outlines, hard shadows. Chunky and cheerful." },
{ id: "halloween", name: "Halloween", tagline: "Plum after dark, lit in pumpkin orange. Bats optional." },
+ { id: "diwali", name: "Diwali", tagline: "Indigo night, lit in marigold and diya gold. Fireworks optional." },
+ { id: "aurora", name: "Aurora", tagline: "Near-black, crossed by a band of green light. Glass on top." },
];
/** "system" follows the OS between the light and dark skins below; anything else pins one skin. */
diff --cc src/locales/en.json
index 472d960c1a,7b837a6bae..796f2cd588
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@@ -8848,7 -8880,7 +8891,8 @@@
"skins.tagline.meadow": "Fresh white with a calm green. The MausBot look.",
"skins.tagline.pop": "Cream paper, thick ink outlines, hard shadows. Chunky and cheerful.",
"skins.tagline.halloween": "Plum after dark, lit in pumpkin orange. Bats optional.",
+ "skins.tagline.diwali": "Indigo night, lit in marigold and diya gold. Fireworks optional.",
+ "skins.tagline.aurora": "Near-black, crossed by a band of green light. Glass on top.",
"automations.calendar.cronMove": "Open this automation to change its repeating schedule.",
"automations.calendar.moveSeries": "Move every time it repeats?",
"automations.address.copyAddressFailed": "Couldn't copy the address",
diff --cc src/locales/pt-br.json
index f62e54efdb,7b5cf90b9a..84841b6296
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@@ -8824,7 -8856,7 +8867,8 @@@
"skins.tagline.meadow": "Branco leve com um verde suave. O visual do MausBot.",
"skins.tagline.pop": "Papel creme, contornos grossos de tinta, sombras marcadas. Encorpado e alegre.",
"skins.tagline.halloween": "Tom de ameixa depois do anoitecer, iluminado em laranja-abóbora. Morcegos opcionais.",
+ "skins.tagline.diwali": "Noite índigo, iluminada em calêndula e no dourado das diyas. Fogos opcionais.",
+ "skins.tagline.aurora": "Quase preto, cruzado por uma faixa de luz verde. Vidro por cima.",
"automations.calendar.cronMove": "Abra esta automação para mudar quando ela se repete.",
"automations.calendar.moveSeries": "Mover todas as repetições?",
"automations.address.copyAddressFailed": "Não foi possível copiar o endereço",
diff --cc src/locales/source-hashes.json
index ca1777b731,5562699890..019cb00b63
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@@ -33418,7 -33490,72 +33490,84 @@@
"botLimit.paused.chosen": "bb6b6546373e7d0c6fb29ab15dc00f64cdc965f77cf5689478c71c51fbc6549f",
"botLimit.paused.badge": "e159b06187d369a0615f66ce577582b5c983d4ea59b3a62b702049f61753f0bf",
"botLimit.paused.saveFailed": "680c88ccf5d4c9fe60c44c3a541c39e5aa80c9d6e76377c886e7c00a1421dc0d",
- "botLimit.paused.chooseAction": "a79a6acb715b89549164ec01e72282653c74175dff445e98a40612870f8e650e"
+ "botLimit.paused.chooseAction": "a79a6acb715b89549164ec01e72282653c74175dff445e98a40612870f8e650e",
+ "computerSharing.ownIntro": "054fa8e486f6758f0b41505f99cceecc24bf68cb1cee5bdd9ac6d423d3407eee",
+ "computerSharing.pauseHint": "46aa1fa8bc0e2d4d8bafa163af32f1485d2373eaa99d0916ed206751a1e00e0d",
+ "computerSharing.paused": "8f4d6a8680cb5e9d62d4e82c774c604297d07ba87bd123959a40770379be5e71",
+ "computerSharing.pause": "858e4ba7a29fd38b630ed73a79e2738333b3fc6778fafa90252f5556c1262fdc",
+ "computerSharing.resume": "d640c7421da066618a39daf4266da5f61f66a9b1afcd626481b831a17064965d",
+ "servers.share.title": "2c40cfa147bedaaaf7df80722e5fa8e29a34d8369cc064b4665236d4c6590c15",
+ "servers.share.off": "d50382f1539e4c2d70f5d4bef40d9448a489f2a6dd61f2d876c9247482a963f2",
+ "servers.share.on": "f093c4671644b262324e38cb3fa9bf9a6d8090cd3eeab37e31a45c5ddf825b26",
+ "servers.share.paused": "4759afcb7a4df0ddee985cea995d4986bd6c1cf969b31475296b9cb3e7ce0bbc",
+ "servers.share.choose": "0084a52a93797f504574fa33c4191a5c8bb1f68f5de62273e7c67d3d75d5b88b",
+ "servers.share.for": "a3b3b5a3611c4c9206ba66ffcfb49bac1488ec4a03c077341a34a36a7027b38e",
+ "skills.foundWhenNeeded": "2ca7e63c87359c6d2c2b9f071a125d32e0bab406da166526421cab80e367ea67",
+ "native.lend.own.title": "e0c0ec1959aef8a27ef00e5524990219d7e3d1f3d4ae97103b78e1e0469b9201",
+ "native.lend.own.detail": "6dbcd74c9c925e16d72b6e641fedcdfb27f2554697a843ff647050a5115cd293",
+ "native.lend.own.allow": "e213c161d5cefa520c8dd4155c9569076d9a40406111465136a6f1b207045761",
+ "native.lend.notOwnServer": "6ec1c2fc26d171727a4509b66ee7a9f4848733a2b4572c01b629a31c5a255cf0",
+ "chat.error.pastUsageLimit": "7c63a440471f4d20b5ce89b6e9c83547db02d840c79cbe7a4913b06e5a57c381",
+ "computer.watchFullScreenTitle": "9f3f625c39cd1e74ba76474fda7f8cd15b2fabe6e6ee337201a72551f47986d2",
+ "computer.watchingBotWorks": "b441025e38fe828e8ec4d56a2c9c685f88d9b41d993242c2af8eeaeb8ae3878b",
+ "apiInstances.editModels": "6289535b3751b28360962c140a14f124af1368871e0ebaa7968d2676a99948d6",
+ "apiInstances.modelsFor": "928aa8803b92765b315905a8bec2d9c8d1712c506ab62e1a39e9fa2d12f2c8a1",
+ "apiInstances.editModelsHint": "417c86a79ae13950d99588cb9c63e6981978aa80263e24458e1fde3097ea9e49",
+ "apiInstances.modelsLimit": "872a834885967b40ebcc35d2ff89adbc1ae4e8585bf0673f4a3ed1d718ba23fc",
+ "shortcuts.new-thread": "3fb707417e2f33bda62583185a5f38f34990d0327583a776f29666f092624735",
+ "chat.notice.kiroAccountRefused": "ef063546ea8868ab805bd60eac7048ab9e49143868131c8316fb9c31beb336a9",
+ "serverError.instance.modelsUnsupported": "d54242a01f65b60793c5a1fe58379c95e039c35ecaf8f368c398129b5b856e41",
+ "serverError.instance.defaultModelRemoved": "56ceaae5dfc24c88162a02fc1546381e517ec3e6d390024f4e4be5eca8619a77",
+ "server.connect.emailOutgoingLabel": "e202771237a9ab0d9f1603e69e2677d9a3eca166f3bf3cf719852c220a96354f",
+ "server.connect.emailOutgoingNote": "a4a9c913ec6e782b729b668fb53e799b131d0442bcbf43405f332607c7bd482b",
+ "server.connect.emailOutgoingPlaceholder": "4bb31e7a93129511e0ed4d2e47296f0cc8f602f9c03e61b2f8ddcd7169242c68",
+ "connect.checking": "ed56f22b046c20ebb7533d3c8200388572b5e2c979f4f3081e9f1c1d858a8cf0",
+ "automations.allDepartments": "625ff126402642a8d84918bc3d87dea91ebfcb7721a50bff72c18302d88069ac",
+ "automations.generalDepartment": "c910d474dcd724bff83ddedeb06bf1eceaf9fb3af7c76bb282be057f36e6dffa",
+ "backup.serverRestarting": "87acdeac7f4a0d79c9991c75c303459ab5fe9ab8171d762f0a92a8368c447ad8",
+ "backup.serverRestartSlow": "6c3051a9ea04b2e6157c376b2359866c0038915ce7f77064b3e792d38d3cfb9c",
+ "skins.tagline.aurora": "ca1a84cb54e664d46ed9f9aff1205b6ee7dcef1b1fa1123675f331fcd922aa01",
+ "native.connect.localNetwork": "cc56fca3ebf551f882e7a60c6d146c1681ca530531dc80250908d591d2b0000a",
+ "placeLook.sharedPictureSub": "6f65f006618295894fcd7f2158e066745e9c8eb621e8bcd81df21602663fb1a0",
+ "settings.theme.lightOrDark": "9c259901979dc2195dc36e59bf07ea998c75f090cbd266614bb4b3bcffe04333",
+ "settings.userBubbles.simpleTitle": "376821eb1ffb476bbbe293fe9c8f43d79e8f64417292afade8a351e443941aaa",
+ "sidebar.newConversationWith": "980cf3e4baa59749dbe29ac4960fccb0ec6a5278903cdef15e4afae74657c2ac",
+ "inbox.emptyHint": "0105954275918cda7ea87a1d942173015f96aaf820ba74a4bd07386d6426b4d8",
+ "chat.openBotPanel": "1f9ede9056d58ca37a4f7f79dd7da5226a8f30d0f1b616ac7eaaca6dcebaccbf",
+ "model.simple.botsModelScope": "c82c64a1fc353ed97f01626c16baf213f73cc6c0859519653ec5eaea9608bbee",
+ "model.simple.auto": "0286249762f7c94349cdc0ba3bb2255baf9a80036e2193ead1d77696f888582f",
+ "model.simple.thinkingAuto": "1d0caa99d3ed5904336835bfcf2966ed4d0b76486100da2f725dea4b580fbcc7",
+ "model.simple.effortHint.none": "55a20fa5220bf26aa8762241df3dfb36f421390668b629feb585e07bef8a35fa",
+ "model.simple.effortHint.low": "5922c465b05d4d086ba46fee455e609c44f43f0f888e8c9743586d7ed51c5c30",
+ "model.simple.effortHint.medium": "b74fb799966ff8749e0b5448e4327c74895473651216e174081f9628fc82a5de",
+ "model.simple.effortHint.high": "1047c77245128c587fef2147e25c8f5bf3f26e7b93f8d6427404c3a0707b8be5",
+ "model.simple.effortHint.xhigh": "0d7b127249765963253aba66f71673ff43ddaadb8388cd08869cbf0c84c20695",
+ "model.simple.effortHint.max": "6e85e76c8a82a49efaf6d7bdc01096003ea30f6b334306381b8d6c6f450fb452",
+ "task.untitledChat": "4d4e126c2185da5e86b7478f0f12fc30009339941ef0d8627959aeb4641b6f69",
+ "botPanel.routines.emptyHint": "b540483c412961de856a2336db7643a5a7f3bc816afe8d3b9985b0fba6bf4cf0",
+ "botPanel.routines.seeAll": "d527f42e92589c7cdf4206957f30f7f0236358f47139f591023c83a68e8ce3b2",
+ "settings.simple.group.typing": "0b96af8bce90a78a3ab5958209736b8738fe952deefc38fc958a14fbbeb75ef6",
+ "settings.simple.themes.title": "eceab8df6ddf48352bc730a2784437d15472a4e9d81ee29834587d7f1a532e08",
+ "settings.simple.themes.browse": "5d7a5476ede9e8cb334ca24996a48200bea59e871006443754457753f797bf53",
+ "settings.simple.themes.hint": "b4a933bbef7eebd1ba5305d6bbc14395b9c23eb149178c14c1b1436510c88a9b",
+ "settings.simple.themes.followHint": "d42ba551158199061ebfda7029c05ad07f84ebad29cfc8c24ffe4a7323ed5629",
+ "settings.simple.themes.fixedHint": "9debc6ac74d17e0dee92665cd9c4c39963b0a25c3de4830d59175e94e2ad5625",
+ "chat.setupCard.hint": "d7bbe8e1ab022e478f36b7338b2b278b9ad5b2d421eced2fd24b157b5df8db74",
+ "chat.setupCard.heading": "c55d59f402bbe025ee81dbf0efa20086040334938ed8617f340ab81db478b196",
+ "settings.simple.account.noNameHint": "488c9a6a017d6ea2f145c838bee156e762ffcebdaddc173135f4d0590f0b6271",
- "settings.simple.account.yourName": "2c6b2e253c01fb2ed7209c15766745ccee92a35ac8209f544789bdf9500e0944"
++ "settings.simple.account.yourName": "2c6b2e253c01fb2ed7209c15766745ccee92a35ac8209f544789bdf9500e0944",
++ "botPanel.avatar.diwali": "579b0bec9023767ce1e4cea28a6ed9a08ad7da5421fc5019929b5684edfe9e14",
++ "mascot.body.rocket": "d40a5aca994e2515589d71a99faba3f6bafaa9ef19fc72228d87b341e0614472",
++ "mascot.body.anaar": "63dbf299ebde5cc72c761c61c6343555805326dba19a667e1528845882c7d382",
++ "mascot.body.chakri": "c5a9956ca34ccd3ffc5254eb9c5e59091c34cc4420ed4867c86da8fd41057320",
++ "mascot.body.sparkler": "31275f474c8dde34ff2b31bbdd0a577649cb3f46502d67530a221c9c8b3b27d6",
++ "mascot.body.bomb": "359be5f850889fd1fec2febe58b390e171991bdc7a33e3a6535cd77b0d92903f",
++ "mascot.body.laddu": "c97ecdf4812770b16b239f619eeab1cdfa84e636f14b992e1c01ea9c2ab3d639",
++ "mascot.body.chakli": "51e7fa5adff4d7e92007c7caf68cd98f0b3662499249d83ed49d62d3af7499ce",
++ "mascot.body.jalebi": "2e200e92c49eb6d51ca76db4516d1fe7a39430862e5b8ebb5fa30071dc5ccc63",
++ "mascot.body.katli": "28670af54fcc50cd51c5983623672ed0d63c3355b5be96ef666812b0da6b6bf5",
++ "mascot.body.karanji": "dc2ff0fdc7d7ce51f05cd1dd8d6f0f8ff444c82da36304373561c9cf246c32a4",
++ "skins.tagline.diwali": "92af77174824ccd4267be3745deb99c28cd2ddd21e761e2afcd438bded98405c"
},
"zh": {
"pro.fromPrice": "a48a04a457d60b08b54fc83e7a6c4584ffedb1e23621859084900c8521a3af7b",
diff --cc src/styles.css
index 540974dce6,f3e6e7784a..da973cb9fc
--- a/src/styles.css
+++ b/src/styles.css
@@@ -1005,54 -1005,60 +1005,104 @@@
--identity-chrome: #B3BAC4;
}
+[data-skin="diwali"] {
+ --code-color-scheme: dark;
+ --color-app: #100d1f;
+ --color-panel: #161229;
+ --color-raised: #282142;
+ --color-raised-hover: #30284d;
+ --color-composer: #1c1732;
+ --color-composer-ring: #342b52;
+ --color-card: #1f1936;
+ --color-menu: #1d1834;
+ --color-menu-hover: color-mix(in srgb, var(--color-raised) 70%, transparent);
+ --color-menu-active: var(--color-raised);
+ --color-inset: #1a1530;
+ --color-control: #282142;
+ --color-hairline: #392f5a;
+
+ --color-ink: #fff3e0;
+ --color-ink-secondary: #cdbfdc;
+ --color-ink-tertiary: #ab9dc0;
+
+ --color-accent: #ffb22e;
+ --color-accent-border: #ffc04f;
+ --color-accent-text: #ffc861;
+ --color-focus: #ffc04f;
+ --color-accent-ink: #231402;
+ --color-bubble-user: #43301a;
+ --color-bubble-user-ink: #fff3e0;
+
+ --color-success: #7cc48f;
+ --color-danger: #f0727c;
+ --color-danger-ink: #240a0e;
+ --color-success-ink: #0d1a10;
+ --color-warning: #f2b45a;
+ --color-scrollbar: #392f5a;
+ --color-maus-line: #cdbfdc;
+
+ --font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
+ "Segoe UI", system-ui, sans-serif;
+ --radius-lg: 8px;
+ --radius-xl: 12px;
+ --radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
+ --radius-2xl: 16px; --radius-3xl: 24px; --radius-4xl: 32px;
+ --color-edge: color-mix(in srgb, var(--color-ink) 8%, transparent);
+ [data-skin="aurora"] {
+ --code-color-scheme: dark;
+ --color-app: #0b0c0b;
+ --color-panel: #131413;
+ --color-frame: var(--color-panel);
+ --color-raised: #1d1f1d;
+ --color-raised-hover: #272a27;
+ --color-composer: #161816;
+ --color-composer-ring: #2c302c;
+ --color-card: #1a1c1a;
+ --color-menu: #1a1c1a;
+ --color-menu-hover: color-mix(in srgb, var(--color-raised) 70%, transparent);
+ --color-menu-active: var(--color-raised);
+ --color-inset: #151715;
+ --color-control: #242724;
+ --color-hairline: #343834;
+
+ --color-ink: #f2f5f2;
+ --color-ink-secondary: #f2f5f2a8;
+ --color-ink-tertiary: #f2f5f291;
+
+ --color-accent: #3ccf73;
+ --color-accent-border: #5ad98a;
+ --color-accent-text: #6ee69a;
+ --color-focus: #5ad98a;
+ --color-accent-ink: #04170b;
+ --color-bubble-user: #18432c;
+ --color-bubble-user-ink: #ecfff2;
+
+ --color-success: #4ade80;
+ --color-danger: #ff5f6d;
+ --color-danger-ink: #2a0508;
+ --color-success-ink: #052e16;
+ --color-warning: #f5a524;
+ --color-scrollbar: #343834;
+ --color-maus-line: #f2f5f2;
+
+ --color-edge: #f2f5f20f;
+
+ --font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
+ "Segoe UI", system-ui, sans-serif;
+ --radius-xs: 2px;
+ --radius-sm: 4px;
+ --radius-md: 6px;
+ --radius-lg: 8px;
+ --radius-xl: 12px;
+ --radius-2xl: 14px;
+ --radius-3xl: 16px;
+ --radius-4xl: 18px;
--identity-green: #009957;
--identity-blue: #377FE6;
--identity-red: #D94B52;
--identity-orange: #E78531;
+ --identity-purple: #8c68cd;
+ --identity-purple: #8a65cd;
--identity-cyan: #0EA5C6;
--identity-pink: #D84F8B;
--identity-yellow: #D8A729;
@@@ -2872,53 -2959,50 +3003,97 @@@ html[data-cloud-intent-morph] [data-tou
}
}
+/* The main pane only, and never the picker miniature. Isolation keeps the
+ fireworks behind the conversation. */
+@scope ([data-skin="diwali"]:not([data-skin-preview])) to ([data-skin]) {
+ main.bg-app {
+ isolation: isolate;
+ background-image:
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 34'%3E%3Cpath d='M0 4Q80 30 160 4' fill='none' stroke='%23fff3e0' stroke-opacity='.12'/%3E%3Cg fill-opacity='.42'%3E%3Ccircle cx='20' cy='10' r='2.6' fill='%23ffb22e'/%3E%3Ccircle cx='60' cy='16' r='2.6' fill='%23ff6f9c'/%3E%3Ccircle cx='100' cy='16' r='2.6' fill='%23ffb22e'/%3E%3Ccircle cx='140' cy='10' r='2.6' fill='%23ff6f9c'/%3E%3C/g%3E%3C/svg%3E"),
+ radial-gradient(60% 55% at 50% 100%, rgb(255 178 46 / 0.09), transparent 70%);
+ background-repeat: repeat-x, no-repeat;
+ background-position: 0 0, 0 0;
+ background-size: 160px 34px, 100% 100%;
+ }
+ main.bg-app::before,
+ main.bg-app::after {
+ content: "";
+ position: absolute;
+ top: 96px;
+ right: 12%;
+ width: 120px;
+ height: 120px;
+ z-index: -1;
+ pointer-events: none;
+ background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M60.0 42.0L60.0 18.0M69.0 44.4L81.0 23.6M75.6 51.0L96.4 39.0M78.0 60.0L102.0 60.0M75.6 69.0L96.4 81.0M69.0 75.6L81.0 96.4M60.0 78.0L60.0 102.0M51.0 75.6L39.0 96.4M44.4 69.0L23.6 81.0M42.0 60.0L18.0 60.0M44.4 51.0L23.6 39.0M51.0 44.4L39.0 23.6' stroke='%23ffc861' stroke-opacity='.3' stroke-width='2.4' stroke-linecap='round'/%3E%3Cg fill='%23fff3e0' fill-opacity='.28'%3E%3Ccircle cx='73.5' cy='9.8' r='2.2'/%3E%3Ccircle cx='96.8' cy='23.2' r='2.2'/%3E%3Ccircle cx='110.2' cy='46.5' r='2.2'/%3E%3Ccircle cx='110.2' cy='73.5' r='2.2'/%3E%3Ccircle cx='96.8' cy='96.8' r='2.2'/%3E%3Ccircle cx='73.5' cy='110.2' r='2.2'/%3E%3Ccircle cx='46.5' cy='110.2' r='2.2'/%3E%3Ccircle cx='23.2' cy='96.8' r='2.2'/%3E%3Ccircle cx='9.8' cy='73.5' r='2.2'/%3E%3Ccircle cx='9.8' cy='46.5' r='2.2'/%3E%3Ccircle cx='23.2' cy='23.2' r='2.2'/%3E%3Ccircle cx='46.5' cy='9.8' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
+ opacity: 0;
+ animation: diwali-burst 9s ease-out infinite;
+ }
+ main.bg-app::after {
+ top: 180px;
+ right: auto;
+ left: 14%;
+ width: 84px;
+ height: 84px;
+ animation-duration: 11s;
+ animation-delay: -5s;
+ }
+}
+
+@keyframes diwali-burst {
+ 0%, 55% { opacity: 0; transform: scale(0.35); }
+ 62% { opacity: 1; }
+ 85%, 100% { opacity: 0; transform: scale(1); }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ [data-skin="diwali"] main.bg-app::before,
+ [data-skin="diwali"] main.bg-app::after {
+ display: none;
+ /* Fixed to the window, so the band runs on unbroken from one pane to the next. Its dots are drawn at one CSS pixel
+ each, so the field scales up pixelated; the pane's contents scale as usual. */
+ @scope ([data-skin="aurora"]:not([data-skin-preview])) to ([data-skin]) {
+ main.bg-app {
+ background-image: var(--aurora-field, none);
+ background-size: var(--aurora-field-size, cover);
+ background-repeat: no-repeat;
+ background-attachment: fixed;
+ image-rendering: pixelated;
+ }
+ main.bg-app > * {
+ image-rendering: auto;
+ }
+ }
+
+ @media (prefers-reduced-transparency: no-preference) and (forced-colors: none) {
+ @scope ([data-skin="aurora"]:not([data-skin-preview])) to ([data-skin]) {
+ main.bg-app :is(.bg-card, .bg-composer, .bg-bubble-user) {
+ -webkit-backdrop-filter: blur(28px) saturate(150%);
+ backdrop-filter: blur(28px) saturate(150%);
+ }
+ main.bg-app .glass-bar[data-glass-fade]::before,
+ main.bg-app [data-composer-backdrop] {
+ background: color-mix(in srgb, var(--color-app) 35%, transparent);
+ -webkit-backdrop-filter: blur(20px) saturate(140%);
+ backdrop-filter: blur(20px) saturate(140%);
+ }
+ main.bg-app .glass-bar[data-glass-fade]::before {
+ mask-image: linear-gradient(to bottom, black 40%, transparent);
+ }
+ main.bg-app [data-composer-backdrop] {
+ mask-image: linear-gradient(to bottom, transparent, black 20px);
+ }
+ }
+ /* In Tailwind's own layer, at a utility's weight, so hover and expanded fills still win over the glass. */
+ @layer utilities {
+ @scope ([data-skin="aurora"]:not([data-skin-preview])) to ([data-skin]) {
+ :where(main.bg-app) :is(.bg-card, .bg-composer) {
+ background-color: color-mix(in srgb, var(--color-card) 62%, transparent);
+ }
+ :where(main.bg-app) .bg-bubble-user {
+ background-color: color-mix(in srgb, var(--color-bubble-user) 78%, transparent);
+ }
+ }
}
}
@@@ -3072,9 -3156,9 +3247,10 @@@ button:disabled.bg-danger
outline-offset: -1.5px;
}
:root,
+:is([data-skin="midnight"], [data-skin="foundry"], [data-skin="graphite"], [data-skin="dusk"], [data-skin="halloween"], [data-skin="diwali"]) {
+ :is([data-skin="midnight"], [data-skin="foundry"], [data-skin="graphite"], [data-skin="dusk"], [data-skin="halloween"], [data-skin="aurora"]) {
--radius-menu: 12px;
- --menu-shadow: 0 0 #0000;
+ --menu-shadow: 0 14px 32px -10px rgb(0 0 0 / 0.7), 0 2px 8px rgb(0 0 0 / 0.35);
}
:is([data-skin="atelier"], [data-skin="lagoon"], [data-skin="linen"], [data-skin="meadow"], [data-skin="pop"]) {
--menu-shadow: 0 8px 24px -6px rgb(0 0 0 / 0.12), 0 1px 2px rgb(0 0 0 / 0.04);