Skip to content

Commit

Permalink
Adds back primary for example in form elements
Browse files Browse the repository at this point in the history
  • Loading branch information
kj committed Oct 6, 2023
1 parent 8c0e526 commit ae51c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"theme": {
"light": "#f8f9fa",
"dark": "#343a40",
"accent": "#007aff"
"accent": "#007aff",
"primary": "#007aff"
},
"color": {
"error": "#ff3b2f",
Expand Down
3 changes: 1 addition & 2 deletions theme-color.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ export default function themeColor({ config }) {
const defaultLight = '#f8f9fa'
const defaultDark = '#343a40'
const lightParts = hextohsl(theme['light'] || defaultLight);
const darkParts = hextohsl(theme['dark'] || defaultDark)
const defaultAccent = '#663399'
const defaultAccent = '#007aff'
const defaultAccentContrast = defaultDark
theme['accent'] = theme['accent'] || defaultAccent
theme['accent-contrast'] = theme['accent-contrast'] || defaultAccentContrast
Expand Down

0 comments on commit ae51c76

Please sign in to comment.