Skip to content

Instantly share code, notes, and snippets.

@LukeSmetham
Created January 20, 2020 10:14
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 LukeSmetham/321835a70731dd0c9cb24ce73dc9aad8 to your computer and use it in GitHub Desktop.
Save LukeSmetham/321835a70731dd0c9cb24ce73dc9aad8 to your computer and use it in GitHub Desktop.
import React from 'react';
import styled from 'styled-components';
// By using string interpolation to wrap a function in
// your style definition, you can access the props of the
// component & the theme.
const Button = styled.button`
color: ${({ theme }) => theme.color.blue};
`;
export default () => {
return (
<Button />
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment