1import { getMaterialColors, isDynamicColorAvailable } from "@expo/ui/jetpack-compose";
2
3import type { MaterialYouPalettes } from "./materialYouPalette";
4
5export const isSystemColorsAvailable = isDynamicColorAvailable;
6
7export function readSystemColorPalettes(): MaterialYouPalettes | null {
8 if (!isDynamicColorAvailable) return null;
9
10 return {
11 light: getMaterialColors({ scheme: "light" }),
12 dark: getMaterialColors({ scheme: "dark" }),
13 };
14}