Skip to content

Commit

Permalink
Generate highlight colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Dunn committed Nov 5, 2023
1 parent 22f4454 commit 1955698
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ Note that the base color definitinons change in dark theme.
--control-border-radius: 12px;
--control-border-width: 1px;

/*Inputs that are not convex or concave*/
--concave-item-bg: linear-gradient(180deg, rgb(37 37 37 / 6%) 12%, rgb(255 255 255 / 42%) 88%);
--convex-item-bg: linear-gradient(180deg, rgb(241 238 238 / 10%) 0%, rgb(0 0 0 / 5%) 96%);
/*3D buttons are mostly transparent with just some highlights and shadows.*/
--concave-item-bg: linear-gradient(180deg, var(--3d-shadow) 12%, var(--3d-highlight) 88%);
--convex-item-bg: linear-gradient(180deg, var(--3d-highlight) 0%, var(--3d-shadow) 96%);
--convex-item-active-bg: var(--concave-item-bg);
--concave-item-box-shadow: inset 0px 0px 4px 2px #3838381f;

Expand Down
15 changes: 12 additions & 3 deletions css/barrel.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@
--control-border-radius: 12px;
--control-border-width: 1px;

/*Inputs that are not convex or concave*/
--concave-item-bg: linear-gradient(180deg, rgb(37 37 37 / 6%) 12%, rgb(255 255 255 / 42%) 88%);
--convex-item-bg: linear-gradient(180deg, rgb(241 238 238 / 10%) 0%, rgb(0 0 0 / 5%) 96%);
--3d-highlight: color-mix(in srgb, var( --control-bg) 50%, rgb(255 255 255));
--3d-shadow: color-mix(in srgb, var(--control-bg) 50%, rgb(0 0 0 / 0%));

--concave-item-bg: linear-gradient(180deg, var(--3d-shadow) 12%, var(--3d-highlight) 88%);
--convex-item-bg: linear-gradient(180deg, var(--3d-highlight) 0%, var(--3d-shadow) 96%);
--convex-item-active-bg: var(--concave-item-bg);
--concave-item-box-shadow: inset 0px 0px 4px 2px #3838381f;

Expand Down Expand Up @@ -237,6 +239,13 @@ footer {
flex-grow: 0;
}


header *,
footer * {
--control-bg: var(--box-bg);
}


header {
border-bottom: var(--border-width) solid var(--border-color);
}
Expand Down

0 comments on commit 1955698

Please sign in to comment.