Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eoconline/css-system-colors
Visual demonstration of all CSS System Colors
https://github.com/eoconline/css-system-colors
Last synced: 5 days ago
JSON representation
Visual demonstration of all CSS System Colors
- Host: GitHub
- URL: https://github.com/eoconline/css-system-colors
- Owner: EOCOnline
- License: mit
- Created: 2024-11-08T16:37:35.000Z (8 days ago)
- Default Branch: main
- Last Pushed: 2024-11-08T18:33:48.000Z (8 days ago)
- Last Synced: 2024-11-08T19:32:23.883Z (8 days ago)
- Language: HTML
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# CSS System Colors Visual Demonstration
CSS System Colors are derived from the user's operating system's color scheme.
They are useful for creating a consistent look and feel that matches the user's
preferences.This page is a nice visual reference to the system-colors - but **specific to
this browser/operating System**!> Avoid specifying different colors for light or dark mode: let the browser & OS
> handle it for you!This page demonstrates the CSS System Colors in action. You can view the colors
(and their change the light/dark mode and contrast settings to see how the
colors adapt to different environments.We uniquely display the actual color's
[RGBA](https://drafts.csswg.org/css-color/#rgb-functions) values for the current
environment. Note that the values are likely to change when switching from light
to dark mode.Hovering over each card displays the same text as in the card,and allows copying
it to your clipboard if desired. At the bottom to the two system color grids is
a download button which will download a simple json files with the current RGBA
values for the environment.## System Colors Introduction
[CSS System Colors](https://drafts.csswg.org/css-color/#css-system-colors) are a
set of 17 color keywords that are derived from the user's operating system's
color scheme. They are useful for creating a consistent look and feel that
matches the user's preferences.CSS System Colors are a new ![W3C](W3C.png) standard (under development since
[2017](https://www.w3.org/standards/history/css-color-4/) as part of CSS Color
Module Level 4), but still in proposal status as of 2024) -- but well adopted by
modern browsers. The colors and descriptions are current as of November 2024.The colors are defined in the CSS Color Module Level 4 specification and can be
used in any property that accepts a color value. They are prefixed with the
system- keyword, such as system-highlight or system-buttonface.The colors are designed to adapt to different light/dark modes and contrast
settings, making them ideal for creating accessible and user-friendly
interfaces. They can be used in combination with other color values to create a
harmonious color palette.> Note: System colors' actual RGBA values may vary depending on the user's
> operating system and browser settings!A nice feature of CSS System Colors is that they can be used in combination with
other color values to create a harmonious color palette.Some colors are
[deprecated](https://drafts.csswg.org/css-color/#typedef-deprecated-color) as
they enable mimicking system colors too well, and could be used for fake, evil
phishing sites. Don't go there!For more information on CSS System Colors, check out:
- Jim Nielsen's blog post
- MDN Web Docs
- CSS Color Module Level 4 specification
([~2024](https://www.w3.org/standards/history/css-color-4/))
Tests
-
system-color-consistency.html (56 tests) (live test) (source)
-
system-color-support.html (21 tests) (live test) (source)
-
color-valid-system-color.html (19 tests) (live test) (source)
## License
©2024 eoc.online under the permissive MIT License. Please note our contributions
though!
: Open source tooling for Emergency Operation Centers
Source & details at