css themes #1

Closed
opened 2026-03-20 21:08:35 +00:00 by cube · 3 comments
Owner

currently themes are stored 1 colour at a time in the database, which is then inserted into inline css. this is kind of stupid. just create separate css files for different pre-defined themes (e.g. purple, green, blue, pink, whatever) and the user will select it from a list in the edit profile. this also makes it easier for the end user who doesnt have to manually select individual colours and keep tabbing out to test the outcome

currently themes are stored 1 colour at a time in the database, which is then inserted into inline css. <b>this is kind of stupid</b>. just create separate css files for different pre-defined themes (e.g. purple, green, blue, pink, whatever) and the user will select it from a list in the edit profile. this also makes it easier for the end user who doesnt have to manually select individual colours and keep tabbing out to test the outcome
Author
Owner

importing pre-set themes would work on member pages easily enough, but the little profile cards would still be using css targets on each dynamically generated card (also if removing colours in the database, the entire code where fields after the colours are referenced will need to be changed)

importing pre-set themes would work on member pages easily enough, but the little profile cards would still be using css targets on each dynamically generated card (also if removing colours in the database, the entire code where fields after the colours are referenced will need to be changed)
cube added the a big one label 2026-03-20 21:45:10 +00:00
Author
Owner

working on this. make sure to put the {{theme_name}} in the profile div class on the full/home page

working on this. make sure to put the {{theme_name}} in the profile div class on the full/home page
Author
Owner

done - will need to re-init database. just copy and paste styles from the myriad/style/theme folder, rename, and edit values to your desire

done - will need to re-init database. just copy and paste styles from the myriad/style/theme folder, rename, and edit values to your desire
cube closed this issue 2026-03-20 23:15:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cube/myriad#1