Join the Webstudio community

Updated 2 years ago

Quick question do design token styles

At a glance
Quick question: do design token styles get loaded globally or only on the pages they're used on?

So like, if I have 100 design tokes on the project, but only use 10 of them on a page, does that page load all 100 or just the 10?
O
A
5 comments
When you say "loadded", do you mean loaded css on the published sites? Or do you mean loaded/available in builder across all pages.
Tokens are reusable across the entire project, so they are "global"
But when it comes to CSS we will have an optimization in place to not load everything on every page later on, so I wouldn't worry about this.
Awesome that's what I was trying to figure out thanks!
(as in this πŸ™‚ )
Add a reply
Sign up and join the conversation on Discord