Skip to content

v0.4.1

Compare
Choose a tag to compare
@itsdouges itsdouges released this 26 May 11:30
· 1362 commits to master since this release

Small bug fix release.

Bug fixes

Styled interpolation fixes (#198)

Some style interpolations weren't being applied correctly and would result in a build time exception - or even worse just broken CSS!

Here are some examples that were broken before but now work:

const Div = styled.div`
  border-radius: ${2 + 2}px;
  color: blue;
`;
const getBr = () => 4;

const Div = styled.div`
  border-radius: ${getBr}px;
  color: red;
`;
const getBr = () => {
  return true ? 'red' : 'blue';
};
        
const Div = styled.div`
  font-size: ${getBr()}px;
  color: red;
`;

Happy styling! 🥳