Skip to content

Instantly share code, notes, and snippets.

@cpv123
Created August 27, 2020 04:25
Show Gist options
  • Save cpv123/41320133c2bf5ece15b5ec9a5a9b703a to your computer and use it in GitHub Desktop.
Save cpv123/41320133c2bf5ece15b5ec9a5a9b703a to your computer and use it in GitHub Desktop.
import React from 'react';
import styled from 'styled-components';
const StyledTitle = styled.h1`
font-size: 1.5em;
text-align: center;
color: palevioletred;
`;
// usage
<StyledTitle>My styled title</StyledTitle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment