diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b817577 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +/.idea +/vendor +/node_modules +package-lock.json +composer.phar +composer.lock +phpunit.xml +.phpunit.result.cache +.DS_Store +Thumbs.db diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..6a3847a --- /dev/null +++ b/composer.json @@ -0,0 +1,31 @@ +{ + "name": "david-griffiths/nova-dark-theme", + "description": "A dark theme for Laravel Nova", + "keywords": [ + "laravel", + "nova", + "dark", + "theme" + ], + "license": "MIT", + "require": { + "php": ">=7.1.0" + }, + "autoload": { + "psr-4": { + "DavidGriffiths\\NovaDarkTheme\\": "src/" + } + }, + "extra": { + "laravel": { + "providers": [ + "DavidGriffiths\\NovaDarkTheme\\ThemeServiceProvider" + ] + } + }, + "config": { + "sort-packages": true + }, + "minimum-stability": "dev", + "prefer-stable": true +} diff --git a/resources/css/theme.css b/resources/css/theme.css new file mode 100644 index 0000000..45352c0 --- /dev/null +++ b/resources/css/theme.css @@ -0,0 +1,26 @@ +:root { + --logo: #fff; + --sidebar-icon: #3f3f3f; +} + +html { + background: #1D1D1D !important; + filter: invert(100%) contrast(90%) hue-rotate(180deg); + height: auto !important; +} + +img { + filter: invert(100%) hue-rotate(180deg); +} + +.bg-logo { + background-image: linear-gradient(0deg, #eeeeee 0%, #fff 100%); +} + +.w-sidebar * { + color: #5f5f5f !important; +} + +.bg-grad-sidebar { + background-image: linear-gradient(0deg, #f0f0f0 0%, #fdfdfd 100%); +} diff --git a/src/ThemeServiceProvider.php b/src/ThemeServiceProvider.php new file mode 100644 index 0000000..de6afaf --- /dev/null +++ b/src/ThemeServiceProvider.php @@ -0,0 +1,32 @@ +