Skip to content

Commit 230d277

Browse files
Merge pull request #379 from FlutterFlow/michael/fix/dark-mode-pricing
🌜 Add dark mode support for pricing table
2 parents 07bbd35 + 4340988 commit 230d277

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

static/css/table_style.css

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
font-size: 14px;
1717
}
1818

19+
/* Light mode hint color */
20+
[data-theme='light'] .mobile-scroll-hint {
21+
color: #666;
22+
}
23+
24+
/* Dark mode hint color */
25+
[data-theme='dark'] .mobile-scroll-hint {
26+
color: #a0a0a0;
27+
}
28+
1929
/* Simplified pricing table styles */
2030
.simplified-pricing-table {
2131
width: 100%;
@@ -35,11 +45,35 @@
3545
vertical-align: top;
3646
}
3747

48+
/* Light mode table borders */
49+
[data-theme='light'] .simplified-pricing-table th,
50+
[data-theme='light'] .simplified-pricing-table td {
51+
border-bottom: 1px solid #ebeaf0;
52+
}
53+
54+
/* Dark mode table borders */
55+
[data-theme='dark'] .simplified-pricing-table th,
56+
[data-theme='dark'] .simplified-pricing-table td {
57+
border-bottom: 1px solid #404040;
58+
}
59+
3860
.simplified-pricing-table th {
3961
background-color: #f5f5f5;
4062
font-weight: 600;
4163
}
4264

65+
/* Light mode header background */
66+
[data-theme='light'] .simplified-pricing-table th {
67+
background-color: #f5f5f5;
68+
color: #000;
69+
}
70+
71+
/* Dark mode header background */
72+
[data-theme='dark'] .simplified-pricing-table th {
73+
background-color: #2a2a2a;
74+
color: #ffffff;
75+
}
76+
4377
.whats-changing-col {
4478
width: 50%;
4579
}
@@ -49,6 +83,18 @@
4983
font-weight: 600;
5084
}
5185

86+
/* Light mode section header */
87+
[data-theme='light'] .section-header {
88+
background-color: #e8e8ff !important;
89+
color: #000;
90+
}
91+
92+
/* Dark mode section header */
93+
[data-theme='dark'] .section-header {
94+
background-color: #3a3a5c !important;
95+
color: #ffffff;
96+
}
97+
5298
.section-header td {
5399
padding: 0.75rem 1rem;
54100
text-align: left;
@@ -58,6 +104,18 @@
58104
background-color: #ffffff;
59105
}
60106

107+
/* Light mode row background */
108+
[data-theme='light'] .simplified-pricing-table tbody tr:not(.section-header) {
109+
background-color: #ffffff;
110+
color: #000;
111+
}
112+
113+
/* Dark mode row background */
114+
[data-theme='dark'] .simplified-pricing-table tbody tr:not(.section-header) {
115+
background-color: #1a1a1a;
116+
color: #ffffff;
117+
}
118+
61119
.feature-list {
62120
padding-left: 1.5rem;
63121
margin: 0;
@@ -80,6 +138,11 @@
80138
display: inline-block;
81139
}
82140

141+
/* Dark mode price up color (slightly lighter red for better contrast) */
142+
[data-theme='dark'] .price-up {
143+
color: #ff6b6b;
144+
}
145+
83146
.price-down {
84147
color: #2b8a3e;
85148
font-weight: bold;
@@ -88,6 +151,11 @@
88151
display: inline-block;
89152
}
90153

154+
/* Dark mode price down color (slightly lighter green for better contrast) */
155+
[data-theme='dark'] .price-down {
156+
color: #51cf66;
157+
}
158+
91159
@media (max-width: 768px) {
92160
.pricing-table-container {
93161
margin: 0 -20px;

0 commit comments

Comments
 (0)