gitfoss-fork-fork | 1ec50a112cff3d7df542a62b05b73853491e9524 | app/components/Card.styled.ts ∙ GitFOSS
fe04f67 (parent 5c6496d)5/9/2026, 8:25:56 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;

  width: 100%;

  padding: 16px;

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

  border-radius: 8px;
`;