diff --git a/sections/Theme/Theme.tsx b/sections/Theme/Theme.tsx
index 17241025..766f4440 100644
--- a/sections/Theme/Theme.tsx
+++ b/sections/Theme/Theme.tsx
@@ -6,6 +6,7 @@
*/
import SiteTheme, { Font } from "apps/website/components/Theme.tsx";
import Color from "npm:colorjs.io";
+import type { ComponentChildren } from "preact";
export interface ThemeColors {
/**
@@ -130,6 +131,10 @@ export interface Props {
buttonStyle?: Button;
otherStyles?: Miscellaneous;
font?: Font;
+ /**
+ * @description This is the admin's color-scheme mode
+ */
+ mode?: "dark" | "light";
}
type Theme =
@@ -272,184 +277,125 @@ function Section({
}
export function Preview(props: Props) {
+ const adminColorMode = props.mode === "dark" ? "dark" : "light";
return (
<>
+ {
+ /* This stylesheet is used to simulate the colors from the admin's color schema (admin's light or dark mode), which are not accessible in the site's color schema.
+ * This is a temporary solution until the admin's color schema is accessible.
+ * TODO(@carol): Change this temporary solution.
+ */
+ }
+
-