gitfoss | 19e345f2aad3515b33b9c6eef8d29ba884178fe0 | app/components/Card.styled.ts ∙ GitFOSS
.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;

  width: 100%;

  padding: 16px;

  ${({ themeScheme = "light" }) => css`
    background-color: ${NamedColors.CARD[themeScheme]};
    border: none !important;
  `};

  border-radius: 12px;
`;