Skip to content

Instantly share code, notes, and snippets.

@btodts
Last active April 8, 2020 07:53
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 btodts/182977854a86f14e54b51807ed43c7fb to your computer and use it in GitHub Desktop.
Save btodts/182977854a86f14e54b51807ed43c7fb to your computer and use it in GitHub Desktop.
import React from "react";
import styled, { ThemeProvider } from "styled-components";
const Container = styled.div`
display: flex;
flex-direction: column;
width: 100vw;
height: 100vh;
align-items: center;
justify-content: center;
font-family: sans-serif;
`;
const App = () => (
<ThemeProvider theme={{ theme: "light" }}>
<Container>
<h1>My Dark Theme Is Better Than Yours</h1>
<p>
<input type="checkbox"></input> Use Dark Theme
</p>
</Container>
</ThemeProvider>
);
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment