import { css } from "@linaria/core"; import { h, Fragment, VNode, ComponentChildren } from "preact"; import { alpha } from "./colors/manipulation"; import { theme } from "./style"; const borderVariant = { outlined: css` border: 1px solid ${theme.palette.divider}; `, elevation: css` box-shadow: var(--theme-shadow-elevation); `, }; const baseStyle = css` background-color: ${theme.palette.background.paper}; color: ${theme.palette.text.primary}; .theme-dark & { background-image: var(--gradient-white-elevation); } `; export function Paper({ elevation = 1, square, variant = "elevation", children, }: { elevation?: number; square?: boolean; variant?: "elevation" | "outlined"; children?: ComponentChildren; }): VNode { return (