Skip to content

Added Dark mode phpMyAdmin theme based on pmahomme - #115

Open
tarikmanoar wants to merge 2 commits into
phpmyadmin:masterfrom
tarikmanoar:master
Open

Added Dark mode phpMyAdmin theme based on pmahomme#115
tarikmanoar wants to merge 2 commits into
phpmyadmin:masterfrom
tarikmanoar:master

Conversation

@tarikmanoar

Copy link
Copy Markdown
screen

This pull request introduces a new dark mode theme for phpMyAdmin called "pmadarkhomme." The theme is based on the default "pmahomme" theme and features a modern, eye-friendly dark color scheme. The changes include a comprehensive README with installation and customization instructions, as well as a full set of SCSS files implementing the dark theme across all UI components. The most important changes are summarized below.

Theme Introduction and Documentation

  • Added a detailed README.md describing the "pmadarkhomme" theme, its color palette, features, file structure, build instructions, installation steps, browser compatibility, and contribution guidelines.

Core Theme Styles and Color Palette

  • Implemented dark mode color schemes and typography for the main interface in _reboot.scss, including background, text, heading colors, and form element styles.
  • Defined a dark color palette for tables, navigation, cards, buttons, alerts, modals, pagination, breadcrumbs, and other UI components via dedicated SCSS partials (e.g., _tables.scss, _nav.scss, _card.scss, _buttons.scss, _alert.scss, _breadcrumb.scss, _navbar.scss, _pagination.scss). [1][2][3][4][5][6][7][8][9]

Component-Specific Styling

  • Added dark-themed styles for advanced components such as CodeMirror SQL editor (_codemirror.scss), jqPlot charts (_jqplot.scss), GIS data editor (_gis.scss), ENUM/SET editor (_enum-editor.scss), and list groups (_list-group.scss). [1][2][3][4][5]
  • Improved form and field appearance, including textarea and select element sizing and styling (_forms.scss).

Print and Accessibility Support

  • Introduced print-specific styles in _print.scss to ensure clear, readable output with high-contrast black-on-white colors and proper table formatting when printing.

These changes collectively provide a cohesive, accessible, and visually appealing dark mode experience for phpMyAdmin users.

CopilotAI review requested due to automatic review settings January 2, 2026 02:53

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request introduces a comprehensive dark mode theme for phpMyAdmin called "pmadarkhomme", based on the default "pmahomme" theme. The theme provides an eye-friendly dark color scheme with modern aesthetics targeting phpMyAdmin versions 5.0-5.2.

Key Changes:

  • Complete dark mode color palette implementation with backgrounds (#1a1a1a, #1e1e1e, #2a2a2a) and light text colors
  • Comprehensive SCSS styling for all UI components including tables, forms, navigation, buttons, and specialized components
  • Print-specific styles that override dark colors for proper printouts
  • jQuery UI theme customization and image assets

Reviewed changes

Copilot reviewed 26 out of 288 changed files in this pull request and generated 5 comments.

Show a summary per file
FileDescription
theme.jsonTheme metadata defining name, version, author, and phpMyAdmin version support (5.0-5.2)
scss/theme.scssMain SCSS entry point importing all component stylesheets
scss/_variables.scssDark theme color palette and Bootstrap variable overrides
scss/_tables.scssTable styling with dark backgrounds and borders, but contains light hover colors
scss/_reboot.scssBase typography and form element dark styling
scss/_print.scssPrint media queries to ensure readable output with black-on-white colors
scss/_pagination.scssDark pagination component styling
scss/_navigation.scssNavigation panel dark theme with gradients
scss/_navbar.scssNavbar dark gradients and borders
scss/_nav.scssNav pills and tabs dark styling
scss/_modal.scssModal styling with light gradient header (inconsistent)
scss/_list-group.scssList group dark styling
scss/_jqplot.scssChart library styling
scss/_icons.scssIcon sprite positioning rules
scss/_gis.scssGIS editor styling with light background (inconsistent)
scss/_forms.scssForm element sizing
scss/_enum-editor.scssENUM/SET editor styling
scss/_designer.scssDatabase designer tool styling with mixed light/dark colors
scss/_common.scssExtensive common styles including forms with white hover states (inconsistent)
scss/_codemirror.scssCodeMirror SQL editor dark theme
scss/_card.scssCard component dark styling
scss/_buttons.scssButton dark gradients
scss/_breadcrumb.scssBreadcrumb navigation styling
scss/_alert.scssAlert components with appropriate contrast colors
jquery/ filesjQuery UI theme files and icon images for UI widgets
img/ filesTheme-specific image assets

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment threadpmadarkhomme/scss/_modal.scss Outdated
@@ -0,0 +1,3 @@
.modal-header {
background-image: linear-gradient(#f8f8f8, #d8d8d8);

CopilotAIJan 2, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The modal header uses a light gradient linear-gradient(#f8f8f8, #d8d8d8) which is inconsistent with the dark theme. Modal headers should use dark colors consistent with the theme's palette (e.g., colors similar to other components like #2a2a2a or #3a3a3a).

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Comment threadpmadarkhomme/scss/_gis.scss Outdated
}

#gis_data_editor {
background: #d0dce0;

CopilotAIJan 2, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GIS data editor background uses a light color #d0dce0 which is inconsistent with the dark theme. This should be changed to use a dark background color consistent with other components in the theme.

Copilot uses AI. Check for mistakes.
Comment threadpmadarkhomme/scss/_common.scss Outdated
Comment on lines +149 to +153
&[type=text] {
&:hover,
&:focus {
border: 1px solid #7c7c7c;
background: #fff;

CopilotAIJan 2, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The input hover/focus states change the background to white (#fff) which creates a jarring light mode experience in the middle of a dark theme. Consider using a slightly lighter dark color (e.g., #3a3a3a or #404040) for better consistency with the dark theme.

Copilot uses AI. Check for mistakes.
Comment threadpmadarkhomme/scss/_tables.scss Outdated
.table-hover {
tbody tr {
&:hover {
background: linear-gradient(#ced6df, #b6c6d7);

CopilotAIJan 2, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hover background for .table-hover tbody tr uses a light gradient that's not suitable for dark mode. The gradient linear-gradient(#ced6df, #b6c6d7) appears to be light colors which will have poor contrast against the dark theme's text colors. Consider using darker colors consistent with the dark theme palette.

Copilot uses AI. Check for mistakes.
Comment threadpmadarkhomme/scss/_print.scss Outdated
Aligns background and hover colors across input fields, modals, GIS editor, tables, and print styles with a darker palette to enhance readability and maintain visual consistency in the dark theme.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@tarikmanoar