This repo is intended to teach developers how to author Gatsby themes.
It uses Yarn workspaces.
It's already in devDependency
. I don't think you need to put it in dependency
since users might want to install newer versions
Following the course posted on egghead.io all goes well until part 9.
Steps to reproduce
Starting after lesson 8, setup the config and node files to accept options. At this point I start to receive the warning that the GraphQL query in the non-page component will not be run.
Note—I switched the terminology from events to categories, which you'll see in the console info I post below. That's just the naming, everything else has been the same.
Following the course posted on egghead.io all goes well until part 13.
Following the steps on how to consume a theme into a gatsby application i've ran into some issues with the styles not being applied.
theme-test
yarn init -y
@jlengstorf/gatsby-theme-events
, gatsby
, react
, react-dom
gatsby-cli
installed and updated i skipped the stepgatsby-config.js
with the following content:module.exports={
plugins:[
'@jlengstorf/gatsby-theme-events'
]
}
Continued on with the course to the final lesson.
Following the instructions on the final lesson to override the color the following folder structure was created:
| theme-test
|src
|@jlengstorf
|gatsby-theme-events
theme.js
theme.js
file:import {theme as BaseTheme} from '@jlengstorf/gatsby-theme-events/src/theme'
export const theme={
...BaseTheme,
colors:{
...BaseTheme.colors,
primary:'blue'
}
}
Restarted the development server and it should show me a header styled with the color blue but i'm presented with the same result as above.
The odd thing is that overriding the whole component via component shadowing works. Created src\@jlengstorf\gatsby-theme-events\components\layout.js
with the following contents:
import React from 'react';
export default ({children})=>(<>{children}</>)
Feel free to provide feedback
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.