Drew Powers

Results 459 comments of Drew Powers

Thought about this a little more and I think this may be something that’s supported by the JS API, especially since you’re doing a lot of work in-memory. A major...

Oh! That makes a lot of sense, thank you. Yeah you’re right this is tricky—you do have the source of truth in one sense (Figma). And bugs/weirdness aside in TokensBrücke...

Added 🙂. Docs here: https://terrazzo.app/docs/cli/api/js/#transform-api. Would love feedback on the API! Even though it’s “released,” I more did so just for evaluation. Happy to make breaking changes to this API...

I might just enforce `en-us` locale on all machines since the error messages are hardcoded to English anyway 🤔.

Yeah it makes more sense to leave blank for `Intl.DateTimeFormat()`, since times are cursed anyway (also as an American I personally despise the nonsensical MM/DD/YY format and don’t want to...

> @drwpow is this mac os test a known flaky or something I've broken? It’s known flaky. It has something to do with updating Vitest 3 → 4. There’s a...

Thanks for suggesting! I think we can add this. Just to make sure we’re considering everything, the gamut media queries don’t show up when selecting colors inside sRGB. Is the...

Actually it should only show up if picking colors outside sRGB gamut regardless of color space. In other words, it’s **input, not output.** It uses something similar to Culori [inGamut](https://culorijs.org/api/#inGamut)....

Ah if you’re declaring colors originally in HWB then all those should fit into sRGB and the gamut queries shouldn’t be needed! This is likely a bug. I’ll push a...

> I will re-open if I run into issues. Yes please reopen if you find a bug! The intended behavior is these are never generated unless they’re absolutely necessary. I...