Skip to content

Commit

Permalink
lighten icon actions
Browse files Browse the repository at this point in the history
  • Loading branch information
stacyk committed Sep 29, 2023
1 parent 91575ef commit 392d049
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/lib/components/colors/Output.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

<style lang="scss">
li {
column-gap: 1ch;
display: grid;
grid-template:
'copy color' auto
Expand Down
2 changes: 1 addition & 1 deletion src/sass/components/_social-nav.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[data-nav='social'] {
--li-padding-bottom: 0;
--link: var(--text);
--link: var(--action-light);
--link-focus: var(--action);

a {
Expand Down
5 changes: 5 additions & 0 deletions src/sass/config/color/_ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ $warning: tools.shade(brand.$brand-pink, 5%);
$action: tools.shade(brand.$brand-pink, 15%);
$active: brand.$brand-blue;
$success: oklab(51.527% -0.099 0.0131);
$action-light: color.adjust(
brand.$brand-blue,
$saturation: -45%,
$lightness: 10%
);
2 changes: 1 addition & 1 deletion src/sass/config/scale/_ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $logo: 12rem;
$swatch: 3.25rem;
$icon-size-default: 1.125em;
$icon-small: 0.65em;
$icon-medium: 1.65em;
$icon-medium: 1.5em;
$ratio-width: 10rem;
$range-thumb-size: 1.35rem;
$range-input: 0.85rem;
7 changes: 4 additions & 3 deletions src/sass/patterns/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ button {
border: var(--btn-border-width, var(--border-width, 0)) solid
var(--btn-border-color-active, var(--btn-border-color, var(--text)));
border-radius: var(--border-radius);
color: var(--btn-text-color, var(--text));
color: var(--btn-color, var(--text));
cursor: pointer;
display: inline-flex;
padding: var(--btn-padding-block, var(--half-shim))
Expand All @@ -30,15 +30,16 @@ button {
&:hover,
&:focus {
background-color: var(--btn-bg-color-active, var(--text));
color: var(--btn-text-color-active, var(--action));
color: var(--btn-color-active, var(--action));
}
}

[data-btn~='icon'] {
--btn-bg-color-active: transparent;
--btn-border-width: 0;
--btn-padding-inline: var(--half-shim);
--btn-text-color-active: var(--action);
--btn-color-active: var(--action);
--btn-color: var(--action-light);

&:focus-visible {
--outline-width: 0;
Expand Down

0 comments on commit 392d049

Please sign in to comment.