Skip to content

Commit 49ee5ef

Browse files
committed
style: add subtle gradient backgrounds for dark and light themes
Dark: navy → indigo → purple gradient Light: white → indigo → pink gradient
1 parent 80d655e commit 49ee5ef

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

static/style.css

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ html {
2424
--hero-gradient: rgba(99, 102, 241, 0.15);
2525
--link-color: var(--accent-light);
2626
--header-bg: rgba(15, 23, 42, 0.1);
27+
--bg-gradient: linear-gradient(
28+
135deg,
29+
#0f172a 0%,
30+
#1e1b4b 35%,
31+
#2e1065 65%,
32+
#0f172a 100%
33+
);
2734
}
2835

2936
/* Light theme */
@@ -38,6 +45,13 @@ html {
3845
--hero-gradient: rgba(99, 102, 241, 0.08);
3946
--link-color: var(--accent-dark);
4047
--header-bg: rgba(248, 250, 252, 0.1);
48+
--bg-gradient: linear-gradient(
49+
135deg,
50+
#f8fafc 0%,
51+
#e0e7ff 35%,
52+
#fae8ff 65%,
53+
#f8fafc 100%
54+
);
4155
}
4256

4357
/* ========================================
@@ -49,12 +63,13 @@ html {
4963

5064
body {
5165
font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
52-
background: var(--bg-primary);
66+
background: var(--bg-gradient);
67+
background-attachment: fixed;
5368
color: var(--text-primary);
5469
margin: 0;
5570
min-height: 100vh;
5671
line-height: 1.6;
57-
transition: background-color 0.3s, color 0.3s;
72+
transition: background 0.3s, color 0.3s;
5873
}
5974

6075
a {

0 commit comments

Comments
 (0)