Created
April 15, 2021 15:36
-
-
Save colebemis/8bb7f7c9ab82ca51c8888247635d3783 to your computer and use it in GitHub Desktop.
Custom link color with @primer/components
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {ThemeProvider, theme} from '@primer/components' | |
import deepmerge from 'deepmerge' | |
const customTheme = deepmerge(theme, { | |
colorSchemes: { | |
light: { | |
colors: { | |
text: { | |
link: 'your color here' | |
} | |
} | |
}, | |
dark: { | |
colors: { | |
text: { | |
link: 'your color here' | |
} | |
} | |
} | |
} | |
}) | |
function App() { | |
return ( | |
<ThemeProvider theme={customTheme}> | |
<div>...</div> | |
</ThemeProvider> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment