Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a themeable web application using CSS?

Tags:

css

themes

less

I have an idea for a web application that would allow users to create their own profile pages, and apply custom or pre-defined themes to change the look/feel of their profile page. It would be similar to Wordpress themes, or any other product that utilizes a similar idea. My idea was to build the css using less. The users would be able to create/edit their own themes through a GUI interface (pick colors, fonts, etc). When saving a theme, it would update the variables in the .less files, and rebuild the css accordingly.

Is this a feasible or even possible way to apply style themes to a page? Are there any existing solutions out there that already accomplish this?

like image 430
Michael Hornfeck Avatar asked Feb 01 '26 06:02

Michael Hornfeck


1 Answers

One problem i see here is that the user can change other parts of the page which shouldn't be changeable. For examlpe menus, login buttons etc. This could be a security problem. So you must limit the users ways how to change the styles. For example only allow to change certain classes with certain params.

like image 194
Johni Avatar answered Feb 03 '26 23:02

Johni



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!