Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.