add all the colors

This commit is contained in:
Pas 2026-02-20 19:40:58 -07:00
parent 51e30c978a
commit 7c9f3c7564

View file

@ -1,27 +1,15 @@
import merge from "lodash.merge"; import merge from "lodash.merge";
import { createTheme } from "./types"; import { createTheme } from "./types";
import { defaultTheme } from "./default"; import { defaultTheme } from "./default";
import classic from "./list/classic";
import blue from "./list/blue";
import red from "./list/red";
import teal from "./list/teal";
import green from "./list/green";
import pink from "./list/pink";
import autumn from "./list/autumn";
import frost from "./list/frost";
import grape from "./list/grape";
import { colorToRgbString } from "../src/utils/color"; import { colorToRgbString } from "../src/utils/color";
import { allThemes } from "./all";
const availableThemes = [ const availableThemes = [
{ id: "classic", theme: classic }, { id: "default", theme: defaultTheme },
{ id: "blue", theme: blue }, ...allThemes.map((t) => ({
{ id: "red", theme: red }, id: t.name,
{ id: "teal", theme: teal }, theme: { extend: t.extend },
{ id: "green", theme: green }, })),
{ id: "pink", theme: pink },
{ id: "autumn", theme: autumn },
{ id: "frost", theme: frost },
{ id: "grape", theme: grape },
]; ];
function cssVarName(path: string) { function cssVarName(path: string) {