Add paper component

This commit is contained in:
jeffvli
2022-11-03 03:17:27 -07:00
parent aeefbf8f7f
commit e9142ffaa5
2 changed files with 19 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import styled from '@emotion/styled';
import {
Paper as MantinePaper,
PaperProps as MantinePaperProps,
} from '@mantine/core';
export interface PaperProps extends MantinePaperProps {
children: React.ReactNode;
}
const StyledPaper = styled(MantinePaper)`
background: var(--paper-bg);
`;
export const Paper = ({ children, ...props }: PaperProps) => {
return <StyledPaper {...props}>{children}</StyledPaper>;
};
+2
View File
@@ -66,6 +66,8 @@
--toast-description-fg: rgb(193, 194, 197);
--toast-bg: rgb(16, 16, 16);
--paper-bg: rgb(29, 29, 29);
.ag-theme-alpine-dark {
--ag-borders: none;
--ag-background-color: #101010;