Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

andrictham/gatsbyjs-css-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gatsby CSS Examples

There are three branches in this project:

  • css-modules-with-scss contains an example of using CSS Modules preprocessed with Sass. Sass is loaded in as a Gatsby plugin. Styles are defined in separate files then imported into our js files, much like regular ol’ CSS.

  • glamor contains an example of using Galmor. Glamor is loaded in as a Gatsby plugin. Styles are defined inline, just like in React Native, except that you have access to extra CSS properties in Glamor, such as @media queries and pseudo-selectors.

  • styled-components contains an example of using styled-components. styled-components is loaded in as a Gatsby plugin. Styles are defined in the same file as our React component, and they “create” named components wrapped with styles we desire, all written in regular ol’ CSS syntax. This allows us to write style definitions separately and in regular ol’ CSS syntax, all while removing the binding between className and CSS class names.

Releases

No releases published

Packages

No packages published