Re: [community-group] Use CSS as a transfer format instead of JSON. (#185)

@romainmenke `CSS` like format is no good to declare things like design tokens. There are several reasons:

1. It will take time to figure declarations inside like arrays, strings numbers all these types how we show them? `CSSOM` doesn't have these basic types that all programming languages have.
2. I agreed with @lukasoppermann JSON already implemented format. Actually, you don't need to parse JSON inside SWIFT environment, e.g. packages like Style Dictionary or others will do that using JS. And JS has the native JSON support.
4. We are not inventing a new format or rules, but mixing `CSS` syntax with something else, yes. JSON has its rules, and structured better then CSS — simpler.
5. Unfortunately, we can't fully use all props and options we have in `CSS` because it's not possible to transpile them for other platforms, like animation props. We will need to write them not like in `CSS`. 
6. The goal is not support the web, but create something that could be transpiled to other platforms as well.

-- 
GitHub Notification of comment by PavelLaptev
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/185#issuecomment-1318598815 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 17 November 2022 12:58:57 UTC