use super::*;
vars! {
pub c_theme_light {
background: var!("role-background-light");
foreground: var!("role-foreground-light");
bg-overlay: "rgba(0, 0, 0, 0.45)";
card: var!("role-card-light");
card-foreground: var!("role-card-foreground-light");
popover: var!("role-popover-light");
popover-foreground: var!("role-popover-foreground-light");
primary: var!("role-primary-light");
primary-foreground: var!("role-primary-foreground-light");
primary-hover: var!("role-primary-hover-light");
secondary: var!("role-secondary-light");
secondary-foreground: var!("role-secondary-foreground-light");
muted: var!("role-muted-light");
muted-foreground: var!("role-muted-foreground-light");
accent: var!("role-accent-light");
accent-foreground: var!("role-accent-foreground-light");
destructive: var!("role-destructive-light");
destructive-foreground: var!("role-destructive-foreground-light");
success: var!("role-success-light");
success-foreground: var!("role-success-foreground-light");
success-container: var!("role-success-container-light");
warning: var!("role-warning-light");
warning-foreground: var!("role-warning-foreground-light");
warning-container: var!("role-warning-container-light");
error-container: var!("role-error-container-light");
border: var!("role-border-light");
input: var!("role-input-light");
ring: var!("role-ring-light");
scrollbar-track: "transparent";
scrollbar-thumb: var!("role-scrollbar-thumb-light");
scrollbar-thumb-hover: var!("role-scrollbar-thumb-hover-light");
scrollbar-thumb-active: var!("role-scrollbar-thumb-active-light");
space-2xs: "2px";
space-xs: "4px";
space-sm: "8px";
space-md: "12px";
space-lg: "16px";
space-xl: "20px";
space-2xl: "24px";
space-3xl: "32px";
space-4xl: "40px";
space-7xl: "80px";
gap-section: "16px";
gap-section-mobile: "12px";
gap-component: "12px";
gap-component-mobile: "10px";
gap-element: "8px";
gap-inline: "8px";
gap-page-header: "16px";
gap-page-title: "6px";
page-block-gap: "24px";
page-block-gap-mobile: "20px";
side-indent: "9px";
side-indent-num: "9";
duration-fast: "0.15s";
duration-normal: "0.2s";
duration-slower: "0.4s";
duration-overlay: "0.2s";
duration-modal-overlay: "0.15s";
duration-modal-content: "0.3s";
ease-out: "cubic-bezier(0.4, 0, 0.2, 1)";
ease-in: "cubic-bezier(0.4, 0, 1, 1)";
ease-in-out: "cubic-bezier(0.4, 0, 0.2, 1)";
ease-bounce: "cubic-bezier(0.34, 1.56, 0.64, 1)";
safe-area-inset-top: "var(--euv-mobile-safe-top, 0px)";
safe-area-inset-right: "var(--euv-safe-right, 0px)";
safe-area-inset-bottom: "var(--euv-safe-bottom, 0px)";
safe-area-inset-left: "var(--euv-safe-left, 0px)";
padding-shell-top: var!(safe-area-inset-top);
padding-shell-bottom: var!(safe-area-inset-bottom);
padding-main-top: "24px";
padding-main-top-mobile: "16px";
edge-gutter: "28px";
edge-gutter-mobile: "16px";
edge-gutter-nav: "20px";
edge-gutter-bottom: "20px";
padding-main-horizontal: var!(edge-gutter);
padding-main-horizontal-mobile: var!(edge-gutter-mobile);
nav-width: format!("clamp({}, 22%, {})", var!(nav-width-min), var!(nav-width-max));
nav-width-min: "248px";
nav-width-max: "320px";
content-max-width: "820px";
text-measure: "360px";
mobile-header-height: "52px";
}
pub c_theme_dark {
background: var!("role-background-dark");
foreground: var!("role-foreground-dark");
bg-overlay: "rgba(0, 0, 0, 0.65)";
card: var!("role-card-dark");
card-foreground: var!("role-card-foreground-dark");
popover: var!("role-popover-dark");
popover-foreground: var!("role-popover-foreground-dark");
primary: var!("role-primary-dark");
primary-foreground: var!("role-primary-foreground-dark");
primary-hover: var!("role-primary-hover-dark");
secondary: var!("role-secondary-dark");
secondary-foreground: var!("role-secondary-foreground-dark");
muted: var!("role-muted-dark");
muted-foreground: var!("role-muted-foreground-dark");
accent: var!("role-accent-dark");
accent-foreground: var!("role-accent-foreground-dark");
destructive: var!("role-destructive-dark");
destructive-foreground: var!("role-destructive-foreground-dark");
success: var!("role-success-dark");
success-foreground: var!("role-success-foreground-dark");
success-container: var!("role-success-container-dark");
warning: var!("role-warning-dark");
warning-foreground: var!("role-warning-foreground-dark");
warning-container: var!("role-warning-container-dark");
error-container: var!("role-error-container-dark");
border: var!("role-border-dark");
input: var!("role-input-dark");
ring: var!("role-ring-dark");
scrollbar-track: "transparent";
scrollbar-thumb: var!("role-scrollbar-thumb-dark");
scrollbar-thumb-hover: var!("role-scrollbar-thumb-hover-dark");
scrollbar-thumb-active: var!("role-scrollbar-thumb-active-dark");
space-2xs: "2px";
space-xs: "4px";
space-sm: "8px";
space-md: "12px";
space-lg: "16px";
space-xl: "20px";
space-2xl: "24px";
space-3xl: "32px";
space-4xl: "40px";
space-7xl: "80px";
gap-section: "16px";
gap-section-mobile: "12px";
gap-component: "12px";
gap-component-mobile: "10px";
gap-element: "8px";
gap-inline: "8px";
gap-page-header: "16px";
gap-page-title: "6px";
page-block-gap: "24px";
page-block-gap-mobile: "20px";
duration-fast: "0.15s";
duration-normal: "0.2s";
duration-slower: "0.4s";
duration-overlay: "0.2s";
duration-modal-overlay: "0.15s";
duration-modal-content: "0.3s";
ease-out: "cubic-bezier(0.4, 0, 0.2, 1)";
ease-in: "cubic-bezier(0.4, 0, 1, 1)";
ease-in-out: "cubic-bezier(0.4, 0, 0.2, 1)";
ease-bounce: "cubic-bezier(0.34, 1.56, 0.64, 1)";
safe-area-inset-top: "var(--euv-mobile-safe-top, 0px)";
safe-area-inset-right: "var(--euv-safe-right, 0px)";
safe-area-inset-bottom: "var(--euv-safe-bottom, 0px)";
safe-area-inset-left: "var(--euv-safe-left, 0px)";
padding-shell-top: var!(safe-area-inset-top);
padding-shell-bottom: var!(safe-area-inset-bottom);
padding-main-top: "24px";
padding-main-top-mobile: "16px";
edge-gutter: "28px";
edge-gutter-mobile: "16px";
edge-gutter-nav: "20px";
edge-gutter-bottom: "20px";
padding-main-horizontal: var!(edge-gutter);
padding-main-horizontal-mobile: var!(edge-gutter-mobile);
nav-width: format!("clamp({}, 22%, {})", var!(nav-width-min), var!(nav-width-max));
nav-width-min: "248px";
nav-width-max: "320px";
content-max-width: "820px";
text-measure: "360px";
mobile-header-height: "52px";
}
}
#[rustfmt::skip]
#[cfg(feature = "theme-shadcn")]
fn selected_scheme_class() -> &'static str {
c_scheme_shadcn().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), feature = "theme-monochrome"))]
fn selected_scheme_class() -> &'static str {
c_scheme_monochrome().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), not(feature = "theme-monochrome"), feature = "theme-antdesign"))]
fn selected_scheme_class() -> &'static str {
c_scheme_antdesign().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), not(feature = "theme-monochrome"), not(feature = "theme-antdesign"), feature = "theme-material"))]
fn selected_scheme_class() -> &'static str {
c_scheme_material().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), not(feature = "theme-monochrome"), not(feature = "theme-antdesign"), not(feature = "theme-material"), feature = "theme-bootstrap"))]
fn selected_scheme_class() -> &'static str {
c_scheme_bootstrap().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), not(feature = "theme-monochrome"), not(feature = "theme-antdesign"), not(feature = "theme-material"), not(feature = "theme-bootstrap"), feature = "theme-cupertino"))]
fn selected_scheme_class() -> &'static str {
c_scheme_cupertino().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), not(feature = "theme-monochrome"), not(feature = "theme-antdesign"), not(feature = "theme-material"), not(feature = "theme-bootstrap"), not(feature = "theme-cupertino"), feature = "theme-fluent"))]
fn selected_scheme_class() -> &'static str {
c_scheme_fluent().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), not(feature = "theme-monochrome"), not(feature = "theme-antdesign"), not(feature = "theme-material"), not(feature = "theme-bootstrap"), not(feature = "theme-cupertino"), not(feature = "theme-fluent"), feature = "theme-radix"))]
fn selected_scheme_class() -> &'static str {
c_scheme_radix().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), not(feature = "theme-monochrome"), not(feature = "theme-antdesign"), not(feature = "theme-material"), not(feature = "theme-bootstrap"), not(feature = "theme-cupertino"), not(feature = "theme-fluent"), not(feature = "theme-radix"), feature = "theme-mantine"))]
fn selected_scheme_class() -> &'static str {
c_scheme_mantine().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), not(feature = "theme-monochrome"), not(feature = "theme-antdesign"), not(feature = "theme-material"), not(feature = "theme-bootstrap"), not(feature = "theme-cupertino"), not(feature = "theme-fluent"), not(feature = "theme-radix"), not(feature = "theme-mantine"), feature = "theme-daisyui"))]
fn selected_scheme_class() -> &'static str {
c_scheme_daisyui().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), not(feature = "theme-monochrome"), not(feature = "theme-antdesign"), not(feature = "theme-material"), not(feature = "theme-bootstrap"), not(feature = "theme-cupertino"), not(feature = "theme-fluent"), not(feature = "theme-radix"), not(feature = "theme-mantine"), not(feature = "theme-daisyui"), feature = "theme-heroui"))]
fn selected_scheme_class() -> &'static str {
c_scheme_heroui().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), not(feature = "theme-monochrome"), not(feature = "theme-antdesign"), not(feature = "theme-material"), not(feature = "theme-bootstrap"), not(feature = "theme-cupertino"), not(feature = "theme-fluent"), not(feature = "theme-radix"), not(feature = "theme-mantine"), not(feature = "theme-daisyui"), not(feature = "theme-heroui"), feature = "theme-park"))]
fn selected_scheme_class() -> &'static str {
c_scheme_park().get_name()
}
#[rustfmt::skip]
#[cfg(all(not(feature = "theme-shadcn"), not(feature = "theme-monochrome"), not(feature = "theme-antdesign"), not(feature = "theme-material"), not(feature = "theme-bootstrap"), not(feature = "theme-cupertino"), not(feature = "theme-fluent"), not(feature = "theme-radix"), not(feature = "theme-mantine"), not(feature = "theme-daisyui"), not(feature = "theme-heroui"), not(feature = "theme-park"), feature = "theme-geist"))]
fn selected_scheme_class() -> &'static str {
c_scheme_geist().get_name()
}
#[rustfmt::skip]
#[cfg(not(any(feature = "theme-shadcn", feature = "theme-monochrome", feature = "theme-antdesign", feature = "theme-material", feature = "theme-bootstrap", feature = "theme-cupertino", feature = "theme-fluent", feature = "theme-radix", feature = "theme-mantine", feature = "theme-daisyui", feature = "theme-heroui", feature = "theme-park", feature = "theme-geist")))]
fn selected_scheme_class() -> &'static str {
c_scheme_shadcn().get_name()
}
pub fn scheme_class_name() -> &'static str {
selected_scheme_class()
}
pub fn scheme_name() -> &'static str {
let class: &str = scheme_class_name();
class.strip_prefix(SCHEME_CLASS_PREFIX).unwrap_or(class)
}