Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make some things easier to shadow #18

Open
jnielson94 opened this issue Apr 9, 2020 · 0 comments
Open

Make some things easier to shadow #18

jnielson94 opened this issue Apr 9, 2020 · 0 comments

Comments

@jnielson94
Copy link
Contributor

This is a bit of a bigger thing I've run into a few times when I have little tweaks I want to make. For instance, I'm in the process of adjusting my colors to better contrast, but in order to change the global styles I have to shadow the entire Layout file. It seems like it'd be possible to extract the getGlobalStyles function to it's own file, allowing it to be shadowed independently of the rest of the Layout.

I also ran into a similar issue with the home page, which has the Hero component embedded in the file making it impossible to shadow that component on its own and therefore needing to replace the entire index page. I eventually wanted to replace it to remove the pagination of posts and so that I can add other things to the home page in the near future... but that was another example of something that could probably be extracted out to make it easier to shadow specific things. Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant