Skip to content

Commit

Permalink
fix: featured and alternative colors fixed and new colors added (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamlaDemir authored Oct 13, 2022
1 parent 52e6b0c commit 084b3bb
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions docs/design-system/colors.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Baklava uses a list of defined color with some default values.
'--secondary': '#6E7787',
'--tertiary': '#95A1B5',
'--passive': '#AFBBCA',
'--primary-contrast' : '#FFF',
'--hover' : '#F27A1A'
}}
/>
</ColorPalette>
4 changes: 2 additions & 2 deletions src/components/button/bl-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
--main-color: var(--bl-color-primary);
--main-hover-color: var(--bl-color-primary-hover);
--text-hover-color: var(--bl-color-secondary-background);
--content-color: var(--bl-color-primary-background);
--content-color: var(--bl-color-content-primary-contrast);
--bg-color: var(--main-color);
--border-color: var(--main-color);
--padding-vertical: var(--bl-size-2xs);
Expand Down Expand Up @@ -122,7 +122,7 @@
}

:host([variant='secondary']:hover:not([disabled])) .button {
--content-color: var(--bl-color-primary-background);
--content-color: var(--bl-color-content-primary-contrast);
--bg-color: var(--main-hover-color);
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/checkbox/bl-checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ input {
height: var(--bl-size-m);
border: 1px solid var(--bl-color-border);
border-radius: var(--bl-border-radius-xs);
color: var(--bl-color-primary-background);
color: var(--bl-color-content-primary-contrast);
font-size: var(--bl-font-size-2xs);
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/tooltip/bl-tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
box-sizing: border-box;
border: none;
background-color: var(--bl-color-secondary);
color: var(--bl-color-primary-background);
color: var(--bl-color-content-primary-contrast);
border-radius: var(--bl-size-3xs);
pointer-events: none;
font: var(--bl-font-title-3-regular);
Expand Down
6 changes: 4 additions & 2 deletions src/themes/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
--bl-color-warning: #ffb600;
--bl-color-warning-hover: #ff9800;
--bl-color-alternative: #5794ff;
--bl-color-alternative-hover: #3469ff;
--bl-color-alternative-hover: #457eff;
--bl-color-featured: #8c4eff;
--bl-color-featured-hover: #5e2eff;
--bl-color-featured-hover: #753eff;

/* Background Colors */
--bl-color-primary-background: #fff;
Expand All @@ -35,6 +35,8 @@
--bl-color-content-secondary: #6e7787;
--bl-color-content-tertiary: #95a1b5;
--bl-color-content-passive: #afbbca;
--bl-color-content-primary-contrast: #fff;
--bl-color-content-hover: #f27a1a;
--bl-color-border: #d5d9e1;

/* Size and Spacing */
Expand Down

0 comments on commit 084b3bb

Please sign in to comment.