mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-17 06:00:20 +02:00
Add paper component
This commit is contained in:
@@ -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>;
|
||||||
|
};
|
||||||
@@ -66,6 +66,8 @@
|
|||||||
--toast-description-fg: rgb(193, 194, 197);
|
--toast-description-fg: rgb(193, 194, 197);
|
||||||
--toast-bg: rgb(16, 16, 16);
|
--toast-bg: rgb(16, 16, 16);
|
||||||
|
|
||||||
|
--paper-bg: rgb(29, 29, 29);
|
||||||
|
|
||||||
.ag-theme-alpine-dark {
|
.ag-theme-alpine-dark {
|
||||||
--ag-borders: none;
|
--ag-borders: none;
|
||||||
--ag-background-color: #101010;
|
--ag-background-color: #101010;
|
||||||
|
|||||||
Reference in New Issue
Block a user