Skip to content

Instantly share code, notes, and snippets.

@colebemis
Created April 15, 2021 15:36
Show Gist options
  • Save colebemis/8bb7f7c9ab82ca51c8888247635d3783 to your computer and use it in GitHub Desktop.
Save colebemis/8bb7f7c9ab82ca51c8888247635d3783 to your computer and use it in GitHub Desktop.
Custom link color with @primer/components
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