Skip to content

Commit dc1543c

Browse files
Merge pull request #473 from V-yadav18/f1
added dark theme
2 parents 348a405 + 2c6af44 commit dc1543c

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

Chess-Game/Readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ git clone https://github.com/Ayushparikh-code/Web-dev-mini-projects.git
2626
- Go to the directory
2727
- Run the index.html file
2828
- Start Playing!!!
29+
30+
Note: In your HTML file, you would initially load one of the themes, and then you can use JavaScript to allow users to switch between the themes as mentioned in a previous response.
2931

3032

3133
<h3> Screenshot </h3>
@@ -38,4 +40,4 @@ git clone https://github.com/Ayushparikh-code/Web-dev-mini-projects.git
3840

3941
<a href="https://sonamgupta136.github.io/Chess-Game/"> Demo </a>
4042

41-
<br>
43+
<br>

Chess-Game/dark.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* Dark Theme Styles */
2+
html, body {
3+
background-color: #333;
4+
color: #fff;
5+
}
6+
7+
#turn {
8+
background: #444;
9+
border-color: #222;
10+
}
11+
12+
.turnhighlight {
13+
background: #5cb85c;
14+
color: #fff;
15+
}
16+
17+
.gamecell {
18+
background: #555;
19+
border-color: #222;
20+
}
21+
22+
/* Add any other specific dark theme styles here */

Chess-Game/light.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* Light Theme Styles */
2+
html, body {
3+
background-color: #fff;
4+
color: #333;
5+
}
6+
7+
#turn {
8+
background: #fff;
9+
border-color: #000;
10+
}
11+
12+
.turnhighlight {
13+
background: #5cb85c;
14+
color: #fff;
15+
}
16+
17+
.gamecell {
18+
background: #ccc;
19+
border-color: #000;
20+
}
21+
22+
/* Add any other specific light theme styles here */

0 commit comments

Comments
 (0)