Add themer port of orignal Dracula theme

This commit is contained in:
Matt Swensen 2020-04-18 11:29:40 -06:00
parent 458a87ffad
commit 81b073d6ef
No known key found for this signature in database
GPG Key ID: 3F9E482BFC526F35
6 changed files with 90 additions and 0 deletions

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

@ -0,0 +1,2 @@
version-tag-prefix themer-colors-dracula-v
version-git-message themer-colors-dracula-v%s

@ -0,0 +1,15 @@
# themer-colors-dracula
A [themer](https://github.com/mjswensen/themer) color set based on the [Dracula theme](https://github.com/dracula/dracula-theme) by [Zeno Rocha](https://zenorocha.com/).
This theme is ported from the original open-source Dracula—see [draculatheme.com/pro](https://draculatheme.com/pro) for Dracula Pro.
## Installation & usage
Install this module wherever you have `themer` installed:
npm install themer-colors-dracula
Then pass `themer-colors-dracula` as a `-c` (`--colors`) arg to `themer`:
themer -c themer-colors-dracula ...

@ -0,0 +1,14 @@
module.exports.colors = {
dark: {
shade0: '#282a36',
shade7: '#f8f8f2',
accent0: '#ff5555',
accent1: '#ffb86c',
accent2: '#f1fa8c',
accent3: '#50fa7b',
accent4: '#8be9fd',
accent5: '#6272a4',
accent6: '#bd93f9',
accent7: '#ff79c6',
},
};

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

@ -0,0 +1,35 @@
{
"name": "themer-colors-dracula",
"version": "1.0.0",
"description": "A themer color set ported from the popular Dracula theme.",
"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/themer-colors-dracula#readme",
"peerDependencies": {
"themer": "^3"
},
"keywords": [
"themer",
"colors",
"colorset",
"theme",
"dracula"
]
}