Skip to content

Commit

Permalink
#22 - allow override background color
Browse files Browse the repository at this point in the history
  • Loading branch information
dangvanthanh committed May 31, 2024
1 parent 6c9b530 commit fb065e6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
11 changes: 8 additions & 3 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ hyper install hyper-dracula
Add `hyper-dracula` to the plugins list in your `~/.hyper.js` config file.

```shell
plugins: [
'hyper-dracula'
]
module.exports = {
config: {
backgroundColor: '#32302f' // override background color
},
plugins: {
'hyper-dracula'
}
}
```

#### Activating theme
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const colors = {

exports.decorateConfig = (config) => {
return Object.assign({}, config, {
backgroundColor,
backgroundColor: config.backgroundColor || backgroundColor,
foregroundColor,
borderColor,
cursorColor,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyper-dracula",
"version": "0.2.1",
"version": "0.2.2",
"main": "index.js",
"homepage": "https://draculatheme.com/hyper",
"description": "A dark theme for Hyper",
Expand All @@ -19,9 +19,9 @@
"author": "Dang Van Thanh <[email protected]>",
"license": "MIT",
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "1.7.3",
"husky": "^9.0.11",
"lint-staged": "^15.2.2"
"lint-staged": "^15.2.5"
},
"scripts": {
"lint": "bunx @biomejs/biome check ./index.js --apply",
Expand Down

0 comments on commit fb065e6

Please sign in to comment.