ex_admin
ex_admin copied to clipboard
How to add custom theme?
I have project need custom theme, how can i add custom theme?
or, change the color of the theme (not just the skin, maybe the side color, font color, warning flash color etc.)
can you give any suggestion, thank you.
the same question
There is not currently a way to create a custom theme. I think you can do some things though to change the theme.
Add a custom logo:
config :ex_admin,
logo_full: "<h1>Logo</h1>",
logo_mini: "<h1>Logo</h1>"
Add custom header info like a stylesheet:
config :ex_admin,
head_template: {ExAdminDemo.AdminView, "admin_layout.html"}
Where:
ExAdminDemo.AdminViewis a view in your projectadmin_layout.htmlis a template inweb/templates/admindirectory
This renders in the head of the page, so you can put in stylesheets
I`d remark ExAdminDemo.AdminView must be view in your project, not ExAdmin.AdminView
Something generic
defmodule YourPrjNamespace.AdminView do
use YourPrjNamespace.Web, :view
end
This is coming in another major version.