-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Document theme options in readme #523
Comments
@imnotashrimp awesome! Thanks! The preferred way to use a theme is to pass it in the options of Redoc.init('http://petstore.swagger.io/v2/swagger.json', {
theme: {
main: '#ff0000'
}
}, document.getElementById('redoc-container')) See the default theme for details: https://github.com/Rebilly/ReDoc/blob/master/src/theme.ts#L3 note you can use functions in the theme e.g.: Theme can't be used on Feel free to ask additional question! |
So did I understand correctly that you can not theme ReDoc by using You have to use React component or Redoc.init to actually be able to theme anything? |
@jjylha, yes, you've got it correctly. |
@imnotashrimp Any updates on this? |
Following |
3 similar comments
Following |
Following |
Following |
PR for this opened here #1438 |
PR was merged, I think this ticket can be closed. |
I am a bit confused. |
@RomanHotsiy , hello Can be used on tag attributes? |
Documentation for the configuration, including theme options, has been updated. Find it here: https://redocly.com/docs/redoc/config/ |
I'd like to volunteer to write usage of the
theme
options.Any chance you can give me some guidance on how to use it so I can get started?
The text was updated successfully, but these errors were encountered: