Skip to content

Instantly share code, notes, and snippets.

@Ovyerus
Created April 10, 2019 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ovyerus/aa98719afff6c33fcd8fb889ef057c34 to your computer and use it in GitHub Desktop.
Save Ovyerus/aa98719afff6c33fcd8fb889ef057c34 to your computer and use it in GitHub Desktop.
next-css `:export` issue
import styled from '@emotion/styled';
import variables from '../assets/styles/css';
export const CoolStyledButton = styled.button`
color: ${variables.primaryText};
background: ${variables.background};
`;
import CoolStyledButton from '../components/cool-button';
export default () => (
<>
<h1>Some cool thing</h1>
<CoolStyledButton/>
</>
);
:export {
primaryText: rgba(0, 0, 0, 0.87);
secondaryText: rgba(0, 0, 0, 0.50);
background: #C770F9;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment