github atlassian-labs/compiled v0.6.1

latest releases: @compiled/babel-plugin@0.26.3, @compiled/babel-plugin-strip-runtime@0.26.2, @compiled/webpack-loader@0.12.1...
3 years ago

New features

Functions with arguments static evaluation (#476)

Functions that take arguments can now be statically evaluated further, meaning you can further create reusable CSS atoms to reuse between components.

import '@compiled/react';

const font = color => ({
  color,
  fontSize: 20,
});

<div css={font('red')} />
.color-red { color: red; }
.font-size-20px { font-size: 20px; }

Don't miss a new compiled release

NewReleases is sending notifications on new releases.