Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed May 17, 2024
1 parent 91f680d commit 9bc8026
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/styled-components/pages/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ const xVar = createVar<CSSPixelValue>({ value: "0" });

const StyledHeadline = styled.h1`
font-family: Arial, Helvetica, sans-serif;
font-size: ${theme.fontSize};
color: ${colorVar};
transform: translateX(${xVar});
width: calc(100% - 1 * ${xVar});
font-size: ${theme.fontSize.val};
color: ${colorVar.val};
transform: translateX(${xVar.val});
width: calc(100% - 1 * ${xVar.val});
`;

const FancyComponent: React.FunctionComponent<{color?:string}> = ({ color, children }) => {
Expand All @@ -64,8 +64,8 @@ const FancyComponent: React.FunctionComponent<{color?:string}> = ({ color, child
};

const BigBox = styled.div`
background: ${theme.colors.secondary};
padding: ${theme.spacings.m};
background: ${theme.colors.secondary.val};
padding: ${theme.spacings.m.val};
${colorVar.toStyle("grey")}
${xVar.toStyle('20px')}
Expand Down

0 comments on commit 9bc8026

Please sign in to comment.