mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 00:33:59 +00:00
24 lines
521 B
TypeScript
24 lines
521 B
TypeScript
import { isValidHexColor } from "@main/helpers";
|
|
import { z } from "zod";
|
|
|
|
const hexColorSchema = z.string().refine(isValidHexColor);
|
|
type HexColorType = z.infer<typeof hexColorSchema>;
|
|
|
|
export interface Theme {
|
|
id: string;
|
|
name: string;
|
|
colors: {
|
|
accent: HexColorType;
|
|
background: HexColorType;
|
|
surface: HexColorType;
|
|
optional1?: HexColorType;
|
|
optional2?: HexColorType;
|
|
};
|
|
description?: string;
|
|
author: number;
|
|
isActive: boolean;
|
|
code: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}
|