Skip to content

Commit 06e5cee

Browse files
committed
Update HTML styles for light mode support
- Changed body background and text color to use light mode variables for improved readability. - Added styles for the header in light mode to ensure consistent design across themes.
1 parent 0881938 commit 06e5cee

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/html_utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def html_header(title):
3232
--sev-bg-info-dark: #4a5568;
3333
}}
3434
body {{
35-
background: var(--bg-dark);
36-
color: var(--text-dark);
35+
background: var(--bg-light);
36+
color: var(--text-light);
3737
font-family: 'Segoe UI', Arial, sans-serif;
3838
margin: 0; padding: 0;
3939
transition: background 0.2s, color 0.2s;
@@ -56,6 +56,10 @@ def html_header(title):
5656
background: var(--bg-dark);
5757
border-bottom: 1px solid var(--table-border-dark);
5858
}}
59+
body.lightmode .header {{
60+
background: var(--bg-light);
61+
border-bottom: 1px solid var(--table-border);
62+
}}
5963
.toggle-btn {{
6064
background: var(--accent);
6165
color: #fff;

0 commit comments

Comments
 (0)