Skip to content

Commit

Permalink
color palette styling
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-corson-ibigroup committed Sep 29, 2023
1 parent ab79b68 commit 49e5755
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/building-blocks/src/stories/ColorPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,23 @@ interface Props {
}

const ColorBlock = styled.div<{ hex: string }>`
height: 40px;
width: 300px;
align-items: center;
background-color: ${props => props.hex};
color: ${props => getMostReadableTextColor(props.hex, "#ffffff")};
margin: 0;
display: flex;
font-family: Arial, Helvetica, sans-serif;
height: 40px;
justify-content: space-between;
margin: 0;
padding: 10px;
width: 300px;
&:first-of-type {
border-radius: 8px 8px 0 0;
}
&:last-of-type {
border-radius: 0 0 8px 8px;
}
`;

const ColorPalette = ({ color }: Props): JSX.Element => {
Expand Down

0 comments on commit 49e5755

Please sign in to comment.