How can I call the shortcut SaaS solution?

I am creating a SaaS product, and one of the best requirements of customers is that they are allowed to have a white label on it.

  • Client domain
  • Include customer logo in user interface
  • Change color schemes to match customer branding

From all that needs to be done, I think that the simplest part for me is to configure a custom subdomain (I am running the AppEngine application, but it is quite simple on any server setup).

My main questions revolve around front panel style best practices. My setup requires me to define colors both for rewriting CSS rules and for rewriting Javascript variables. The assumptions I make are that I store any images / paths and color information in the database. These are two paths that I am considering, but both seem to have quite serious flaws.

  • Deployment task. Before deploying, run a Grunt task (or other automation) that retrieves client style information from the database and creates custom CSS / JS files for
  • Runtime - during application loading, extract client information from db and dynamically rewrite styles (built-in styles, JS redefinition, etc.).

. ? ? ? ?

, , , .

+4
1

, LESS:

CSS, LESS. , , LESS-. "main.less".

, , , LESS. main.less , (client-a.less). css (client-a.css), ( , css ).

.less .css , .

, (client-a.less) .cache. , , , client-a.less, .cache , , client-a.css, , css.

+4

Source: https://habr.com/ru/post/1539171/


All Articles