Skip to content

Commit 42b4aaf

Browse files
authored
Merge pull request #11 from stechstudio/Dark_Theme_Support
Add dark theme support
2 parents d668877 + f5866f1 commit 42b4aaf

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

dist/theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/css/theme.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
@import "tailwindcss";
1+
@import "tailwindcss/utilities";
2+
@reference "tailwindcss/theme";
23

34
@source "../../resources/views";
5+
6+
@custom-variant dark (&:where(.dark, .dark *));

resources/views/status.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
</div>
1515

1616
<div wire:poll.10s>
17-
<table class="min-w-full divide-y divide-gray-200">
18-
<thead class="bg-gray-50">
17+
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
18+
<thead class="bg-gray-50 dark:bg-gray-800">
1919
<tr>
20-
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Key</th>
21-
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Value</th>
20+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider">Key</th>
21+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider">Value</th>
2222
</tr>
2323
</thead>
2424

25-
<tbody class="bg-white divide-y divide-gray-200">
25+
<tbody class="bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-700">
2626
@foreach($$activeTab as $key => $value)
2727
<tr>
2828
<td class="px-4 py-1">{{ $key }}</td>

src/FilamentOpcachePlugin.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use STS\FilamentOpcache\Widgets\OpcacheMemoryWidget;
99
use Filament\Contracts\Plugin;
1010
use Filament\Panel;
11-
use Filament\Support\Colors\Color;
1211

1312
class FilamentOpcachePlugin implements Plugin
1413
{

0 commit comments

Comments
 (0)