You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A feature similar to themes and token by Stitches. This will allow for design system engineers to create multiple themes / extend existing ones, simple and complex through TV.
The syntax I have in mind would be something along the lines of (not a polished idea in my head) creating a "default" theme (not schemes - i.e. dark and light) but rather: christmas, easter or slim which are arbitrary that can have their own schemes to them in the form of tailwind classes (irrelevant to TV). Said theme will have tokens i.e. backgroundColor or butttonBgBorder and themes can extend the "default" theme for their own properties through tailwind classes and typescript for full type safety.
These themes will be merged perhaps through an additional theme property in the tv() function.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A feature similar to themes and token by Stitches. This will allow for design system engineers to create multiple themes / extend existing ones, simple and complex through TV.
Example usage can be seen on their landing site: https://stitches.dev
The syntax I have in mind would be something along the lines of (not a polished idea in my head) creating a "default" theme (not schemes - i.e.
dark
andlight
) but rather:christmas
,easter
orslim
which are arbitrary that can have their own schemes to them in the form of tailwind classes (irrelevant to TV). Said theme will have tokens i.e.backgroundColor
orbutttonBgBorder
and themes can extend the "default" theme for their own properties through tailwind classes and typescript for full type safety.These themes will be merged perhaps through an additional
theme
property in thetv()
function.Beta Was this translation helpful? Give feedback.
All reactions