gatsbyjs / gatsby-starter-wordpress-blog

BSD Zero Clause License
103 stars 130 forks source link

updating to latest block library code? #21

Open zachatkinson opened 2 years ago

zachatkinson commented 2 years ago

Hi folks,

I am currently working on a headless setup with this starter. I'm not sure if I should be using the "home page starter" instead, but that looks more like it's for single-page applications. I've made good progress on my theme by working with the unit tests provided but noticed Gutenberg galleries use different classes than what is currently being used with the latest version of WordPress. I see the TODO on single and archive pages noting an issue with the postCSS that the wordpress package uses. Is this still an issue? I added @wordpress to my node modules and just took the new gallery code, cut and paste it over the old in the stylesheet that his been migrated locally, but I'm wondering if I should just be directly calling these stylesheets from the package itself instead of the copies that we have.

The copies are working great minus the gallery code needing updated, but I'm curious if I shouldn't get too ahead of myself if I'm doing things the "wrong" way.

As an aside, if I did decide to import the styles directly from the node_modules folder, should my overwrites for styles just go into my defauly styles.css? I assume yes, but Im worried this will lead to unused CSS, as It's been a while since I've done a GatsbyJS project and I can't recall if it strips out unused or overwritten css on build.