import { ComponentPropsWithoutRef } from 'react'; import { CartoThemeWrapperVariants } from './CartoTheme.css'; export type CartoThemeAppearance = NonNullable; /** * Token and overlay boundary. Nested themes override appearance for their * subtree; {@link useCartoTheme} reads the nearest resolved value. */ export type CartoThemeProps = Omit, "style"> & { /** * `"auto"` (default) follows the OS preference; `"light"` / `"dark"` force * one. Applied via `color-scheme`, which `carto-tokens`'s `light-dark(…)` * values honor. */ appearance?: CartoThemeAppearance; };