stitchesjs / stitches

[Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.
https://stitches.dev
MIT License
7.72k stars 251 forks source link

fix defaultThemeMap: add accentColor to default to support colors #1110

Open xDellTog opened 1 year ago

xDellTog commented 1 year ago

Hi there! I don't know if that's an issue or a possible feature, but I will consider an issue.

Recently I used accentColor in my theme, to customize a native checkbox and Stitches don't apply the color in final CSS, so I added accentColor in defaultThemeMap to property support theme colors and it works. I used MDN Web Docs syntax and description to doc.

Works

accentColor: 'red'

Failure

accentColor: '$primaryColor'

Sandbox to Test

I hope it can be fixed, Thanks!

prclm commented 10 months ago

could you remove all the auto formatting changes?