Skip to content

Custom Theme #1841

Answered by plouc
krau5 asked this question in Q&A
Nov 30, 2021 · 3 comments
Discussion options

You must be logged in to vote

The theme object can be customized, using TypeScript will probably help for discoverability, but otherwise, you can have a look at the default theme here: https://github.com/plouc/nivo/blob/master/packages/core/src/theming/defaultTheme.js.

@krau5 it's not really hardcoded, it acts as a base for custom themes so that you don't have to define everything, your custom theme is merged with this one.

You can also have a look at the TS definition for it to see what you can customize: https://github.com/plouc/nivo/blob/master/packages/core/index.d.ts#L53.

I added a guide on how to use the theme object, but it's not complete yet: https://nivo.rocks/guides/theming/.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by plouc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants