-
Description:Nova theme fails to ... well, do anything at all really. Detailed steps to reproduce the issue on a fresh Nova installation:php artisan nova:theme example/farmhand_one
# edit theme with some easily to ack stuff:
nova-components/FarmhandOne/resources/css/theme.css:
.bg-grad-sidebar {
background-image: -webkit-gradient(
linear,
left bottom,
left top,
from(#ff0000),
to (#00ff00)
);
# manually add to config/app.php
'providers' = [
// ...
Example\FarmhandOne\ThemeServiceProvider::class,
# publish theme
php artisan vendor:publish
# paranoid rebuild
php artisan clear-compiled
php artisan cache:clear
npm install && npm run dev
php artisan view:clear
php artisan view:cache
# ack for inclusion of theme in mix.js cache files
ack '#ff0000'
nova-components/FarmhandOne/resources/css/theme.css
17: from(#ff0000),
public/example/farmhand_one/theme.css
19: from(#ff0000), Theme does not appear to take effect (or even be mentioned) in browser (cache disabled). Further check of filesystem for files created:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I ended up with a rather hacky solution, adding a line to
This is obviously not a very correct solution, as it bypasses the entire process described in https://nova.laravel.com/docs/3.0/customization/themes.html, doesn't get processed by Not doubt, it also defeats any attempt properly use tailwind. Unfortunately the nova theme documentation failed to convey any helpful information on how to actually activate or integrate themes -- or I simply cannot read. Update: So it turns out, that it was being added all along, but it was being included as a separate file instead of being mixed in with the Or at least, I think that's what happened. YMMV :) |
Beta Was this translation helpful? Give feedback.
I ended up with a rather hacky solution, adding a line to
app/Providers/NovaServiceProvider.php
This is obviously not a very correct solution, as it bypasses the entire process described in https://nova.laravel.com/docs/3.0/customization/themes.html, doesn't get processed by
mix.js
and is general not very laravelesque.Not doubt, it also defeats any attempt properly use tailwind.
Unfortunately the nova theme documentation failed to convey any helpful information on how to actually activate or integrate themes -- or I simply cannot read.
Update: So it turns out, that it…