import { useSettings } from "@/store/settings"; import { Switch } from "@/ui/misc"; /** * The theme cards, each previewing the background it actually paints. Kept as * data rather than three inline ternaries so a fourth does not mean editing a * conditional in three places. */ const THEMES = [ { id: "system", label: "Match system", preview: "linear-gradient(90deg,#f6f8fa 50%,#0b1220 50%)" }, { id: "light", label: "Light", preview: "#f6f8fa" }, { id: "dark", label: "Dark", preview: "#0b1220" }, // The ihasmail.org palette: its background, with its teal and the logo's // orange showing, so the card looks like what picking it does. { id: "ihasmail", label: "ihasmail", preview: "linear-gradient(135deg,#0d2430 0%,#12303e 55%,#46cac3 55%,#46cac3 78%,#f9a34b 78%)" }, ] as const; const ACCENTS = [ { id: "teal", color: "#0f766e" }, { id: "blue", color: "#2563eb" }, { id: "purple", color: "#7c3aed" }, { id: "rose", color: "#e11d48" }, { id: "orange", color: "#ea580c" }, { id: "green", color: "#16a34a" }, ]; export function AppearanceSettings() { const s = useSettings((st) => st.settings); const update = useSettings((st) => st.update); return (
Make ihasmail yours.
ihasmail is the palette from ihasmail.org, and what a new account starts on. It is a dark theme, so it counts as dark wherever that matters, and the accent colour below still applies on top of it.