William Nemenchainitial commit
86fb32e9/11/2022, 1:13:39 AM
.ts
TypeScript
(application/typescript)
import styled, { css } from "styled-components";

import type { WithThemeSchemeProp } from "../types";
import { NamedColors } from "../utils/style";

export const Card = styled.div<WithThemeSchemeProp>`
  display: flex;
  flex-flow: column nowrap;

  padding: 16px;

  ${({ themeScheme = "light" }) => css`
    background-color: ${NamedColors.CARD[themeScheme]};
    border: 1px solid ${NamedColors.BORDER_CARD[themeScheme]};
  `};

  border-radius: 12px;
`;