-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How to update styles of playground preview without overriding Playground component #1360
Comments
A global CSS selector worked for me Creating a custom component might work too |
lol... that's my comment 😊 glad it worked |
Not sure but you probably could shadow the styles.js file I guess? import { preview as defaultPreview } from 'gatsby-theme-docz/src/components/Playground/styles'
export * from 'gatsby-theme-docz/src/components/Playground/styles.js'
export const editor = {
...defaultPreview,
padding: '100px',
} |
+1 to use Theme UI for the Playground component |
@abdullahtariq1171 Has your question been answered? |
hey @mickaelzhang yeah your solution looks better than using global css selector. I discovered shadowing component technique late. Thanks Solution: #1360 (comment) Closing the issue. |
Question
How to update styles of playground preview without overriding Playground component.
Description
I want to customize playground styles, (this line in particular
docz/core/gatsby-theme-docz/src/components/Playground/styles.js
Line 41 in 95b0d7f
The text was updated successfully, but these errors were encountered: