Add themer port of orignal Dracula theme
This commit is contained in:
parent
458a87ffad
commit
81b073d6ef
2
cli/packages/themer-colors-dracula/.gitignore
vendored
Normal file
2
cli/packages/themer-colors-dracula/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
LICENSE.md
|
2
cli/packages/themer-colors-dracula/.yarnrc
Normal file
2
cli/packages/themer-colors-dracula/.yarnrc
Normal file
@ -0,0 +1,2 @@
|
||||
version-tag-prefix themer-colors-dracula-v
|
||||
version-git-message themer-colors-dracula-v%s
|
15
cli/packages/themer-colors-dracula/README.md
Normal file
15
cli/packages/themer-colors-dracula/README.md
Normal file
@ -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 ...
|
14
cli/packages/themer-colors-dracula/lib/index.js
Normal file
14
cli/packages/themer-colors-dracula/lib/index.js
Normal file
@ -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',
|
||||
},
|
||||
};
|
22
cli/packages/themer-colors-dracula/lib/index.spec.js
Normal file
22
cli/packages/themer-colors-dracula/lib/index.spec.js
Normal file
@ -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();
|
||||
});
|
||||
});
|
35
cli/packages/themer-colors-dracula/package.json
Normal file
35
cli/packages/themer-colors-dracula/package.json
Normal file
@ -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"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user