Theme In Css Versions Save

Type-safe CSS custom properties (CSS variables) for theming purpose

v0.2.2

2 years ago

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)"

v0.2.1

2 years ago

Fix type definition for infinite nested prop

v0.2.0

2 years ago

Allow infinite property nesting 83f288bb3307b0ae3ddef00ed42425317f2c54e4

This is not possible before

const theme = createTheme({
  a: {
    b: {
      c: {
        d: ''
      }
    }
  }
});