0.2.0 • Published 1 year ago

@domrally/multi-color v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

multi-color

visually balanced gradients

features

  • gamma corrected sRGB display mapping
  • cyclindrical Ok Lab interpolation space
  • css input supported by colorjs.io
  • dual css gradient fallback
  • minified by default

use

multi-color {
	--background-top-left-color: #0ff;
	--background-top-right-color: #f0f;
	--background-bottom-left-color: #f0f;
	--background-bottom-right-color: #00f;
}

node

npm i multi-color
export default function () {
	return <multi-color></multi-color>
}

browser

<html>
	<head>
		<script src="https://cdn.jsdelivr.net/npm/multi-color/index.js"></script>
	</head>

	<body>
		<multi-color></multi-color>
	</body>
</html>