typing-test
                                
                                
                                
                                    typing-test copied to clipboard
                            
                            
                            
                        Typing test website build with React
typing-test

NOTE: This is my recreation of already existing monkeytype
This site is currently live: Visit Here
How to run locally
git clone https://github.com/salmannotkhan/typing-test.git
cd typing-test
npm install
npm start     # to start local server at `localhost:3000`
npm run build # to create production build run
Got new ideas?
Did you know? You can add your theme and wordlist ideas into typing-test.
Here is how you can do it:
To add new theme:
- Add theme colors into 
src/stylesheets/themes.scssin following format: 
.theme-name {
    --bg-color: <background-color here> !important;
    --font-color: <font-color here> !important;
    --hl-color: <highlight-color here> !important;
    --fg-color: <forground-color here> !important;
}
Note:
highlight-coloris used for caret, wrong characters, timer, selected and onhover colors
forground-coloris used for correctly typed characters
Using hex codes for colors is recommended
To add new wordlist:
- Rename your wordlist as 
<wordlist-name>.jsonand place it insidesrc/wordlists. 
Important:
The JSON file should only contain single array of words/sentences.
Adding entry to options
- Add your theme/wordlist name into 
src/components/Header.tsxin options: 
export const options: Options = {
	time: [15, 30, 45, 60, 120],
	theme: [
		"default",
		"mkbhd",
		"mocha",
		"coral",
		"ocean",
		"azure",
		"forest",
		"rose-milk",
		<theme-name>
	],
	type: ["words", "sentences", <wordlist-name>],
};
Important:
The following should be always same:
- wordlist-name in
 Header.tsxand your wordlist file name- theme-name in
 themes.scssandHeader.tsxshould always match otherwise themes won't work
- 
Make a pull request
 - 
If it's good enough to merge, I'll merge it