UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

23 lines 1.19 kB
import { RADIUS } from '../../../../../designSystem/kubitWireframe/commons/foundations/borders'; import { SPACINGS } from '../../../../../designSystem/kubitWireframe/commons/foundations/spacings'; import { Z_INDEX } from '../../../../../designSystem/kubitWireframe/commons/foundations/zIndex'; import { shadowAfterStyles, transformShadow } from '../../../utils/wireframe'; import { OverlayVariantType } from './variants'; export const getOverlayStyles = (COLORS) => { return { [OverlayVariantType.DEFAULT]: { container: { top: SPACINGS.spacing_0, left: SPACINGS.spacing_0, z_index: Z_INDEX.OVERLAY, width: `calc(${SPACINGS.spacing_100_vw} - ${SPACINGS.spacing_150})`, height: `calc(${SPACINGS.spacing_100_vh} - ${SPACINGS.spacing_150})`, background_color: COLORS.NEUTRAL.color_neutral_border_200, ...transformShadow(RADIUS.radius_00), ...shadowAfterStyles(RADIUS.radius_00, COLORS.BRAND.color_brand_bg_50, SPACINGS.spacing_50), position: 'fixed', }, }, }; }; //# sourceMappingURL=styles.js.map