Back to directory
argyleink avatar

open-props

CSS custom properties to help accelerate adaptive and consistent design.. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/argyleink/open-props.git

5,497

Stars

217

Forks

38

Watchers

MIT

License

Open Props Logo

Open Source CSS Variables

colors gradients shadows aspect ratios typography
easings animations sizes borders z-indexes media-queries

Tests npm version Discord

Need help?   👉   Discord


CDN (browse)

Bookmarklet

javascript: (() => {
  const href = "https://unpkg.com/open-props";
  document.head.append(Object.assign(document.createElement("link"),{rel:"stylesheet",href}));
})();

CLI

  • npm run gen:op - runs through src/ js files and creates the PostCSS files in src/
  • npm run gen:nowhere - creates a version of Open Props without the use of :where()
  • npm run gen:shadowdom - creates a version of Open Props with :host as the selector scope
  • npm run gen:prefixed - creates a version of Open Props with each prop prefixed with op, like --op-font-size-1
  • npm run bundle - creates all the various minified bundles of props
  • npm run lib:js - builds the JS modules for NPM

Testing

npm run build && npm run bundle
npm test

Releases

Apr 10, 2023

Download .zip

What's Changed

update autocomplete settings by @equinusocio in #323 Add missing exports for masks and media js files by @mayank99 in #326 Fix redundant selectors in normalize by @jacobrask in #331 do...

Nov 22, 2022

Moar Colors

Download .zip

3 more dark colors in each palette, also new palettes available!

Oct 28, 2022

Normalize Options 🎃

Download .zip

can choose light or dark only can additionally import the themes scoped to .dark, .dark-theme, and [data-theme="dark"] (light too)

What's Changed

scrollthumb updates by @hchiam in #243 fixes #245 by...

Jul 1, 2022

Web components and shadow DOM support

Download .zip

Optionally find files that use :host instead of :where(html)