Skip to content

Commit 29ba133

Browse files
committed
dark theme
1 parent 1af3d74 commit 29ba133

2 files changed

Lines changed: 66 additions & 2 deletions

File tree

src/components/CallToAction/styles.module.css

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
.card {
21-
background-color: rgba(154, 192, 241, 0.4); /* Made more transparent */
21+
background-color: rgba(154, 192, 241, 0.4);
2222
border-radius: 16px;
2323
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
2424
height: 100%;
@@ -89,3 +89,26 @@
8989
color: #4285f4;
9090
font-weight: bold;
9191
}
92+
93+
/* Dark theme styles */
94+
[data-theme='dark'] .section {
95+
background-color: #1a1a2e;
96+
}
97+
98+
[data-theme='dark'] .card {
99+
background-color: rgba(66, 133, 244, 0.15);
100+
color: #ffffff;
101+
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
102+
}
103+
104+
[data-theme='dark'] .card:hover {
105+
box-shadow: 0 12px 16px rgba(0, 0, 0, 0.4);
106+
}
107+
108+
[data-theme='dark'] .header {
109+
color: #ffffff;
110+
}
111+
112+
[data-theme='dark'] .tickList li::before {
113+
color: #5c9eff;
114+
}

src/components/Demos/styles.module.css

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,4 +286,45 @@ button:active {
286286
display: block;
287287
}
288288
}
289-
289+
290+
/* Dark theme styles */
291+
[data-theme='dark'] .requestContainer {
292+
background-color: #2d2d3a;
293+
border-color: #444;
294+
}
295+
296+
[data-theme='dark'] .httpMethod {
297+
background-color: #1e3a46;
298+
}
299+
300+
[data-theme='dark'] .postcodeInput {
301+
color: #e0e0e0;
302+
}
303+
304+
[data-theme='dark'] .payloadContainer {
305+
border-color: #444;
306+
}
307+
308+
[data-theme='dark'] .payloadHeader {
309+
background-color: #2d2d3a;
310+
border-color: #444;
311+
}
312+
313+
[data-theme='dark'] .jsonEditor {
314+
background-color: #1e1e2e;
315+
color: #e0e0e0;
316+
}
317+
318+
[data-theme='dark'] .mobileDivider {
319+
background-color: #444;
320+
}
321+
322+
[data-theme='dark'] .viewResultsButton {
323+
background-color: #2d2d3a;
324+
color: #e0e0e0;
325+
border: 1px solid #444;
326+
}
327+
328+
[data-theme='dark'] .viewResultsButton:hover {
329+
background-color: #3a3a4a;
330+
}

0 commit comments

Comments
 (0)