This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: