Skip to content

Commit 5771600

Browse files
chore: fix changelog in light mode (#299)
* chore: fix changelog in light mode * chore: fix changelog in light mode * Apply suggestions from code review Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 8f24f20 commit 5771600

File tree

2 files changed

+37
-5
lines changed

2 files changed

+37
-5
lines changed

src/components/BlogPostPreview/styles.module.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,16 @@
6969
.title {
7070
font-size: 1.25rem;
7171
font-weight: 600;
72-
color: rgb(241 245 249); /* slate-100 */
72+
color: #333;
7373
margin: 0;
7474
line-height: 1.4;
7575
transition: color 0.2s ease;
7676
}
7777

78+
html[data-theme="dark"] .title {
79+
color: #f1f5f9; /* slate-100 */
80+
}
81+
7882
.titleLink:hover .title {
7983
color: rgb(34 211 238); /* cyan-400 */
8084
}
@@ -85,6 +89,10 @@
8589
align-items: center;
8690
gap: 0.5rem;
8791
font-size: 0.875rem;
92+
color: #333;
93+
}
94+
95+
html[data-theme="dark"] .metadata {
8896
color: rgb(148 163 184); /* slate-400 */
8997
}
9098

@@ -103,11 +111,15 @@
103111
/* Description */
104112
.description {
105113
font-size: 0.95rem;
106-
color: rgb(203 213 225); /* slate-300 */
114+
color: #333;
107115
line-height: 1.6;
108116
margin: 0;
109117
}
110118

119+
html[data-theme="dark"] .description {
120+
color: #f1f5f9; /* slate-100 */
121+
}
122+
111123
/* Call to Action Button - matching Get Started style */
112124
.button {
113125
display: inline-flex;

src/components/Changelog/styles.module.css

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,14 @@
187187
.entryTitle {
188188
font-size: 1.5rem;
189189
font-weight: 700;
190-
color: rgb(241 245 249); /* slate-100 */
190+
color: #333;
191191
margin-bottom: 0.75rem;
192192
}
193193

194+
html[data-theme="dark"] .entryTitle {
195+
color: rgb(241 245 249); /* slate-100 */
196+
}
197+
194198
/* Tag styles */
195199
.tag {
196200
display: inline-flex;
@@ -258,6 +262,10 @@
258262
/* Content styles */
259263
.entryContent {
260264
margin-top: 1rem;
265+
color: #333; /* slate-100 */
266+
}
267+
268+
html[data-theme="dark"] .entryContent {
261269
color: rgb(148 163 184); /* slate-400 */
262270
}
263271

@@ -289,6 +297,10 @@
289297

290298
.entryContent strong {
291299
font-weight: 600;
300+
color: #333; /* slate-100 */
301+
}
302+
303+
html[data-theme="dark"] .entryContent strong {
292304
color: rgb(203 213 225); /* slate-300 */
293305
}
294306

@@ -485,8 +497,12 @@
485497
.subcategoryTitle {
486498
font-size: 1rem;
487499
font-weight: 600;
488-
color: rgb(203 213 225); /* slate-300 */
489500
margin: 0;
501+
color: #333;
502+
}
503+
504+
html[data-theme="dark"] .subcategoryTitle {
505+
color: rgb(203 213 225); /* slate-300 */
490506
}
491507

492508
.subcategoryContent {
@@ -513,11 +529,15 @@
513529
.subcategoryItemTitle {
514530
font-size: 0.875rem;
515531
font-weight: 500;
516-
color: rgb(241 245 249); /* slate-100 */
532+
color: #333;
517533
margin: 0;
518534
flex-grow: 1;
519535
}
520536

537+
html[data-theme="dark"] .subcategoryItemTitle {
538+
color: rgb(241 245 249); /* slate-100 */
539+
}
540+
521541
.subcategoryItemDescription {
522542
font-size: 0.8rem;
523543
color: rgb(148 163 184); /* slate-400 */

0 commit comments

Comments
 (0)