ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

New Custom UI Theme for ERPNext - Flat Design

ui

#23

I think adding theme capabilities to Frappe would give businesses a great advantage to use branding and better blend ERPNext look and feel when integrating with their platforms.

The approach I’m suggesting since Frappe is using jinja2 engine is to write templates using Sass and javascript with predefined variables set, then deploy webassets to manage the process of applying templates css and javascript assets on targeted frappe application which can use [pyScss] (https://pypi.python.org/pypi/pyScss) to generate templates css .

Webassets library can be configured to use pyScss compiler (implemented in Python) for SCSS.


#24

hi, great theme, we have selection another theme admin, but we need an help for install and configure it, can you help us?


#25

Generally, how an app usually handles theming is by breaking out the views to a themes directory. That’d allow theme creators to modify .HTML files and use whatever else they wanted (e.g. SASS/LESS, etc.). The app would then have a theme selector in the settings that would act as a redirect to the selected theme folder.

A system like that offers the most flexibility as people can work in their own JavaScript, CSS, and custom HTML for their themes without worrying about messing up core files. Of course, any updates to the underlying code may make it so a theme has to be updated by the creator to stay current, but that’s the price of flexibility.


#26

How i can use https://almsaeedstudio.com/preview
i need to change the ui theme
help us plz.


#27

@iFeras93 using frappe api, you can develop such theme.


White background color change
#28

I create bdtheme app for change ui theme and add left menu.
link to install app. you can edit and change my logo. hope you like it.


How to hide LEARN tab in side bar menu in erpnext
Can I Change the Desktop Icons to Horizontal Menu
#29

I just installed the app and It works fine, the left menu is very handy but isn’t translated.
Also, I think the responsive needs some work too.
There is a way to accomplish this?

Thanks!


#30

This is really awesome. Nice Work. :ok_hand:


#31

Bbtheme app is the way to change theme and how to add left menu. Correct left menu I hard code notyet code for customize by app and notyet support translate. But you can edit my code apply your project. It’s easy to change left menu and logo.


#32

@vinhnguyent090
I have tried your theme. It looks good.

If you want to make dynamic, you can use following js script

  1. get all modules
    frappe.modules

  2. Get Module Doctype and Report list
    frappe.call({
    method: “frappe.desk.moduleview.get”,
    args: {
    module: “Delivery Management”
    },
    callback: function® {
    console.log(r.message.data)

    },
    freeze: true,
    });


#33

Yes thank your solution. But I like the way user can add their menu by create new menu doctype more than get dynamic via modules. Becuase erpnext have many pages. User only show their menus with their role. Exam sales role show sales menu or stock role show stock menu.


#34

That looks very nice. I have been wanting to do somthing like this for a long time.


#35

Wow! This is exactly how I’ve always thought the Frappe UI (for the Desk) should be… Menu on the left sidebar and customizable dashboards/widgets on the main page

This would be fantastic!

Kind regrads,


#36

Agree!


#37

+1 on that!


#38

+1 on that!


#39

correct this way I’m doing :slight_smile: but now I have another issue need to do


#40

Very good work.
Now once applied how can i restore or change to another Theme ?
Translation to other languages when ? Initially ERPNext already has so is just use the existing ones correct?


#41

Hi Helio_Jeus

how can i restore => you can uninstall my app

bench --site [sitename] uninstall-app bdtheme

or change to another Theme => just uninstall my app then install another theme (but current I don’t know any theme).

Translation to other languages when ? => I don’t know but now you can edit my theme.

– change logo you can overwrite my images.

/apps/bdtheme/bdtheme/public

– change link + language of menu

/apps/bdtheme/bdtheme/public/js/template/main-sidebar.html


Custom UI Theme by @vinhnguyent090
#42

Would be great to have it and able without uninstall to swap themes (yours and default ERPNext) also to save per user(admin uses default, others yours).
Also to get modules automatically this way translation can be applied…
For instance I have my app with extra modules and to add need to change the HTML!!!

Still a good work.