cascading-color-systems
Advanced tools
Comparing version 0.1.0-beta.11 to 0.1.0-beta.12
# Changelog | ||
## 0.1.0-beta.12 - 2020/6/23 | ||
- INTERNAL: Upgrade dev dependencies | ||
- INTERNAL: Split `modes` and `palette` into their own `tools` module | ||
that can be imported as plain Sass without any CSS output | ||
- DOCS: Added documentation to repo | ||
## 0.1.0-beta.11 - 2019/12/31 | ||
@@ -4,0 +11,0 @@ |
@@ -13,3 +13,3 @@ (function (global, factory) { | ||
} | ||
})(this, function (_exports) { | ||
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) { | ||
"use strict"; | ||
@@ -16,0 +16,0 @@ |
164
LICENSE.md
@@ -1,45 +0,135 @@ | ||
Copyright 2019 OddBird | ||
Copyright 2019-2020 OddBird (“Licensor”) | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the "Software"), | ||
to deal in the Software without restriction, including without limitation | ||
the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
and/or sell copies of the Software, and to permit persons | ||
to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
Hippocratic License Version Number: 2.1. | ||
* The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
Purpose. The purpose of this License is for the Licensor named above to permit | ||
the Licensee (as defined below) broad permission, if consistent with Human | ||
Rights Laws and Human Rights Principles (as each is defined below), to use and | ||
work with the Software (as defined below) within the full scope of Licensor’s | ||
copyright and patent rights, if any, in the Software, while ensuring attribution | ||
and protecting the Licensor from liability. | ||
* No Harm: The software may not be used by anyone for systems or activities | ||
that actively and knowingly endanger, harm, or otherwise threaten | ||
the physical, mental, economic, or general well-being | ||
of other individuals or groups, | ||
in violation of the United Nations Universal Declaration of Human Rights | ||
(https://www.un.org/en/universal-declaration-human-rights/). | ||
Permission and Conditions. The Licensor grants permission by this license | ||
(“License”), free of charge, to the extent of Licensor’s rights under applicable | ||
copyright and patent law, to any person or entity (the “Licensee”) obtaining a | ||
copy of this software and associated documentation files (the “Software”), to do | ||
everything with the Software that would otherwise infringe (i) the Licensor’s | ||
copyright in the Software or (ii) any patent claims to the Software that the | ||
Licensor can license or becomes able to license, subject to all of the following | ||
terms and conditions: | ||
* Services: If the Software is used to provide a service to others, | ||
the licensee shall, as a condition of use, require those others | ||
not to use the service in any way that violates the No Harm clause above. | ||
- Acceptance. This License is automatically offered to every person and entity | ||
subject to its terms and conditions. Licensee accepts this License and agrees | ||
to its terms and conditions by taking any action with the Software that, | ||
absent this License, would infringe any intellectual property right held by | ||
Licensor. | ||
* Enforceability: If any portion or provision of this License shall | ||
to any extent be declared illegal or unenforceable | ||
by a court of competent jurisdiction, then the remainder of this License, | ||
or the application of such portion or provision | ||
in circumstances other than those as to which | ||
it is so declared illegal or unenforceable, shall not be affected thereby, | ||
and each portion and provision of this Agreement | ||
shall be valid and enforceable to the fullest extent permitted by law. | ||
- Notice. Licensee must ensure that everyone who gets a copy of any part of this | ||
Software from Licensee, with or without changes, also receives the License and | ||
the above copyright notice (and if included by the Licensor, patent, trademark | ||
and attribution notice). Licensee must cause any modified versions of the | ||
Software to carry prominent notices stating that Licensee changed the | ||
Software. For clarity, although Licensee is free to create modifications of | ||
the Software and distribute only the modified portion created by Licensee with | ||
additional or different terms, the portion of the Software not modified must | ||
be distributed pursuant to this License. If anyone notifies Licensee in | ||
writing that Licensee has not complied with this Notice section, Licensee can | ||
keep this License by taking all practical steps to comply within 30 days after | ||
the notice. If Licensee does not do so, Licensee’s License (and all rights | ||
licensed hereunder) shall end immediately. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO | ||
THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH | ||
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
- Compliance with Human Rights Principles and Human Rights Laws. | ||
1. Human Rights Principles. | ||
(a) Licensee is advised to consult the articles of the United Nations | ||
Universal Declaration of Human Rights and the United Nations Global Compact | ||
that define recognized principles of international human rights (the “Human | ||
Rights Principles”). Licensee shall use the Software in a manner consistent | ||
with Human Rights Principles. | ||
(b) Unless the Licensor and Licensee agree otherwise, any dispute, | ||
controversy, or claim arising out of or relating to (i) Section 1(a) | ||
regarding Human Rights Principles, including the breach of Section 1(a), | ||
termination of this License for breach of the Human Rights Principles, or | ||
invalidity of Section 1(a) or (ii) a determination of whether any Law is | ||
consistent or in conflict with Human Rights Principles pursuant to Section | ||
2, below, shall be settled by arbitration in accordance with the Hague | ||
Rules on Business and Human Rights Arbitration (the “Rules”); provided, | ||
however, that Licensee may elect not to participate in such arbitration, in | ||
which event this License (and all rights licensed hereunder) shall end | ||
immediately. The number of arbitrators shall be one unless the Rules | ||
require otherwise. | ||
Unless both the Licensor and Licensee agree to the contrary: (1) All | ||
documents and information concerning the arbitration shall be public and | ||
may be disclosed by any party; (2) The repository referred to under Article | ||
43 of the Rules shall make available to the public in a timely manner all | ||
documents concerning the arbitration which are communicated to it, | ||
including all submissions of the parties, all evidence admitted into the | ||
record of the proceedings, all transcripts or other recordings of hearings | ||
and all orders, decisions and awards of the arbitral tribunal, subject only | ||
to the arbitral tribunal's powers to take such measures as may be necessary | ||
to safeguard the integrity of the arbitral process pursuant to Articles 18, | ||
33, 41 and 42 of the Rules; and (3) Article 26(6) of the Rules shall not | ||
apply. | ||
2. Human Rights Laws. The Software shall not be used by any person or entity | ||
for any systems, activities, or other uses that violate any Human Rights | ||
Laws. “Human Rights Laws” means any applicable laws, regulations, or rules | ||
(collectively, “Laws”) that protect human, civil, labor, privacy, | ||
political, environmental, security, economic, due process, or similar | ||
rights; provided, however, that such Laws are consistent and not in | ||
conflict with Human Rights Principles (a dispute over the consistency or a | ||
conflict between Laws and Human Rights Principles shall be determined by | ||
arbitration as stated above). Where the Human Rights Laws of more than one | ||
jurisdiction are applicable or in conflict with respect to the use of the | ||
Software, the Human Rights Laws that are most protective of the individuals | ||
or groups harmed shall apply. | ||
3. Indemnity. Licensee shall hold harmless and indemnify Licensor (and any | ||
other contributor) against all losses, damages, liabilities, deficiencies, | ||
claims, actions, judgments, settlements, interest, awards, penalties, | ||
fines, costs, or expenses of whatever kind, including Licensor’s reasonable | ||
attorneys’ fees, arising out of or relating to Licensee’s use of the | ||
Software in violation of Human Rights Laws or Human Rights Principles. | ||
- Failure to Comply. Any failure of Licensee to act according to the terms and | ||
conditions of this License is both a breach of the License and an infringement | ||
of the intellectual property rights of the Licensor (subject to exceptions | ||
under Laws, e.g., fair use). In the event of a breach or infringement, the | ||
terms and conditions of this License may be enforced by Licensor under the | ||
Laws of any jurisdiction to which Licensee is subject. Licensee also agrees | ||
that the Licensor may enforce the terms and conditions of this License against | ||
Licensee through specific performance (or similar remedy under Laws) to the | ||
extent permitted by Laws. For clarity, except in the event of a breach of this | ||
License, infringement, or as otherwise stated in this License, Licensor may | ||
not terminate this License with Licensee. | ||
- Enforceability and Interpretation. If any term or provision of this License is | ||
determined to be invalid, illegal, or unenforceable by a court of competent | ||
jurisdiction, then such invalidity, illegality, or unenforceability shall not | ||
affect any other term or provision of this License or invalidate or render | ||
unenforceable such term or provision in any other jurisdiction; provided, | ||
however, subject to a court modification pursuant to the immediately following | ||
sentence, if any term or provision of this License pertaining to Human Rights | ||
Laws or Human Rights Principles is deemed invalid, illegal, or unenforceable | ||
against Licensee by a court of competent jurisdiction, all rights in the | ||
Software granted to Licensee shall be deemed null and void as between Licensor | ||
and Licensee. Upon a determination that any term or provision is invalid, | ||
illegal, or unenforceable, to the extent permitted by Laws, the court may | ||
modify this License to affect the original purpose that the Software be used | ||
in compliance with Human Rights Principles and Human Rights Laws as closely as | ||
possible. The language in this License shall be interpreted as to its fair | ||
meaning and not strictly for or against any party. | ||
- Disclaimer. TO THE FULL EXTENT ALLOWED BY LAW, THIS SOFTWARE COMES “AS IS,” | ||
WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED, AND LICENSOR AND ANY OTHER | ||
CONTRIBUTOR SHALL NOT BE LIABLE TO ANYONE FOR ANY DAMAGES OR OTHER LIABILITY | ||
ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THIS LICENSE, | ||
UNDER ANY KIND OF LEGAL CLAIM. | ||
This Hippocratic License is an Ethical Source license | ||
(https://ethicalsource.dev) derived from the MIT License, | ||
amended to limit the impact of the unethical use of open source software. | ||
(https://ethicalsource.dev) and is offered for use by licensors and licensees at | ||
their own risk, on an “AS IS” basis, and with no warranties express or implied, | ||
to the maximum extent permitted by Laws. |
{ | ||
"name": "cascading-color-systems", | ||
"version": "0.1.0-beta.11", | ||
"version": "0.1.0-beta.12", | ||
"description": "generate dynamic color palettes with custom properties", | ||
"title": "Cascading Color Systems", | ||
"main": "dist.js", | ||
"module": "index.js", | ||
"homepage": "https://cascading-colors.netlify.com", | ||
"repository": "mirisuzanne/cascading-color-system", | ||
"homepage": "https://cascading-colors.netlify.app/", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/oddbird/cascading-color-system.git" | ||
}, | ||
"author": "Miriam Suzanne <miriam@oddbird.net>", | ||
@@ -15,9 +19,9 @@ "contributors": [ | ||
"devDependencies": { | ||
"@babel/cli": "^7.6.2", | ||
"@babel/core": "^7.6.2", | ||
"@babel/plugin-transform-modules-umd": "^7.2.0", | ||
"@babel/cli": "^7.10.3", | ||
"@babel/core": "^7.10.3", | ||
"@babel/plugin-transform-modules-umd": "^7.10.1", | ||
"cssremedy": "^0.1.0-beta.2", | ||
"sass": "^1.23.0", | ||
"sassdoc": "^2.7.1", | ||
"sassdoc-theme-herman": "^3.0.2" | ||
"sass": "^1.26.9", | ||
"sassdoc": "^2.7.2", | ||
"sassdoc-theme-herman": "^3.2.0" | ||
}, | ||
@@ -38,4 +42,5 @@ "scripts": { | ||
"index.js", | ||
"dist.js" | ||
"dist.js", | ||
"docs/" | ||
] | ||
} |
# Cascading Color Systems | ||
[Demo Site](https://cascading-colors.netlify.com/) | ||
[Demo Site](https://cascading-colors.netlify.app/) | ||
@@ -29,3 +29,3 @@ Generate dynamic and themable color palettes using CSS custom properties, | ||
/* css */ | ||
@import '<path-to>/cascading-color-systems/css/ccs.css'; | ||
@import "<path-to>/cascading-color-systems/css/ccs.css"; | ||
``` | ||
@@ -57,3 +57,3 @@ | ||
[gh]: https://github.com/mirisuzanne/cascading-color-system/ | ||
[gh]: https://github.com/oddbird/cascading-color-system/ | ||
[sass]: https://www.npmjs.com/package/sass | ||
@@ -71,3 +71,3 @@ | ||
```scss | ||
[data-ccs='root'] { | ||
[data-ccs="root"] { | ||
--ccs-prime--config: 330; | ||
@@ -110,3 +110,3 @@ --ccs-lightness--config: 50%; | ||
[data-ccs-colors], | ||
[data-ccs-colors='light'] { | ||
[data-ccs-colors="light"] { | ||
background-color: $fallback-light; | ||
@@ -116,4 +116,4 @@ color: $fallback-dark; | ||
[data-ccs-colors='invert'], | ||
[data-ccs-colors='dark'] { | ||
[data-ccs-colors="invert"], | ||
[data-ccs-colors="dark"] { | ||
background-color: $fallback-dark; | ||
@@ -206,3 +206,3 @@ color: $fallback-light; | ||
```scss | ||
[data-ccs-theme='complement'] { | ||
[data-ccs-theme="complement"] { | ||
/* set the accent color 180 degrees off the primary color */ | ||
@@ -212,3 +212,3 @@ --ccs-accent--theme: calc(var(--ccs-h--prime) + 180); | ||
[data-ccs-theme='triad'] { | ||
[data-ccs-theme="triad"] { | ||
/* triad logic */ | ||
@@ -272,3 +272,3 @@ } | ||
```js | ||
import ccs from 'cascading-color-systems'; | ||
import ccs from "cascading-color-systems"; | ||
@@ -308,3 +308,3 @@ ccs(); | ||
```scss | ||
[data-ccs-theme='contrast'] { | ||
[data-ccs-theme="contrast"] { | ||
--ccs-contrast: 200%; /* override all other contrast settings */ | ||
@@ -311,0 +311,0 @@ --ccs-custom-contrast: none; /* hide [data-ccs-field="contrast"] */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
637316
45
90
921
1
0
1