CSS custom properties to help accelerate adaptive and consistent design.
See the code
colors gradients shadows aspect ratios typography
easings animations sizes borders z-indexes media-queries
javascript: (() => {
const href = "https://unpkg.com/open-props";
document.head.append(Object.assign(document.createElement("link"),{rel:"stylesheet",href}));
})();
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 scopenpm run gen:prefixed - creates a version of Open Props with each prop prefixed with op, like --op-font-size-1npm run bundle - creates all the various minified bundles of propsnpm run lib:js - builds the JS modules for NPMnpm run build && npm run bundle
npm test
(top 24 of 80)
1,314 followers · starred Sep 2022
561 followers · starred Dec 2024
218 followers · starred Oct 2024
328 followers · starred Dec 2021
CSS custom properties to help accelerate adaptive and consistent design.
See the code
colors gradients shadows aspect ratios typography
easings animations sizes borders z-indexes media-queries
javascript: (() => {
const href = "https://unpkg.com/open-props";
document.head.append(Object.assign(document.createElement("link"),{rel:"stylesheet",href}));
})();
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 scopenpm run gen:prefixed - creates a version of Open Props with each prop prefixed with op, like --op-font-size-1npm run bundle - creates all the various minified bundles of propsnpm run lib:js - builds the JS modules for NPMnpm run build && npm run bundle
npm test
(top 24 of 80)
1,314 followers · starred Sep 2022
561 followers · starred Dec 2024
218 followers · starred Oct 2024
328 followers · starred Dec 2021