Developer forum

Forum » Rapido » Structure of Style related files

Structure of Style related files

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

In our attempts to customize the looks and feel of Rapido using Ignite, we have seen a potential issue with not having access to global variables in Ignite, not the possibility of compiling Ignite together with Rapido styles, which makes them disconnected in case some changes are made in the Area settings.

This seems to be related mostly with how the Variables and Rapido files are generated, mostly because you cannot know upfront the IDs of the Areas that you have to connect the styles for. And the problem here seems to be the inclusion of the AreaID in the name of the files, especially for Variables.

I was wondering if there might be an alternate solution to group the styles in folders named after Areas instead of grouping them based on FileName. This will ensure a consistent file structure inside the folder and the Variables can be referenced anywhere.

you have now:
/Files/Templates/Designs/Rapido/css/rapido/_variables_1.auto.less
 

what if this would be changed into:

/Files/Templates/Designs/Rapido/css/Area_1/rapido/_variables.auto.less

What do you think? Do you see any benefit in this approach? I am sure it's not an easy change considering all the backward compatibility issues but maybe it might be helpful for future implementations.

Thank you,

Adrian


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Adrian

This is a great question. We have not got this request before. To get this to work, we could let Website settings to save one Ignite css for each area. But then, what in tose 95% of times where you deffinately not want a compiled Ignite css, as you have made customizations diretly in the file.

I will discuss possible solutions with my colleagues. 

 

Best regards
Karsten Thuen

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Karsten,

Thank you for considering it.

I believe having access to the same variables inside ignite, will help a lot.

In a lot of cases, Ignite will handle styles for new blocks which means also handling color related styles for fonts, buttons, backgrounds. Having the same variables as in Rapido, makes it more consistent. And if Ignite styles can be compiled together with Rapido styles, will ensure the consistency of the design.

I believe the main reason this is the first time you get this request is related to the adoption of Rapido. I see more and more developers using it, which is a very good sign. But it seems that most of them are using only the standard part so far. They will surely get to customize it, which makes this request useful for the long run.

Thank you,

Adrian

 

You must be logged in to post in the forum