Skip to content

Commit

Permalink
minor colors fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dutchcelt committed Jan 6, 2024
1 parent 7b11e54 commit 2c38df7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/system-custom-colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
:root{

/* These are only mixed with system colors */
--system-surface-color: color-mix(in oklab, Canvas 95%, CanvasText);
--system-surface-color: color-mix(
in oklab,
color-mix(in oklab, Canvas 95%, CanvasText) var(--system-cs-state),
color-mix(in oklab, Canvas 85%, CanvasText)
);
--system-stroke-color: color-mix(in oklab, Canvas 55%, CanvasText);
--system-invalid-color: color-mix(in oklab, var(--system-active-text) 90%, CanvasText);
--system-content-color-light: color-mix(
Expand Down
1 change: 1 addition & 0 deletions src/system-selectors.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@

&:is(:focus, :focus-visible, :enabled:hover) {
color: var(--system-content-color-light);
border-color: color-mix(in oklab, var(--system-accent-color) 85%, var(--system-canvas-text));
background: color-mix(in oklab, var(--system-accent-color) 85%, var(--system-canvas-text));
}
}
Expand Down

0 comments on commit 2c38df7

Please sign in to comment.