diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..10f4ac5 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +# editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false + +[*.txt] +trim_trailing_whitespace = false \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..544138b --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +{ + "singleQuote": true +} diff --git a/INSTALL.md b/INSTALL.md index 2351c23..c543ce4 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -9,10 +9,10 @@ Add `hyper-dracula` to the plugins list in your `~/.hyper.js` config file. plugins: [ - "hyper-dracula" + 'hyper-dracula' ] #### Activating theme 1. Start Hyper -2. Go to `View -> Full Reload` +2. Go to `View -> Full Reload` or pressing `Cmd + Shft + R` diff --git a/index.js b/index.js index bc9129c..f813792 100644 --- a/index.js +++ b/index.js @@ -1,44 +1,38 @@ -'use strict' +'use strict'; -const foregroundColor = '#f8f8f2' -const backgroundColor = '#282a36' -const black = '#44475a' -const red = '#ff5555' -const green = '#50fa7b' -const yellow = '#f1fa8c' -const blue = '#c0a8fa' -const magenta = '#ff79c6' -const cyan = '#8be9fd' -const gray = '#666666' -const brightBlack = '#999999' -const brightWhite = '#ffffff' +const backgroundColor = '#282a36'; +const foregroundColor = '#f8f8f2'; +const borderColor = '#44475a'; +const cursorColor = 'f8f8f2'; +const colors = { + black: '#000000', + red: '#ff5555', + green: '#50fa7b', + yellow: '#f1fa8c', + blue: '#bd93f9', + magenta: '#ff79c6', + cyan: '#8be9fd', + white: 'bfbfbf', + lightBlack: '#4d4d4d', + lightRed: '#ff6e67', + lightGreen: '#5af78e', + lightYellow: '#f4f99d', + lightBlue: '#caa9fa', + lightMagenta: '#ff92d0', + lightCyan: '#9aedfe', + lightWhite: '#e6e6e6' +}; exports.decorateConfig = config => { return Object.assign({}, config, { backgroundColor, foregroundColor, - borderColor: black, - cursorColor: brightBlack, - colors: { - black, - red, - green, - yellow, - blue, - magenta, - cyan, - gray, - - // bright - brightBlack, - red, - green, - yellow, - blue, - magenta, - cyan, - brightWhite - }, + borderColor, + cursorColor, + colors, + termCSS: ` + ${config.termCSS || ''} + `, css: ` ${config.css || ''} .tabs_list .tab_tab.tab_active .tab_text { @@ -46,8 +40,8 @@ exports.decorateConfig = config => { } .tab_active:before { - border-color: rgb(68, 71, 90); + border-color: ${borderColor}; } ` - }) -} + }); +}; diff --git a/package.json b/package.json index 2b0d5a9..5505602 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,21 @@ { "name": "hyper-dracula", - "version": "0.1.8", + "version": "0.1.9", + "main": "index.js", + "homepage": "https://draculatheme.com/hyper", "description": "A dark theme for Hyper", - "license": "MIT", - "repository": "dracula/hyper", - "author": { - "name": "Dang Van Thanh", - "email": "dangvanthanh@dangthanh.org", - "url": "http://dangthanh.org" + "repository": { + "type": "git", + "url": "https://github.com/dracula/hyper.git" }, - "files": [ - "index.js" - ], "keywords": [ - "dracula-theme", + "hyperterm", "hyper", - "hyper-theme", - "hyper-dracula" - ] + "hyper.app", + "hyper dracula", + "hyper theme", + "dracula-theme" + ], + "author": "Dang Van Thanh ", + "license": "MIT" } diff --git a/readme.md b/readme.md index 4ed4bd1..1c84d64 100644 --- a/readme.md +++ b/readme.md @@ -22,9 +22,9 @@ The screenshot shown is a combination of the following additional software: This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/hyper/graphs/contributors). -[![Dang Van Thanh](https://avatars2.githubusercontent.com/u/2674850?v=3&s=70)](https://github.com/dangvanthanh) | ---- | -Dang Van Thanh | +[![Dang Van Thanh](https://avatars2.githubusercontent.com/u/2674850?v=4&s=70)](https://github.com/dangvanthanh) | [![Zeno Rocha](https://avatars1.githubusercontent.com/u/398893?v=4&s=70)](https://github.com/zenorocha) | [![Haeseong Je](https://avatars3.githubusercontent.com/u/14370645?v=4&s=70)](https://github.com/HaeTheong) | [![Beau Allison](https://avatars1.githubusercontent.com/u/14225594?v=4&s=70)](https://github.com/beauallison) | [![Brandonptucker](https://avatars2.githubusercontent.com/u/1033893?v=4&s=70)](https://github.com/brandonptucker) | +--- | --- | --- | --- | --- | +Dang Van Thanh | Zeno Rocha | Haeseong Je | Beau Allison | Brandonptucker | ## License