Skip to content

Commit 3713253

Browse files
committed
Convert green and gold colors in rgb to oklch color space
Use gold color in place of orange.
1 parent dcb079e commit 3713253

10 files changed

+16
-18
lines changed

scss/_link.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ a[href^='https://sp.ucop.edu']::after {
9494
}
9595

9696
a[data-wpel-link='external']::after {
97-
background-color: rgb(var(--color-gold));
97+
background-color: var(--color-gold);
9898
mask-image: url('data-url:/fa-solid/arrow-up-right-from-square.svg');
9999
}
100100

101101
a[href^='mailto:']::after {
102-
background-color: rgb(var(--color-gold));
102+
background-color: var(--color-gold);
103103
mask-image: url('data-url:/fa-solid/envelope.svg');
104104
}
105105

scss/_meet.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
a {
2424
margin-block-start: var(--space2);
25-
color: rgb(var(--color-light-gold));
25+
color: oklch(86% 0.13 80); // lighter version of --color-gold for better a11y contrast against background
2626
}
2727

2828
}

scss/_news.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
flex: none;
1616
block-size: 1rem;
1717
inline-size: 1rem;
18-
background-color: rgb(var(--color-gold));
18+
background-color: var(--color-gold);
1919
mask: url('data-url:/fa-solid/rss.svg') center / contain no-repeat;
2020
}
2121
}

scss/_newsreel.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
&:focus,
9696
&:hover {
9797
&::after {
98-
background-color: rgb(var(--color-gold));
98+
background-color: var(--color-gold);
9999
}
100100
}
101101

scss/_posttype.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
}
2424

2525
.c-posttype__post {
26-
background-color: rgb(var(--color-green));
26+
background-color: var(--color-green);
2727
}

scss/_quicklink.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
flex: none;
3535
block-size: 1.1rem;
3636
inline-size: 1.1rem;
37-
background-color: rgb(var(--color-gold));
37+
background-color: var(--color-gold);
3838
mask: url('data-url:/fa-solid/arrow-up-right-from-square.svg') center / contain;
3939
}
4040
}

scss/_slideshow.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
background-repeat: no-repeat;
5454
background-position: center;
5555
background-size: 0.8em;
56-
color: rgb(var(--color-light-gold));
56+
color: var(--color-gold);
5757
cursor: pointer;
5858

5959
span {
@@ -71,7 +71,7 @@
7171
flex: none;
7272
block-size: 100%; // size relative to button size defined in '.c-slideshow__controls button' selector above
7373
inline-size: 100%; // " "
74-
background-color: rgb(var(--color-light-gold));
74+
background-color: var(--color-gold);
7575
mask-size: 0.7rem;
7676
mask-position: center;
7777
mask-repeat: no-repeat;
@@ -158,7 +158,7 @@
158158

159159
// if there's a link in the copy:
160160
a {
161-
color: rgb(var(--color-light-gold));
161+
color: var(--color-gold);
162162
text-decoration: underline;
163163

164164
&:focus,

scss/_staff.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
flex: none;
3737
block-size: 1.5rem;
3838
inline-size: 1.5rem;
39-
background-color: rgb(var(--color-gold));
39+
background-color: var(--color-gold);
4040
mask: url('data-url:/fa-solid/circle-user.svg') center / contain;
4141
}
4242

scss/_status.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
&::before {
3838
opacity: 1;
39-
background-color: rgb(var(--color-green));
39+
background-color: var(--color-green);
4040
}
4141

4242
}
@@ -45,7 +45,7 @@
4545

4646
&::before {
4747
opacity: 1;
48-
background-color: rgb(var(--color-orange));
48+
background-color: var(--color-gold);
4949
}
5050

5151
}

scss/_variables.scss

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
// ***** Variables ***** //
22

33
:root {
4-
// Colors in RGB:
4+
// Colors in OKLCH:
55

66
--color-light-blue: oklch(94% 0.02 250);
77
--color-blue: oklch(45% 0.12 250);
88
--color-red: oklch(56% 0.22 30);
99
--color-dark-red: oklch(45% 0.18 30);
10-
--color-orange: 255 153 0;
11-
--color-green: 82 122 0;
12-
--color-light-gold: 255 197 71;
13-
--color-gold: 255 181 17;
10+
--color-green: oklch(56% 0.16 135);
11+
--color-gold: oklch(82% 0.16 80);
1412

1513
// Spacing:
1614

0 commit comments

Comments
 (0)