Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix: theme ui used default colours instead of the theme when no defau…
Browse files Browse the repository at this point in the history
…lt colors were provided
  • Loading branch information
mrmartineau committed Aug 21, 2020
1 parent 2b026e2 commit 4cf22cc
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions gatsby-theme-code-notes/src/gatsby-plugin-theme-ui/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,43 @@ export const baseColors = {
dark: '#2d3748',
}

const lightTheme = {
text: baseColors.dark,
background: 'hsl(210, 38%, 95%)',
scrollbar: 'hsl(210, 20%, 85%)',
backgroundTransparent: 'hsla(210, 38%, 95%, 0.72)',
contentBg: baseColors.light,
primary: 'hsl(334, 86%, 48%)',
primarySemiTransparent: 'hsla(334, 86%, 48%, 0.5)',
secondary: '#718096',
muted: '#e2e8f0',
success: '#9ae6b4',
info: '#63b3ed',
warning: '#faf089',
danger: '#feb2b2',
navHover: '#cbd5e0',
codeBackground: 'hsl(210,38%,95%)',
codeHighlight: 'hsl(210,38%,90%)',
codeHighlightBorder: 'hsl(210,38%,85%)',
badgeBg: 'hsl(210, 25%, 97%)',
badgeBgHover: 'hsl(210, 25%, 89%)',
badgeBorder: 'hsl(207, 24%, 83%)',
input: '#92A2B9',
code1: '#d03592',
code2: '#fc9867',
code3: '#f66a0a',
code4: '#0366d6',
code5: '#6f42c1',
code6: '#0366d6',
code7: '#999988',
highlight: '#fff176',
around: '#1aa6e9',
crossed: '#e9522c',
}

export const colors = {
...baseColors,

...lightTheme,
modes: {
dark: {
text: 'hsl(210, 38%, 95%)',
Expand Down Expand Up @@ -43,38 +77,6 @@ export const colors = {
around: '#1aa6e9',
crossed: '#e9522c',
},
light: {
text: baseColors.dark,
background: 'hsl(210, 38%, 95%)',
scrollbar: 'hsl(210, 20%, 85%)',
backgroundTransparent: 'hsla(210, 38%, 95%, 0.72)',
contentBg: baseColors.light,
primary: 'hsl(334, 86%, 48%)',
primarySemiTransparent: 'hsla(334, 86%, 48%, 0.5)',
secondary: '#718096',
muted: '#e2e8f0',
success: '#9ae6b4',
info: '#63b3ed',
warning: '#faf089',
danger: '#feb2b2',
navHover: '#cbd5e0',
codeBackground: 'hsl(210,38%,95%)',
codeHighlight: 'hsl(210,38%,90%)',
codeHighlightBorder: 'hsl(210,38%,85%)',
badgeBg: 'hsl(210, 25%, 97%)',
badgeBgHover: 'hsl(210, 25%, 89%)',
badgeBorder: 'hsl(207, 24%, 83%)',
input: '#92A2B9',
code1: '#d03592',
code2: '#fc9867',
code3: '#f66a0a',
code4: '#0366d6',
code5: '#6f42c1',
code6: '#0366d6',
code7: '#999988',
highlight: '#fff176',
around: '#1aa6e9',
crossed: '#e9522c',
},
light: lightTheme,
},
}

0 comments on commit 4cf22cc

Please sign in to comment.