-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathrainbow.css
More file actions
103 lines (93 loc) · 3.65 KB
/
rainbow.css
File metadata and controls
103 lines (93 loc) · 3.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* Rainbow theme */
[data-color-theme="rainbow"] {
--theme-primary: #e40303;
--theme-secondary: #ff8c00;
--theme-accent: #ffed00;
}
[data-color-theme="rainbow"] .gradient-hero {
background-image: linear-gradient(to bottom right,
#E40303 0%, #E40303 16.67%,
#FF8C00 16.67%, #FF8C00 33.33%,
#FFED00 33.33%, #FFED00 50%,
#008026 50%, #008026 66.67%,
#004CFF 66.67%, #004CFF 83.33%,
#732982 83.33%, #732982 100%) !important;
}
[data-color-theme="rainbow"] .gradient-header {
background-image: linear-gradient(to right,
#E40303 0%, #E40303 16.67%,
#FF8C00 16.67%, #FF8C00 33.33%,
#FFED00 33.33%, #FFED00 50%,
#008026 50%, #008026 66.67%,
#004CFF 66.67%, #004CFF 83.33%,
#732982 83.33%, #732982 100%) !important;
}
[data-color-theme="rainbow"] .gradient-text {
background: linear-gradient(
to right,
#E40303 0%,
#E40303 16.67%,
#FF8C00 16.67%,
#FF8C00 33.33%,
#FFED00 33.33%,
#FFED00 50%,
#008026 50%,
#008026 66.67%,
#004CFF 66.67%,
#004CFF 83.33%,
#732982 83.33%,
#732982 100%
);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
}
/* Add backdrop blur to gradient sections */
[data-color-theme="rainbow"] section.gradient-hero .max-w-7xl.py-20,
[data-color-theme="rainbow"] section.gradient-header .max-w-7xl.py-20,
[data-color-theme="rainbow"] section.gradient-hero .max-w-7xl.py-8.text-center,
[data-color-theme="rainbow"] section.gradient-header .max-w-7xl.py-8.text-center,
[data-color-theme="rainbow"] section.gradient-hero .max-w-7xl.text-center,
[data-color-theme="rainbow"] section.gradient-header .max-w-7xl.text-center,
[data-color-theme="rainbow"] section.gradient-hero .max-w-7xl:has(h1.gradient-text-hero),
[data-color-theme="rainbow"] section.gradient-header .max-w-7xl:has(h1.gradient-text-hero) {
background: rgba(0, 0, 0, 0.25);
border-radius: 16px;
backdrop-filter: blur(4px);
}
.dark[data-color-theme="rainbow"] section.gradient-hero .max-w-7xl.py-20,
.dark[data-color-theme="rainbow"] section.gradient-header .max-w-7xl.py-20,
.dark[data-color-theme="rainbow"] section.gradient-hero .max-w-7xl.py-8.text-center,
.dark[data-color-theme="rainbow"] section.gradient-header .max-w-7xl.py-8.text-center,
.dark[data-color-theme="rainbow"] section.gradient-hero .max-w-7xl.text-center,
.dark[data-color-theme="rainbow"] section.gradient-header .max-w-7xl.text-center,
.dark[data-color-theme="rainbow"] section.gradient-hero .max-w-7xl:has(h1.gradient-text-hero),
.dark[data-color-theme="rainbow"] section.gradient-header .max-w-7xl:has(h1.gradient-text-hero) {
background: rgba(255, 255, 255, 0.1);
border-radius: 16px;
backdrop-filter: blur(4px);
}
/* Ensure white sections are fully opaque on Rainbow theme - light mode only */
:not(.dark)[data-color-theme="rainbow"] .bg-white,
:not(.dark)[data-color-theme="rainbow"] section.bg-white {
background: #ffffff !important;
}
/* Override for dark mode - must come after light mode rules */
.dark[data-color-theme="rainbow"] .bg-white,
.dark[data-color-theme="rainbow"] section.bg-white,
.dark[data-color-theme="rainbow"] .bg-white.dark\:bg-ipython-dark,
.dark[data-color-theme="rainbow"] nav.bg-white {
background: #0f172a !important;
}
/* Ensure gray sections are fully opaque white on Rainbow theme - light mode only */
:not(.dark)[data-color-theme="rainbow"] section.bg-gray-50 {
background: #ffffff !important;
}
.dark[data-color-theme="rainbow"] section.bg-gray-50 {
background: #0f172a !important;
}
/* Ensure icon containers have visible backgrounds on Rainbow theme */
[data-color-theme="rainbow"] .bg-theme-secondary {
background: #1f2937 !important;
}