Formatting Text in Portable Text Fields - Alignment, Font, Colors
https://www.sanity.io/blog/content-is-data
https://www.sanity.io/guides/how-to-use-structured-content-for-page-building
I see what you mean about separate concerns, though. But in this use case (small company with non-tech-savvy persons deciding both presentation and content) it would be difficult to have a good separation between presentation and content.
I used to allow them to set colors, but found that it lead to some very low contrast text.
Sanity is not a WSYG editor, something I’m very happy about. My philosophy is that I’ll allow editors to change anything that won’t screw up the accessibility of the web page.
And give your editors live preview so they can see how things look.
There is nothing in sanity stopping you from doing this, it’s just a question of what is it a good idea to let editors change? It’s easier (in my mind) for all parties involved to just give the editors what they need
Edit: for some of my pages I also allow the owners to set the color themes of the website through a settings tab in Sanity. Easier if you use CSS in JS instead of pure CSS/SCSS
This one I really liked.
😊 As a hired-in consultant it would be difficult for me to deny the client any functionality as long as they're paying for the implementation. But I can at least warn about the problems with it. What they do from there is up to them.
Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.