Hi, how can i pass some props to my .css.ts files? Currently im trying to pass them as var, and then use assignInlineVars to assign any value to it, but it seems to doesnt work.
Do you have any ideas? ๐ Thats the code:
<Box
{...props}
className={clsx(classes.card, className)}
style={
(assignInlineVars({
[classes.radiusVar]: 16,
}),
Now its throwing error because of number (16) instead of string, but it doesnt matter, when i do for example '16px' its still doesnt works.
Thats my .css.ts file:
import { createVar, style } from '@vanilla-extract/css'
export const radiusVar = createVar()
export const card = style({
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexShrink: 0,
borderRadius: radiusVar,
})
Second question is: How can i use mantine functions for example "rgba" or "lighten" on vars that looks like (var(--test_asdasd)" ?