Skip to content

🌜 Add dark mode support for pricing table #379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions static/css/table_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
font-size: 14px;
}

/* Light mode hint color */
[data-theme='light'] .mobile-scroll-hint {
color: #666;
}

/* Dark mode hint color */
[data-theme='dark'] .mobile-scroll-hint {
color: #a0a0a0;
}

/* Simplified pricing table styles */
.simplified-pricing-table {
width: 100%;
Expand All @@ -35,11 +45,35 @@
vertical-align: top;
}

/* Light mode table borders */
[data-theme='light'] .simplified-pricing-table th,
[data-theme='light'] .simplified-pricing-table td {
border-bottom: 1px solid #ebeaf0;
}

/* Dark mode table borders */
[data-theme='dark'] .simplified-pricing-table th,
[data-theme='dark'] .simplified-pricing-table td {
border-bottom: 1px solid #404040;
}

.simplified-pricing-table th {
background-color: #f5f5f5;
font-weight: 600;
}

/* Light mode header background */
[data-theme='light'] .simplified-pricing-table th {
background-color: #f5f5f5;
color: #000;
}

/* Dark mode header background */
[data-theme='dark'] .simplified-pricing-table th {
background-color: #2a2a2a;
color: #ffffff;
}

.whats-changing-col {
width: 50%;
}
Expand All @@ -49,6 +83,18 @@
font-weight: 600;
}

/* Light mode section header */
[data-theme='light'] .section-header {
background-color: #e8e8ff !important;
color: #000;
}

/* Dark mode section header */
[data-theme='dark'] .section-header {
background-color: #3a3a5c !important;
color: #ffffff;
}

.section-header td {
padding: 0.75rem 1rem;
text-align: left;
Expand All @@ -58,6 +104,18 @@
background-color: #ffffff;
}

/* Light mode row background */
[data-theme='light'] .simplified-pricing-table tbody tr:not(.section-header) {
background-color: #ffffff;
color: #000;
}

/* Dark mode row background */
[data-theme='dark'] .simplified-pricing-table tbody tr:not(.section-header) {
background-color: #1a1a1a;
color: #ffffff;
}

.feature-list {
padding-left: 1.5rem;
margin: 0;
Expand All @@ -80,6 +138,11 @@
display: inline-block;
}

/* Dark mode price up color (slightly lighter red for better contrast) */
[data-theme='dark'] .price-up {
color: #ff6b6b;
}

.price-down {
color: #2b8a3e;
font-weight: bold;
Expand All @@ -88,6 +151,11 @@
display: inline-block;
}

/* Dark mode price down color (slightly lighter green for better contrast) */
[data-theme='dark'] .price-down {
color: #51cf66;
}

@media (max-width: 768px) {
.pricing-table-container {
margin: 0 -20px;
Expand Down