-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: bg colors * feat: dark bg colors * feat: apply dark bg colors * feat: dark foreground * feat: separate dark and light * fix: colors dark + light seperation * fix: cleanup colors * feat: change button color names * fix: button colors * fix: checkbox colors * fix: radio colors * fix: steps * fix: colors doc * fix: address some comments * fix: color inversion + remove DEFAULT * fix: remove inverted pink from colors * fix: show default / dark on separate horizontal banners * fix: clean up * fix: reference darkmode * fix: remove inverted colors
- Loading branch information
Showing
15 changed files
with
319 additions
and
88 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { colors } from './base' | ||
|
||
export const accent = { | ||
DEFAULT: colors.blue['700'], | ||
dark: '#FFF', | ||
alt: { | ||
DEFAULT: colors.grey['300'], | ||
dark: colors.grey['600'] | ||
}, | ||
hover: { | ||
DEFAULT: colors.grey['900'], | ||
dark: colors.grey['300'] | ||
}, | ||
focus: { | ||
DEFAULT: '#000', | ||
dark: colors.grey['100'] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { colors } from './base' | ||
|
||
export const background = { | ||
DEFAULT: '#FFF', | ||
dark: '#000', | ||
alt: { | ||
DEFAULT: colors.grey['50'], | ||
dark: colors.grey['700'] | ||
}, | ||
subtle: { | ||
DEFAULT: colors.purple['50'], | ||
dark: colors.grey['800'] | ||
}, | ||
inverse: { | ||
DEFAULT: colors.grey['900'], | ||
dark: '#FFF' | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { colors } from './base' | ||
|
||
export const border = { | ||
DEFAULT: colors.grey['300'], | ||
dark: colors.grey['500'], | ||
hover: { | ||
DEFAULT: colors.grey['400'], | ||
dark: colors.grey['300'] | ||
}, | ||
focus: { | ||
DEFAULT: colors.grey['500'], | ||
dark: colors.grey['400'] | ||
}, | ||
subtle: { | ||
DEFAULT: colors.grey['200'], | ||
dark: colors.grey['700'] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
import { colors } from './base' | ||
import { accent } from './accent' | ||
import { background } from './background' | ||
import { border } from './border' | ||
import { feedback } from './feedback' | ||
|
||
export const button = { | ||
primary: { | ||
DEFAULT: colors.blue['700'], | ||
dark: '#FFF', | ||
hover: { | ||
DEFAULT: accent.hover.DEFAULT, | ||
dark: accent.hover.dark | ||
}, | ||
focus: { | ||
DEFAULT: accent.focus.DEFAULT, | ||
dark: accent.focus.dark | ||
}, | ||
disabled: { | ||
DEFAULT: background.subtle.DEFAULT, | ||
dark: background.subtle.dark | ||
} | ||
}, | ||
secondary: { | ||
DEFAULT: '#FFF', | ||
dark: '#000', | ||
hover: { | ||
DEFAULT: background.subtle.DEFAULT, | ||
dark: background.subtle.dark | ||
}, | ||
|
||
focus: { | ||
DEFAULT: colors.blue['50'], | ||
dark: colors.blue['900'] | ||
}, | ||
|
||
disabled: { | ||
DEFAULT: background.subtle.DEFAULT, | ||
dark: background.subtle.dark | ||
}, | ||
|
||
border: { | ||
DEFAULT: border.DEFAULT, | ||
dark: border.dark, | ||
hover: { | ||
DEFAULT: background.subtle.DEFAULT, | ||
dark: background.subtle.dark | ||
}, | ||
focus: { | ||
DEFAULT: border.focus.DEFAULT, | ||
dark: border.focus.dark | ||
}, | ||
disabled: { | ||
DEFAULT: border.subtle.DEFAULT, | ||
dark: border.subtle.dark | ||
} | ||
} | ||
}, | ||
tertiary: { | ||
hover: { | ||
DEFAULT: background.subtle.DEFAULT, | ||
dark: background.subtle.dark | ||
}, | ||
focus: { | ||
DEFAULT: colors.blue['50'], | ||
dark: colors.blue['900'] | ||
} | ||
}, | ||
success: { | ||
DEFAULT: feedback.green, | ||
hover: { | ||
DEFAULT: colors.green['500'] | ||
}, | ||
focus: { | ||
DEFAULT: colors.green['600'] | ||
} | ||
}, | ||
danger: { | ||
DEFAULT: feedback.red, | ||
hover: { | ||
DEFAULT: colors.red['700'] | ||
}, | ||
focus: { | ||
DEFAULT: colors.red['800'] | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { colors } from './base' | ||
|
||
export const feedback = { | ||
green: colors.green['400'], | ||
yellow: colors.yellow['300'], | ||
orange: colors.orange['400'], | ||
red: colors.red['600'] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { colors } from './base' | ||
|
||
export const foreground = { | ||
DEFAULT: colors.grey['900'], | ||
dark: '#FFF', | ||
muted: { | ||
DEFAULT: colors.grey['500'], | ||
dark: colors.grey['300'] | ||
}, | ||
subtle: { | ||
DEFAULT: colors.grey['400'], | ||
dark: colors.grey['500'] | ||
}, | ||
inverse: { | ||
DEFAULT: '#FFF', | ||
dark: colors.grey['900'] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { colors } from './base' | ||
import { foreground } from './foreground' | ||
import { background } from './background' | ||
import { button } from './button' | ||
import { accent } from './accent' | ||
import { border } from './border' | ||
import { feedback } from './feedback' | ||
|
||
export default { | ||
transparent: 'transparent', | ||
current: 'currentColor', | ||
primary: colors.blue, | ||
secondary: colors.pink, | ||
foreground: foreground, | ||
background: background, | ||
accent: accent, | ||
border: border, | ||
feedback: feedback, | ||
button: button, | ||
white: { | ||
DEFAULT: '#fff' | ||
}, | ||
black: { | ||
DEFAULT: '#000' | ||
}, | ||
...colors | ||
} |
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
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
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
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
Oops, something went wrong.