Skip to content

Commit

Permalink
*chore bump css and scss deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Sodik committed Oct 9, 2024
1 parent c54370a commit 8fad19d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
13 changes: 7 additions & 6 deletions packages/ui/src/Button.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use 'sass:color';
@use '../styles/constants' as c;
@use '../styles/helpers' as h;

Expand Down Expand Up @@ -174,12 +175,12 @@
&.hover,
&:focus-visible,
&.focus {
@include buttonColor(lighten(c.$colorBrand, 20%));
@include buttonColor(color.adjust(c.$colorBrand, $lightness: 20%));
}

&:active,
&.active {
@include buttonColor(darken(c.$colorBrand, 10%));
@include buttonColor(color.adjust(c.$colorBrand, $lightness: -10%));
}

&.variantContained {
Expand All @@ -198,12 +199,12 @@
&.hover,
&:focus-visible,
&.focus {
@include buttonColor(lighten(c.$authPrimary, 10%));
@include buttonColor(color.adjust(c.$authPrimary, $lightness: 10%));
}

&:active,
&.active {
@include buttonColor(darken(c.$authPrimary, 10%));
@include buttonColor(color.adjust(c.$authPrimary, $lightness: -10%));
}

&.variantContained {
Expand All @@ -224,12 +225,12 @@
&.hover,
&:focus-visible,
&.focus {
@include buttonColor(lighten(c.$authSecondary, 10%));
@include buttonColor(color.adjust(c.$authSecondary, $lightness: 10%));
}

&:active,
&.active {
@include buttonColor(darken(c.$authSecondary, 10%));
@include buttonColor(color.adjust(c.$authSecondary, $lightness: -10%));
}

&.variantContained {
Expand Down
10 changes: 6 additions & 4 deletions packages/ui/styles/constants/_colors.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:color';

// https://zeroheight.com/11d0e6dac/p/594529--colors
$colorPrimaryLight: #2d7de4 !default;
$colorPrimary: #2160c0 !default;
Expand All @@ -8,16 +10,16 @@ $colorNeutralLight: #b7c1cb !default;
$colorNeutral: #dbdbdb !default;
$colorSuccess: #85da66 !default;
$colorSuccessLight: #d5f0d1 !default;
$colorSuccessDark: darken($colorSuccess, 10%) !default;
$colorSuccessDark: color.adjust($colorSuccess, $lightness: -10%) !default;
$colorInfo: #76e7e7 !default;
$colorInfoLight: #d0f4f8 !default;
$colorInfoDark: darken($colorInfo, 10%) !default;
$colorInfoDark: color.adjust($colorInfo, $lightness: -10%) !default;
$colorWarning: #ffec44 !default;
$colorWarningLight: #f9f6c7 !default;
$colorWarningDark: darken($colorWarning, 15%) !default;
$colorWarningDark: color.adjust($colorWarning, $lightness: -15%) !default;
$colorError: #dc084b !default;
$colorErrorLight: #efb1c9 !default;
$colorErrorDark: darken($colorError, 10%) !default;
$colorErrorDark: color.adjust($colorError, $lightness: -10%) !default;
$colorText: #061827 !default;
$colorTextSecondary: #707482 !default;
$colorTextSubdued: #69707d !default;
Expand Down
7 changes: 0 additions & 7 deletions packages/ui/styles/constants/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ $lineHeightBodyTiny: normal !default;
@return '';
}

@mixin typographyH1Hero($override: false) {
font-weight: $fontWeightHeadingRegular #{override($override)};
font-size: $fontSizeH4 #{override($override)};
letter-spacing: $letterSpacingH4 #{override($override)};
line-height: $lineHeightH4 #{override($override)};
}

@mixin typographyH1($override: false) {
font-weight: $fontWeightHeadingRegular #{override($override)};
font-size: $fontSizeH1 #{override($override)};
Expand Down

0 comments on commit 8fad19d

Please sign in to comment.