Skip to content

Commit 2fac83e

Browse files
authored
Merge pull request #147 from tranthaituananh/main
add high-contrast theme
2 parents 6a7fa05 + 6edc856 commit 2fac83e

File tree

4 files changed

+24
-12
lines changed

4 files changed

+24
-12
lines changed

‎README.md‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,18 @@ _`username=ashutosh00710&theme=theme_name`_
5656

5757
## Available Themes
5858

59-
| Name | Preview |
60-
| :------------------------: | :--------------------------------------------------------: |
61-
|**Default (cotton candy)**| <imgsrc="./asset/default.svg"height=250alt="graph"/> |
62-
|**react**| <imgsrc="./asset/react.png"height=250alt="graph"/> |
63-
|**react-dark**| <imgsrc="./asset/react-dark.svg"height=250alt="graph"/> |
64-
|**github**| <imgsrc="./asset/github.svg"height=250alt="graph"/> |
65-
|**xcode**| <imgsrc="./asset/xcode.svg"height=250alt="graph"/> |
66-
|**rogue**| <imgsrc="./asset/rogue.svg"height=250alt="graph"/> |
67-
|**merko**| <imgsrc="./asset/merko.png"height=250alt="graph"/> |
68-
|**vue**| <imgsrc="./asset/vue.png"height=250alt="graph"/> |
69-
|**tokyo-night**|<imgsrc="./asset/tokyo-night.png"height=250alt="graph"/> |
59+
| Name | Preview |
60+
| :------------------------: | :--------------------------------------------------------: |
61+
|**Default (cotton candy)**| <imgsrc="./asset/default.svg"height=250alt="graph"/> |
62+
|**react**| <imgsrc="./asset/react.png"height=250alt="graph"/> |
63+
|**react-dark**| <imgsrc="./asset/react-dark.svg"height=250alt="graph"/> |
64+
|**github**| <imgsrc="./asset/github.svg"height=250alt="graph"/> |
65+
|**xcode**| <imgsrc="./asset/xcode.svg"height=250alt="graph"/> |
66+
|**rogue**| <imgsrc="./asset/rogue.svg"height=250alt="graph"/> |
67+
|**merko**| <imgsrc="./asset/merko.png"height=250alt="graph"/> |
68+
|**vue**| <imgsrc="./asset/vue.png"height=250alt="graph"/> |
69+
|**tokyo-night**|<imgsrc="./asset/tokyo-night.png"height=250alt="graph"/> |
70+
|**high-contrast**|<imgsrc="./asset/high-contrast.png"height=250alt="graph"/>|
7071

7172
For more themes click [here](https://github.com/Ashutosh00710/github-readme-activity-graph/blob/main/THEMES.md)
7273

‎THEMES.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@
2424
|**react**| <imgsrc="./asset/react.png"height=250alt="graph"/> |
2525
|**merko**| <imgsrc="./asset/merko.png"height=250alt="graph"/> |
2626
|**vue**| <imgsrc="./asset/vue.png"height=250alt="graph"/> |
27-
|**tokyo-night**| <imgsrc="./asset/tokyo-night.png"height=250alt="graph"/> |
27+
|**tokyo-night**| <imgsrc="./asset/tokyo-night.png"height=250alt="graph"/> |
28+
|**high-contrast**| <imgsrc="./asset/high-contrast.png"height=250alt="graph"/> |

‎asset/high-contrast.png‎

59.5 KB
Loading

‎src/styles/themes.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,16 @@ export const selectColors = (queryString: string): Colors =>{
272272
lineColor: '70a5fd',
273273
pointColor: 'a9b1d6',
274274
};
275+
case'high-contrast':
276+
return{
277+
areaColor: 'e7e7e7',
278+
borderColor: 'ffffff',
279+
bgColor: '000000',
280+
color: 'e7e7e7',
281+
titleColor: 'e7e7e7',
282+
lineColor: 'e7e7e7',
283+
pointColor: 'e7e7e7',
284+
};
275285
default:
276286
return{
277287
areaColor: '9e4c98',

0 commit comments

Comments
(0)