-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8ef920
commit c72813f
Showing
1 changed file
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,31 @@ | ||
# Nova-Dark-Theme | ||
A dark theme for Laravel Nova | ||
|
||
Nova Dark Theme | ||
==== | ||
|
||
A dark theme for [Laravel Nova](https://nova.laravel.com/) to save your tired eyes :eyes: | ||
|
||
![dark-shadow](https://user-images.githubusercontent.com/1121864/51878721-8bc49d00-2368-11e9-9983-a49e9afe18d0.png) | ||
|
||
Installation | ||
---------- | ||
|
||
This theme works in any Laravel app that uses Nova. Just require it and you're done. | ||
|
||
`composer require david-griffiths/nova-dark-theme` | ||
|
||
How It Works | ||
---------- | ||
|
||
We use a css filter to invert the colors, then some manual tweaks for the sidebar and logo areas. So white becomes black, which you should keep in mind when adding any custom css colors. | ||
|
||
Code Fields | ||
---------- | ||
|
||
One item it doesn't style for you is the Nova `Code` field. I don't want impose a CodeMirror theme on you when you can [pick one from here](https://codemirror.net/demo/theme.html#default) and set it like this: | ||
|
||
```php | ||
Code::make('MyTextField')->options(['theme' => 'base16-light']) | ||
``` | ||
|
||
(:exclamation: _Remember to pick a light coloured CodeMirror theme if you want it to appear dark in Nova after the colors get inverted_) | ||
|