use std::mem::size_of;
use crate::{
app::theme::{BorderSize, RadiusSize, RoleName, ShadowStyle, SpacingSize, TypographyStyle},
components::{ChromeTitleBar, WindowChrome},
node::{Element, Node, SpacingValue, padding::Padding},
};
const _: () = assert!(size_of::<RoleName>() <= 4);
const _: () = assert!(size_of::<SpacingSize>() <= 8);
const _: () = assert!(size_of::<RadiusSize>() <= 8);
const _: () = assert!(size_of::<BorderSize>() <= 8);
const _: () = assert!(size_of::<TypographyStyle>() <= 8);
const _: () = assert!(size_of::<ShadowStyle>() <= 8);
const _: () = assert!(size_of::<SpacingValue>() <= 12);
const _: () = assert!(size_of::<Padding>() <= 48);
const _: () = assert!(size_of::<Element>() <= size_of::<usize>());
const _: () = assert!(size_of::<Node>() <= 1176);
const _: () = assert!(size_of::<crate::node::layout_cache::LayoutCache>() <= 120);
const _: () = assert!(size_of::<WindowChrome>() <= 1024);
const _: () = assert!(size_of::<ChromeTitleBar>() <= 1024);