Skip to content

Commit

Permalink
Update theme-color.mjs
Browse files Browse the repository at this point in the history
Co-authored-by: Cole Peters <[email protected]>
  • Loading branch information
kristoferjoseph and colepeters authored Sep 27, 2023
1 parent 44b69ad commit 9cd83db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions theme-color.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export default function themeColor({ config }) {
const defaultDark = '#343a40'
const lightParts = hextohsl(theme['light'] || defaultLight);
const darkParts = hextohsl(theme['dark'] || defaultDark)
const accentColor = theme['accent'] || '#663399'
const accentContrastColor = theme['accent-contrast'] || defaultDark
theme['accent'] = theme['accent'] || accentColor
theme['accent-contrast'] = theme['accent-contrast'] || accentContrastColor
const defaultAccent = '#663399'
const defaultAccentContrast = defaultDark
theme['accent'] = theme['accent'] || defaultAccent
theme['accent-contrast'] = theme['accent-contrast'] || defaultAccentContrast


function colorSteps(color, name) {
Expand Down

0 comments on commit 9cd83db

Please sign in to comment.