Skip to content

Commit fb065e6

Browse files
committed
#22 - allow override background color
1 parent 6c9b530 commit fb065e6

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

INSTALL.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ hyper install hyper-dracula
1111
Add `hyper-dracula` to the plugins list in your `~/.hyper.js` config file.
1212

1313
```shell
14-
plugins: [
15-
'hyper-dracula'
16-
]
14+
module.exports = {
15+
config: {
16+
backgroundColor: '#32302f' // override background color
17+
},
18+
plugins: {
19+
'hyper-dracula'
20+
}
21+
}
1722
```
1823

1924
#### Activating theme

biome.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
33
"organizeImports": {
44
"enabled": true
55
},

bun.lockb

0 Bytes
Binary file not shown.

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const colors = {
2323

2424
exports.decorateConfig = (config) => {
2525
return Object.assign({}, config, {
26-
backgroundColor,
26+
backgroundColor: config.backgroundColor || backgroundColor,
2727
foregroundColor,
2828
borderColor,
2929
cursorColor,

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hyper-dracula",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"main": "index.js",
55
"homepage": "https://draculatheme.com/hyper",
66
"description": "A dark theme for Hyper",
@@ -19,9 +19,9 @@
1919
"author": "Dang Van Thanh <dangvanthanh@dangthanh.org>",
2020
"license": "MIT",
2121
"devDependencies": {
22-
"@biomejs/biome": "1.6.4",
22+
"@biomejs/biome": "1.7.3",
2323
"husky": "^9.0.11",
24-
"lint-staged": "^15.2.2"
24+
"lint-staged": "^15.2.5"
2525
},
2626
"scripts": {
2727
"lint": "bunx @biomejs/biome check ./index.js --apply",

0 commit comments

Comments
 (0)