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?
Activity
[-]document theme options in readme[/-][+]Document theme options in readme[/+]RomanHotsiy commentedon Jun 1, 2018
@imnotashrimp awesome! Thanks!
The preferred way to use a theme is to pass it in the options of
Redoc.initcall: https://github.com/Rebilly/ReDoc#advanced-usage-of-standalone-version: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.:
https://github.com/Rebilly/ReDoc/blob/63ae2e8e943b1cf2838db20c6c567156a2bfac45/src/theme.ts#L35
Theme can't be used on
<redoc>tag attributes yet.Feel free to ask additional question!
jjylha commentedon Jun 8, 2018
So did I understand correctly that you can not theme ReDoc by using
<redoc theme="">at all the moment?You have to use React component or Redoc.init to actually be able to theme anything?
RomanHotsiy commentedon Jun 18, 2018
@jjylha, yes, you've got it correctly.
ShaneGMamet commentedon Nov 26, 2018
@imnotashrimp Any updates on this?
KimThibault commentedon Jan 29, 2019
Following
adeelibr commentedon Aug 26, 2019
Following
AlbertSuarez commentedon Sep 17, 2019
Following
sid22 commentedon Oct 22, 2019
Following
kscheirer commentedon Oct 27, 2020
PR for this opened here #1438
kscheirer commentedon Jan 20, 2021
PR was merged, I think this ticket can be closed.
rbruggem commentedon May 18, 2021
I am a bit confused.
From https://github.com/Redocly/redoc#tldr, how do I apply https://github.com/Redocly/redoc#redoc-theme-object ?
siarhei-kurhuzenkau-idf commentedon Nov 5, 2021
@RomanHotsiy , hello
Can be used on tag attributes?
lornajane commentedon Nov 9, 2023
Documentation for the configuration, including theme options, has been updated. Find it here: https://redocly.com/docs/redoc/config/