Type-safe CSS custom properties (CSS variables) for theming purpose
Allow single depth theme. Previously this was a type error and result in non-ideal CSS variable name
const theme = createTheme({
red: '#ff0000'
})
Before:
theme.red // type error
theme.red === "var(---red)"
After:
theme.red === "var(--red)"
Fix type definition for infinite nested prop
Allow infinite property nesting 83f288bb3307b0ae3ddef00ed42425317f2c54e4
This is not possible before
const theme = createTheme({
a: {
b: {
c: {
d: ''
}
}
}
});