Skip to content

Releases: pveyes/theme-in-css

v0.2.2

19 Apr 07:11
46336be
Compare
Choose a tag to compare

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

03 Jul 06:53
7afb12b
Compare
Choose a tag to compare

Fix type definition for infinite nested prop

v0.2.0

29 Jun 09:04
12012d1
Compare
Choose a tag to compare

Allow infinite property nesting 83f288b

This is not possible before

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