Re: [community-group] Types for CSS Keywords (#177)

This issue is partly resolved by these recent resolutions :
- remove JSON derived types from the specification : https://github.com/design-tokens/community-group/issues/120
- make `$type` required : https://github.com/design-tokens/community-group/issues/139#issuecomment-1331346032

These removed a lot of ambiguity.

----

For some platforms the `fontFamily` is still ambiguous.
It is impossible to determine if something like `"serif"` is meant as a string or a keyword.

```css
@font-face {
  font-family: "serif";
  src: ...
}

.foo {
  font-family: "serif";
}
```

or 

```css
.foo {
  font-family: serif;
}
```

iOS seems to have the same concepts :
https://developer.apple.com/documentation/uikit/uifont/3042484-monospacedsystemfont

```swift
class func monospacedSystemFont(
    ofSize fontSize: CGFloat,
    weight: UIFont.Weight
) -> UIFont
```



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


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

Received on Sunday, 4 December 2022 22:00:35 UTC