All Projects → David-Griffiths → Nova-Dark-Theme

David-Griffiths / Nova-Dark-Theme

Licence: MIT License
A dark theme for Laravel Nova

Programming Languages

PHP
23972 projects - #3 most used programming language
Vue
7211 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Nova-Dark-Theme

Auth Tests
Always-current tests for Laravel's authentication system. Curated by the community.
Stars: ✭ 230 (+219.44%)
Mutual labels:  laravel-package, laravel-5-package, laravel5
devtube
Laravel YouTube and Online Video viewing and download interface.
Stars: ✭ 30 (-58.33%)
Mutual labels:  laravel-package, laravel-5-package, laravel5
Laravel-Unsplash-Wrapper
A Laravel wrapper for Unsplash API's.
Stars: ✭ 21 (-70.83%)
Mutual labels:  laravel-package, laravel-5-package, laravel5
Laravel Settings
Simple Settings package for a laravel application
Stars: ✭ 45 (-37.5%)
Mutual labels:  laravel-package, laravel-5-package, laravel5
Laravel Pdf
A Simple package for easily generating PDF documents from HTML. This package is specially for laravel but you can use this without laravel.
Stars: ✭ 79 (+9.72%)
Mutual labels:  laravel-package, laravel-5-package, laravel5
Laravel Email Verification
Laravel package to handle user verification using an activation mail
Stars: ✭ 63 (-12.5%)
Mutual labels:  laravel-package, laravel-5-package, laravel5
maintenance-mode
An enhanced maintenance mode for Laravel.
Stars: ✭ 117 (+62.5%)
Mutual labels:  laravel-package, laravel-5-package, laravel5
Eye
Eyewitness.io package for Laravel 5 applications
Stars: ✭ 114 (+58.33%)
Mutual labels:  laravel-package, laravel-5-package, laravel5
Xcode One Dark
Atom One Dark theme for Xcode
Stars: ✭ 273 (+279.17%)
Mutual labels:  color, dark-theme, color-scheme
Nova-Menu-Builder
A Menu Builder for Laravel Nova
Stars: ✭ 63 (-12.5%)
Mutual labels:  nova, laravelnova
laravel-google-ads
Google Adwords API for Laravel
Stars: ✭ 60 (-16.67%)
Mutual labels:  laravel-5-package, laravel5
dark
🌛 Dark themes / mode for Rambox, Franz or Ferdi messaging services
Stars: ✭ 93 (+29.17%)
Mutual labels:  dark-theme, themes
nova-url-field
A URL input and link field for Laravel Nova
Stars: ✭ 96 (+33.33%)
Mutual labels:  laravel-package, nova
openbox
A theme for Openbox WM based in Dracula's color scheme.
Stars: ✭ 17 (-76.39%)
Mutual labels:  dark-theme, color-scheme
artisan-shortcuts
🍰 Register shortcuts to execute multiple artisan commands
Stars: ✭ 56 (-22.22%)
Mutual labels:  laravel-package, laravel-5-package
gtk
🪟 Soothing pastel theme for GTK3
Stars: ✭ 150 (+108.33%)
Mutual labels:  dark-theme, color-scheme
panichd
Ticketing system for Laravel 5.1 - 8.x. Allows to create new tickets via form only. Includes file attachments, ticket tags, filtering, scheduling and e-mail notifications.
Stars: ✭ 78 (+8.33%)
Mutual labels:  laravel-package, laravel-5-package
webgui
Web Technologies based Crossplatform GUI Framework with Dark theme
Stars: ✭ 81 (+12.5%)
Mutual labels:  css3, dark-theme
Base62
PHP Base62 encoder and decoder for integers and big integers with Laravel 5 support.
Stars: ✭ 16 (-77.78%)
Mutual labels:  laravel-package, laravel-5-package
laravel-camelcase-json
Convert response JSON key to camelCase
Stars: ✭ 23 (-68.06%)
Mutual labels:  laravel-5-package, laravel5

Nova Dark Theme

A dark theme for Laravel Nova to save your tired eyes 👀

Latest Stable Version Downloads License

Dark Theme Toggle Switch

Installation

First use composer to pull in the project:

composer require david-griffiths/nova-dark-theme

(Remember that you can install multiple themes with Nova. So you don't have to choose between this and another.)

Next you need to activate dark mode. To help you, there are several convenience commands included...

Add/Remove Toggle Switch From Menu

This is probably what you're looking for, as it lets you easily turn on dark mode at night.

toggle

php artisan nova-dark-theme:add-switch

If you've not made an over-writeable copy of Nova's user menu (the one in the top right), this command does that first of all. Then it adds the Vue component, which will look like this:

        <li>
            <nova-dark-theme-toggle
                label="{{ __('Dark Theme') }}"
            ></nova-dark-theme-toggle>
        </li>
    </ul>
</dropdown-menu>

To remove the switch from your menu, you could edit the file yourself, or run this:

php artisan nova-dark-theme:remove-switch

Set Dark Mode On/Off By Default

This can be used with the toggle switch or without it. If you're not using the toggle switch then when you set dark mode ON, it will stay on and not be changeable by users. If you are using the switch, then the below commands will only set the theme state when the page first loads. The user will then be able to flip the switch whenever they like.

php artisan nova-dark-theme:on

php artisan nova-dark-theme:off

These commands add or remove a css class called nova-dark-theme from the HTML tag in Nova's main layout template. Again, we copy this file to your resources directory (if you've not done so already) before making the change.

( You might need to run php artisan view:clear or php artisan view:cache before seeing the results)

How The CSS 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 and set it like this:

Code::make('MyTextField')->options(['theme' => 'base16-light'])

( Remember to pick a light coloured CodeMirror theme if you want it to appear dark in Nova after the colors get inverted)

License

MIT License (MIT). Please see License File for more.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].