Add new color set

This commit is contained in:
Matt Swensen 2020-06-04 06:15:19 -06:00
parent ae4340be17
commit 8828fa35e3
No known key found for this signature in database
GPG Key ID: 3F9E482BFC526F35
6 changed files with 100 additions and 0 deletions

@ -0,0 +1,2 @@
node_modules
LICENSE.md

@ -0,0 +1,2 @@
version-tag-prefix "@themer/colors-green-as-a-whistle-v"
version-git-message "@themer/colors-green-as-a-whistle-v%s"

@ -0,0 +1,13 @@
# @themer/colors-green-as-a-whistle
A warm [themer](https://github.com/mjswensen/themer) color set featuring desaturated shades of green.
## Installation & usage
Install this module wherever you have `themer` installed:
npm install @themer/colors-green-as-a-whistle
Then pass `@themer/colors-green-as-a-whistle` as a `-c` (`--colors`) arg to `themer`:
themer -c @themer/colors-green-as-a-whistle ...

@ -0,0 +1,26 @@
module.exports.colors = {
"dark": {
shade0: '#1F1913',
shade7: '#FEFEDD',
accent0: '#994643',
accent1: '#F2AB71',
accent2: '#FFCF86',
accent3: '#4B8075',
accent4: '#639587',
accent5: '#517665',
accent6: '#8B596A',
accent7: '#8E5252',
},
"light": {
shade0: '#FCFAF1',
shade7: '#19201D',
accent0: '#8F4053',
accent1: '#D8965D',
accent2: '#CFA253',
accent3: '#4E8579',
accent4: '#8CB3A0',
accent5: '#4D7260',
accent6: '#786366',
accent7: '#9F5E58',
},
};

@ -0,0 +1,22 @@
const { colors } = require('./index');
describe('@themer/colors-green-as-a-whistle', () => {
it('should define all required colors', () => {
const prefixes = [
'accent0',
'accent1',
'accent2',
'accent3',
'accent4',
'accent5',
'accent6',
'accent7',
'shade0',
'shade7',
]
prefixes.forEach(prefix => {
expect(colors.dark[prefix]).toBeDefined();
expect(colors.light[prefix]).toBeDefined();
});
});
});

@ -0,0 +1,35 @@
{
"name": "@themer/colors-green-as-a-whistle",
"version": "1.0.0",
"description": "A warm themer color set featuring desaturated shades of green.",
"main": "lib/index.js",
"engines": {
"node": ">=6.11"
},
"author": "mjswensen",
"license": "MIT",
"files": [
"/lib/index.js"
],
"scripts": {
"prepublishOnly": "cp ../../../LICENSE.md ./"
},
"repository": {
"url": "git+ssh://git@github.com/mjswensen/themer.git",
"type": "git"
},
"bugs": {
"url": "https://github.com/mjswensen/themer/issues"
},
"homepage": "https://github.com/mjswensen/themer/tree/master/cli/packages/colors-green-as-a-whistle#readme",
"peerDependencies": {
"themer": "^3"
},
"keywords": [
"themer",
"colors",
"colorset",
"theme",
"green-as-a-whistle"
]
}