Skip to content

Commit

Permalink
Add a cleaner scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Jan 30, 2025
1 parent f7b08ae commit 26f686e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
--accent-dark: #065666;
--accent-light: #0a8ca7;
--surface-card: #f8f9fa;
--scrollbar: silver;
}

[data-theme="dark"] {
Expand All @@ -24,6 +25,7 @@
--accent-dark: #086c81;
--accent-light: #0caac9;
--surface-card: #242424;
--scrollbar: gray;
}

/* Inter Variable Font */
Expand Down Expand Up @@ -51,6 +53,16 @@ body {
color: var(--text);
}

::-webkit-scrollbar {
background-color: transparent;
width: 6px;
}

::-webkit-scrollbar-thumb {
background-color: var(--scrollbar);
border-radius: 6px;
}

* {
scrollbar-color: var(--border) var(--background);
}
Expand Down

0 comments on commit 26f686e

Please sign in to comment.