Skip to content

Commit f89aef5

Browse files
authored
Feat dark colors (#1547)
* Tweak dark colors to match Laravel * Update laravel-debugbar-dark-mode.css * Update laravel-debugbar.css
1 parent 276892c commit f89aef5

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

src/Resources/laravel-debugbar-dark-mode.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ div.phpdebugbar-openhandler {
99
--color-gray-500: #A0AEC0;
1010
--color-gray-600: #718096;
1111
--color-gray-700: #4A5568;
12-
--color-gray-800: #2D3748;
13-
--color-gray-900: #1A202C;
14-
--color-red-vivid: #FF0040;
12+
--color-gray-800: #252a37;
13+
--color-gray-900: #171923;
14+
--color-red-vivid: #eb4432;
1515
}
1616

1717
div.phpdebugbar,
@@ -168,7 +168,7 @@ div.phpdebugbar pre.sf-dump .sf-dump-str {
168168
}
169169

170170
div.phpdebugbar-openhandler {
171-
border-top-color: #fa5661;
171+
border-top-color: var(--color-red-vivid);
172172
}
173173

174174
div.phpdebugbar div.phpdebugbar-header .phpdebugbar-tab {

src/Resources/laravel-debugbar.css

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
.Whoops.container {
33
z-index: 5999999;
44
}
5+
div.phpdebugbar,
6+
div.phpdebugbar-openhandler {
7+
--color-red-vivid: #eb4432;
8+
}
59

610
div.phpdebugbar {
711
font-size: 13px;
@@ -24,7 +28,7 @@ div.phpdebugbar-openhandler-overlay {
2428

2529
div.phpdebugbar-openhandler {
2630
border: 1px solid #aaa;
27-
border-top: 3px solid #fa5661;
31+
border-top: 3px solid var(--color-red-vivid);
2832
width: 80%;
2933
height: 70%;
3034
padding: 10px;
@@ -161,7 +165,7 @@ div.phpdebugbar-resize-handle {
161165
cursor: ns-resize;
162166
border-top: none;
163167
border-bottom: 0px;
164-
background-color: #fa5661;
168+
background-color: var(--color-red-vivid);
165169
}
166170

167171
.phpdebugbar.phpdebugbar-minimized div.phpdebugbar-resize-handle {
@@ -411,7 +415,7 @@ div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-w
411415

412416
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter[rel="error"],
413417
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter.phpdebugbar-widgets-excluded[rel="error"] {
414-
background-color: #fa5661;
418+
background-color: var(--color-red-vivid);
415419
}
416420

417421
div.phpdebugbar-widgets-messages div.phpdebugbar-widgets-toolbar a.phpdebugbar-widgets-filter[rel="warning"],
@@ -446,23 +450,23 @@ a.phpdebugbar-maximize-btn {
446450
}
447451

448452
a.phpdebugbar-tab.phpdebugbar-active {
449-
background: #fa5661;
453+
background: var(--color-red-vivid);
450454
background-image: none;
451455
color: #fff !important;
452456
text-shadow: 1px 1px #bf3039;
453457
}
454458

455459
a.phpdebugbar-tab.phpdebugbar-active span.phpdebugbar-badge {
456460
background-color: white;
457-
color: #fa5661;
461+
color: var(--color-red-vivid);
458462
text-shadow: 1px 1px #ebebeb;
459463
}
460464

461465
a.phpdebugbar-tab span.phpdebugbar-badge {
462466
vertical-align: 0px;
463467
padding: 2px 8px 3px 8px;
464468
text-align: center;
465-
background: #fa5661;
469+
background: var(--color-red-vivid);
466470
font-size: 11px;
467471
font-family: monospace;
468472
color: #fff;
@@ -643,7 +647,7 @@ div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugb
643647
}
644648

645649
div.phpdebugbar-widgets-messages li.phpdebugbar-widgets-list-item span.phpdebugbar-widgets-value.phpdebugbar-widgets-error:before {
646-
color: #fa5661;
650+
color: var(--color-red-vivid);
647651
font-size: 15px;
648652
}
649653

@@ -728,7 +732,7 @@ ul.phpdebugbar-widgets-cache a.phpdebugbar-widgets-forget {
728732
float: right;
729733
font-size: 12px;
730734
padding: 0 4px;
731-
background: #fa5661;
735+
background: var(--color-red-vivid);
732736
margin: 0 2px;
733737
border-radius: 4px;
734738
color: #fff;

0 commit comments

Comments
 (0)