@dutchcelt/system.css

1.1.0 • Public • Published

system.css

A base stylesheet using system colors and css keywords.

Goals

System.css has a number of goals:

  1. Provide a default style for basic html pages.
  2. Provide the means to style the default using custom properties
  3. No dependencies
  4. Based on system colors and CSS keywords. The browser has defaults, so lets use those.

Demo

https://dutchcelt.github.io/system.css/

Usage

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)">

Style API

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.

Compatibility

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+

Acknowledgments

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.

Inspiration

My admiration and recommendations to consider are

Package Sidebar

Install

npm i @dutchcelt/system.css

Weekly Downloads

6

Version

1.1.0

License

AGPLv3

Unpacked Size

124 kB

Total Files

21

Last publish

Collaborators

  • dutchcelt