A base stylesheet using system colors and css keywords.
System.css has a number of goals:
- Provide a default style for basic html pages.
- Provide the means to style the default using custom properties
- No dependencies
- Based on system colors and CSS keywords. The browser has defaults, so lets use those.
https://dutchcelt.github.io/system.css/
Import via NPM:
npm i @dutchcelt/system.css
If you wish to use the layout and form validations you will need to switch the 'system enhancement' on:
<html lang="en" style="--system-enhanced: var(--ON)">
System.css has a number of custom properties for you to use.
https://dutchcelt.github.io/system.css/style-api.html
Additionally, system.css
also provides a simple form layout and validation setup.
This solution uses features that might cause issues. Consider the following:
Container Units, CSS nesting, Sub Grid, color-mix()
, :has()
, @property
, and @layer
.
These features work in following browsers:
- Chrome 117+
- Safari 16.5+
- Firefox 124+
This is a heavily modified version of new.css
For fonts we use what we are given by the OS. My thanks to Modern Font Stacks.
My admiration and recommendations to consider are