Skip to content

Commit 145808d

Browse files
committed
Update theme colours to match new brand guidelines
1 parent 2275355 commit 145808d

File tree

4 files changed

+20
-24
lines changed

4 files changed

+20
-24
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@interledger/docs-design-system",
3-
"version": "0.2.1",
3+
"version": "0.3.0",
44
"type": "module",
55
"description": "Shared styles and components used across all Interledger Starlight documentation sites",
66
"exports": {
@@ -20,6 +20,6 @@
2020
"url": "https://github.com/interledger/docs-design-system"
2121
},
2222
"dependencies": {
23-
"mermaid": "^10.6.1"
23+
"mermaid": "^10.8.0"
2424
}
2525
}

src/styles/ilf-docs.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
}
5454

5555
:focus-visible {
56-
outline-color: var(--color-accent-mid);
56+
outline-color: var(--sl-color-accent);
5757
border-radius: var(--border-radius);
5858
}
5959

@@ -87,7 +87,7 @@
8787
}
8888

8989
.sidebar-content a {
90-
padding: var(--space-2xs) var(--sl-sidebar-item-padding-inline);
90+
padding-block: var(--space-2xs);
9191
}
9292

9393
.sidebar-content summary {
@@ -216,7 +216,7 @@
216216
}
217217

218218
.sl-container > h1:first-of-type::after {
219-
background-color: var(--color-accent-secondary);
219+
background-color: var(--color-accent-highlight);
220220
height: 12px;
221221
top: -12px;
222222
z-index: -1;
@@ -233,7 +233,7 @@
233233
}
234234

235235
h3::after {
236-
background-color: var(--color-accent-secondary);
236+
background-color: var(--color-accent-highlight);
237237
height: 8px;
238238
bottom: 0px;
239239
z-index: -1;
@@ -462,7 +462,7 @@ label {
462462
}
463463

464464
input:not([type="submit"]):not([type="file"]):not(.pagefind-ui__search-input) {
465-
border: 1px solid var(--color-accent-mid);
465+
border: 1px solid var(--sl-color-accent);
466466
padding: var(--space-3xs) var(--space-2xs);
467467
border-radius: var(--border-radius);
468468
margin-top: var(--space-3xs);
@@ -474,7 +474,7 @@ input:not([type="submit"]):not([type="file"]):focus {
474474
}
475475

476476
::placeholder {
477-
color: var(--color-accent-mid);
477+
color: var(--sl-color-accent-high);
478478
opacity: 0.6;
479479
}
480480

src/styles/orange-theme.css

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@
33
::backdrop {
44
/* Colors (dark mode) */
55
--sl-hue-accent: 11;
6-
--sl-color-accent-low: hsl(var(--sl-hue-accent), 60%, 15%); /* darkest */
7-
--sl-color-accent: hsl(var(--sl-hue-accent), 99%, 41%);
6+
--sl-color-accent-low: hsl(var(--sl-hue-accent), 55%, 12%); /* darkest */
7+
--sl-color-accent: hsl(var(--sl-hue-accent), 98%, 41%);
88
--sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 87%); /* lightest */
9-
--color-accent-mid: hsl(5, 99%, 62%);
10-
--color-accent-secondary: hsl(176, 92%, 25%);
9+
--color-accent-highlight: hsl(176, 92%, 25%);
1110
}
1211

1312
:root[data-theme="light"],
1413
[data-theme="light"] ::backdrop {
1514
/* Colours (light mode) */
16-
--sl-color-accent-high: hsl(var(--sl-hue-accent), 80%, 30%); /* darkest */
17-
--sl-color-accent: hsl(var(--sl-hue-accent), 100%, 40%);
15+
--sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 29%); /* darkest */
16+
--sl-color-accent: hsl(var(--sl-hue-accent), 98%, 41%);
1817
--sl-color-accent-low: hsl(var(--sl-hue-accent), 100%, 97%); /* lightest */
19-
--color-accent-mid: hsl(5, 99%, 62%);
20-
--color-accent-secondary: hsl(165, 90%, 78%);
18+
--color-accent-highlight: hsl(165, 90%, 78%);
2119
}

src/styles/green-theme.css renamed to src/styles/teal-theme.css

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22
:root,
33
::backdrop {
44
/* Colors (dark mode) */
5-
--sl-hue-accent: 158;
5+
--sl-hue-accent: 180;
66
--sl-color-accent-low: hsl(var(--sl-hue-accent), 60%, 15%); /* darkest */
7-
--sl-color-accent: hsl(var(--sl-hue-accent), 100%, 25%);
7+
--sl-color-accent: hsl(var(--sl-hue-accent), 100%, 23%);
88
--sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 87%); /* lightest */
9-
--color-accent-mid: hsl(157, 100%, 32%);
10-
--color-accent-secondary: hsl(176, 92%, 25%);
9+
--color-accent-highlight: hsl(176, 92%, 25%);
1110
}
1211

1312
:root[data-theme="light"],
1413
[data-theme="light"] ::backdrop {
1514
/* Colours (light mode) */
16-
--sl-color-accent-high: hsl(var(--sl-hue-accent), 80%, 30%); /* darkest */
17-
--sl-color-accent: hsl(var(--sl-hue-accent), 100%, 25%);
15+
--sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 19%); /* darkest */
16+
--sl-color-accent: hsl(var(--sl-hue-accent), 100%, 23%);
1817
--sl-color-accent-low: hsl(var(--sl-hue-accent), 100%, 97%); /* lightest */
19-
--color-accent-mid: hsl(157, 100%, 32%);
20-
--color-accent-secondary: hsl(165, 90%, 78%);
18+
--color-accent-highlight: hsl(165, 90%, 78%);
2119
}

0 commit comments

Comments
 (0)