Re: [csswg-drafts] [css-env] Adding custom env() variables (#2627)

> For me it wouldn't make sense to create custom variables if I can't reuse them in imports. As I said above, if this is used as an import, would it make sense to allow names with special characters?

This sounds to me that you want to have this :

- one abstract definition of "values" (broadest definition of value)
- use these in JavaScript as a `const` (client and/or server side)
- use these anywhere in CSS as a `token`

Which sounds more like what design tokens are trying to solve?
A single definition file that can be "imported" in various contexts.

-- 
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2627#issuecomment-1448158696 using your GitHub account


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

Received on Tuesday, 28 February 2023 13:13:56 UTC