feat(FN-1343): add rust, copper, foundry, carbon color themes

- Add rust, copper, foundry, carbon theme IDs to core types
- Register themes in ThemeSelector component and flash-prevention logic
- Add CSS theme blocks and swatches for all four new themes
- Add ThemeSelector unit tests for the new themes
- Update memory documentation with new theme count
This commit is contained in:
gsxdsm
2026-04-09 16:06:13 -07:00
parent 25d9121da3
commit c38e254258
7 changed files with 307 additions and 3 deletions

View File

@@ -116,6 +116,10 @@ describe("ThemeSelector", () => {
expect(screen.getByLabelText("Mars theme")).toBeDefined();
expect(screen.getByLabelText("Poimandres theme")).toBeDefined();
expect(screen.getByLabelText("Ember theme")).toBeDefined();
expect(screen.getByLabelText("Rust theme")).toBeDefined();
expect(screen.getByLabelText("Copper theme")).toBeDefined();
expect(screen.getByLabelText("Foundry theme")).toBeDefined();
expect(screen.getByLabelText("Carbon theme")).toBeDefined();
});
it("marks current color theme as active", () => {
@@ -438,6 +442,10 @@ describe("ThemeSelector", () => {
["espresso", "Espresso"],
["mars", "Mars"],
["poimandres", "Poimandres"],
["rust", "Rust"],
["copper", "Copper"],
["foundry", "Foundry"],
["carbon", "Carbon"],
] as const;
dramaticThemes.forEach(([value, label]) => {