0.0.25 • Published 5 years ago
gatsby-theme-west-egg-style v0.0.25
gatsby-theme-west-egg-style
A Gatsby theme that provides a set of styled components.
Add to your Gatsby sites gatsby-config.js just like you would with a plugin.
module.exports = {
__experimentalThemes: ['gatsby-theme-west-egg-style']
}
Example usage:
import React from 'react';
import {Box, Title, Button, Grid, Container, Header, Hero, Content, Footer} from 'gatsby-theme-west-egg-style';
import colors from 'gatsby-theme-west-egg-style/src/utils/colors';
const boxes = [
<Box noBackground>
<Title fontWeight="400">Box 1</Title>
</Box>,
<Box color={colors.light}>
<Title fontWeight="400">Box 2</Title>
</Box>,
<Button text="I am a rad button"/>,
<Box noBackground>
<Title fontWeight="400">Box 4</Title>
</Box>,
<Button text="I am a rad button"/>,
<Box color={colors.accent}>
<Title fontWeight="400">Box 6</Title>
</Box>,
]
export default () => (
<Container>
<Header>
<Title>Gatbsy West Egg Theme</Title>
</Header>
<Hero>
<Box color={colors.accent}>
<Title fontSize="2rem">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Beatae at eius asperiores voluptatibus est, animi nemo odio recusandae ut cumque, iure, repellendus nam dolorem dignissimos dolore. Quia recusandae non molestias.
</Title>
</Box>
</Hero>
<Content>
<Box noBackground>
<Grid elements={boxes}/>
</Box>
</Content>
<Footer>
<Title fontSize="2rem">Some content here in the footer</Title>
</Footer>
</Container>
)
Produces:
Current status: WIP
Built With
Authors
- Rich Haines - Hungry Bear Studio
License
This project is licensed under the MIT License
0.0.25
5 years ago
0.0.24
5 years ago
0.0.23
5 years ago
0.0.22
5 years ago
0.0.21
5 years ago
0.0.20
5 years ago
0.0.19
5 years ago
0.0.18
5 years ago
0.0.17
5 years ago
0.0.16
5 years ago
0.0.15
5 years ago
0.0.14
5 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago