Skip to content

Commit

Permalink
Convert red colors in rgb to oklch color space
Browse files Browse the repository at this point in the history
Use 30 hue for red and dark-red variances. Use the same 45% lightness as with blue color.
  • Loading branch information
JoelCDL committed Jan 23, 2023
1 parent e547e92 commit dcb079e
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion scss/_headernav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
// Panel list links:
> ul > li > ul > li > a {
margin-block-end: var(--headernav-item-margin);
color: rgb(var(--color-red));
color: var(--color-dark-red);
text-decoration: none;

&:focus,
Expand Down
6 changes: 3 additions & 3 deletions scss/_heading.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ h1 {

%o-heading2 {
@extend %o-heading;
color: rgb(var(--color-red));
color: var(--color-dark-red);
font-size: 1.25em;
font-weight: 600;
}
Expand All @@ -43,7 +43,7 @@ h2 {

%o-heading3 {
@extend %o-heading;
color: rgb(var(--color-red));
color: var(--color-dark-red);
font-size: 1.125em;
}

Expand All @@ -53,7 +53,7 @@ h3 {

%o-heading4 {
@extend %o-heading;
color: rgb(var(--color-red));
color: var(--color-dark-red);
font-size: 1em;
font-weight: 600;
}
Expand Down
2 changes: 1 addition & 1 deletion scss/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ a[href^='mailto:']::after {
}

a[href^='https://sp.ucop.edu']::after {
background-color: rgb(var(--color-red));
background-color: var(--color-dark-red);
mask-size: 0.8rem;
mask-image: url('data-url:/fa-solid/lock.svg');
}
2 changes: 1 addition & 1 deletion scss/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dl {

dt {
margin-block-end: 0.2rem;
color: rgb(var(--color-red));
color: var(--color-dark-red);
font-weight: 500;
}

Expand Down
2 changes: 1 addition & 1 deletion scss/_posttype.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

.c-posttype__doc {
background-color: rgb(var(--color-light-red));
background-color: var(--color-red);
}

.c-posttype__page {
Expand Down
2 changes: 1 addition & 1 deletion scss/_status.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

&::before {
opacity: 1;
background-color: rgb(var(--color-light-red));
background-color: var(--color-red);
}

}
Expand Down
2 changes: 1 addition & 1 deletion scss/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ table {

th {
background-color: var(--color-light-blue);
color: rgb(var(--color-red));
color: var(--color-dark-red);
}

}
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

--color-light-blue: oklch(94% 0.02 250);
--color-blue: oklch(45% 0.12 250);
--color-light-red: 219 0 0;
--color-red: 151 54 32;
--color-red: oklch(56% 0.22 30);
--color-dark-red: oklch(45% 0.18 30);
--color-orange: 255 153 0;
--color-green: 82 122 0;
--color-light-gold: 255 197 71;
Expand Down
2 changes: 1 addition & 1 deletion scss/_well.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

h2,
h3 {
color: rgb(var(--color-red));
color: var(--color-dark-red);
}

}

0 comments on commit dcb079e

Please sign in to comment.