Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/next' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshyx committed May 25, 2022
2 parents e0e8290 + 6b4fc86 commit 05cd426
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions ui/design/src/components/TransparencyLogBanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const TransparencyLogBanner: React.FC<ITransparencyLogBannerProps> = props => {

const stats = [
{ count: keptCount + delistedCount, label: totalCountLabel, color: 'grey' },
{ count: keptCount, label: keptCountLabel, color: 'green' },
{ count: delistedCount, label: delistedCountLabel, color: 'red' },
{ count: keptCount, label: keptCountLabel, color: 'altGreen' },
{ count: delistedCount, label: delistedCountLabel, color: 'altRed' },
];

const handleClickCodeOfConduct = () => {
Expand Down Expand Up @@ -93,12 +93,12 @@ const TransparencyLogBanner: React.FC<ITransparencyLogBannerProps> = props => {
values={[
{
value: delistedCount,
color: 'red',
color: 'altRed',
label: delistedCountLabel,
},
{
value: keptCount,
color: 'green',
color: 'altGreen',
label: keptCountLabel,
},
]}
Expand Down
2 changes: 1 addition & 1 deletion ui/design/src/components/TransparencyLogMiniCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const TransparencyLogMiniCard: React.FC<ITransparencyLogMiniCardProps> = props =
height="8px"
margin={{ right: 'xsmall' }}
round="50%"
background={isDelisted ? 'red' : 'green'}
background={isDelisted ? 'altRed' : 'altGreen'}
/>
<Text size="large" weight="bold" style={{ textTransform: 'capitalize' }}>
{title}
Expand Down
4 changes: 3 additions & 1 deletion ui/design/src/styles/themes/dark/colors-dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ const colors: IColorsDark = {
subtitleText: '#F4F5F7', // cadetGrey
errorText: '#FF5050', // red
darkText: '#47484A', // system/off white/dark
accentText: '#4E71FF', // blue
accentText: '#8B9FFF', // blue
inputText: '#47484A', // system/off white/dark
background: '#0D1A2D', // dark blue
altRed: '#FF5050',
altGreen: '#36B37E',
overlay: 'rgba(0, 0, 0, 0.6)', // black, 60% opacity
beigeBackground: '#F8F4F4', // lightBeige
ultraLightBackground: '#E7E9EC', // ultralightGrey
Expand Down
2 changes: 2 additions & 0 deletions ui/design/src/styles/themes/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ export interface IColors {
titleText: string;
subtitleText: string;
activeCardBackground: string;
altRed: string;
altGreen: string;
}
2 changes: 2 additions & 0 deletions ui/design/src/styles/themes/light/colors-light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const colors: IColorsLight = {
accentText: '#4666E6', // blue
inputText: '#425166', // darkBlue
background: '#FFFFFF', // white
altRed: '#FF5050',
altGreen: '#36B37E',
overlay: 'rgba(0, 0, 0, 0.6)', // black, 60% opacity
ultraLightBackground: '#FBFCFD', // ultralightGrey
beigeBackground: '#F8F4F4', // lightBeige
Expand Down
2 changes: 2 additions & 0 deletions ui/design/src/styles/themes/utils/create-grommet-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ const createGrommetTheme = (styledComponentsTheme: DefaultTheme) => {
brand: styledComponentsTheme.colors.accent,
darkBorder: styledComponentsTheme.colors.darkBorder,
background: styledComponentsTheme.colors.background,
altRed: styledComponentsTheme.colors.altRed,
altGreen: styledComponentsTheme.colors.altGreen,
overlay: styledComponentsTheme.colors.overlay,
darkBackground: styledComponentsTheme.colors.darkBackground,
modalBackground: styledComponentsTheme.colors.modalBackground,
Expand Down

0 comments on commit 05cd426

Please sign in to comment.