Because Custom CSS, I take up this request proposed in the original topic.
WHAT DO YOU RECOMMEND?
Customize the CSS of each object separately.
Just look at the numerous requests for customization options (gallery, list, …) that are feasible with CSS, except that CSS applied everywhere is no longer an “option” that can be activated on a given page when desired.
HOW COULD IT BE DONE?
Add a relation “Custom CSS”, file or text type (can be more secure to set a text type).
When this relationship is added to an object, custom CSS can be applied to the display.
The text version would perhaps be more secure, while the file version would be more practical (possibility of style library).
REAL WORLD USE CASES
Not all objects have the same display requirements!
Bigger or smaller text, more or less space, different background colors, different gallery displays, etc.
- If I have a photo gallery, I want a black background to highlight them. But another gallery will always need a white background, so using global custom CSS doesn’t meet the need.
- On some of my types, I want to hide the title of online relations in my page. This is possible in CSS, but I only want it on these object types!
There are requests for this…
Or I add this “CSS relation” to my type and configure it to hide relations titles. That’s it!
ADDITIONAL CONTEXT
When web sharing arrives, it will just be extremely relevant!
A company share? Hop, I add the file “CSS_Entreprise” to my CSS relationship and I’ve got the graphic charter to match (which helps sell Anytype rather than incur the wrath of Notion. Well, the fact that Anytype officially “gives” the data to everyone means that it’s not at all feasible at the moment, but maybe one day that will change).
A Christmas page to share with the family? I’m going all out with the Christmas theme!
Technically, I don’t think there are many obstacles (I only have in mind the security aspect of injecting only CSS, but that’s easy to control).