Closed eudiegosilva closed 1 year ago
Hey @diegosilvatech 👋
This is already possible without any changes to Stitches:
https://codesandbox.io/s/opacity-scale-lh19xx?file=/src/App.js
Let me know if you have any other questions
this is amazing @hadihallak. I hadn't tested it like that. Thanks!
You're very welcome! glad this solved the issue for you.
I'm getting : 'DefaultThemeMap' only refers to a type, but is being used as a value here.ts(2693) when i tried : themeMap: { ...DefaultThemeMap, opacity: 'opacities' }, theme: {...
after importing it like : import { createStitches, DefaultThemeMap } from '@stitches/react';
Would it be interesting to support opacity tokens to standardize design systems? something like that: