The css property could be used to pass arbitrary CSS objects.
<span css={{ color: theme('colors', 'blue.500') }}>Blue</span>
Output
import { tw as _tw, directive as _directive } from 'twind'
const _identity = (value) => value
// Indirection is for caching
const _css = (object) => _directive(_identity, object)
<span className={_tw`${_css({ color: theme('colors', 'blue.500') })}`}>Blue</span>
References:
The
cssproperty could be used to pass arbitrary CSS objects.Output
References: