Commit graph

7 commits

Author SHA1 Message Date
Adam Wathan
a7c410656d Add test coverage for default letter-spacing feature 2020-08-06 15:42:52 -04:00
Dan Wood
07e330d2bb Allow default letterSpacing in fontSize config
Extend the configuration syntax to allow specifying letterSpacing
alongside lineHeight in the fontSize config.

The syntax looks like
```
module.exports = {
  theme: {
    // ...
    fontSize: {
      sm: ['14px', { lineHeight: '20px', letterSpacing: '0.01em' }],
      // ...
    }
  }
}
```

Also retains backwards compatibility with array syntax of 1.3
2020-06-29 10:10:27 +10:00
Adam Wathan
aa4fd1ae99 Add support for providing a default line-height for each font-size 2020-04-16 09:35:50 -04:00
Michaël De Boey
d4b2b8b755
Make theme config directly accessible in the plugins 2019-04-18 23:29:07 +02:00
Adam Wathan
f0bc35a896 Support configuring a single list of variants to apply to all relevant plugins 2019-04-18 09:42:21 -04:00
Adam Wathan
db0a283dea Source fontSize options from config 2019-02-28 11:59:17 -05:00
Adam Wathan
ab9277d3eb Rename textSizes to fontSize 2019-02-15 15:21:27 -05:00
Renamed from src/plugins/textSizes.js (Browse further)