Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Commit 02da86a

Browse files
committed
Release 3.0.0
1 parent 05c2c6c commit 02da86a

File tree

5 files changed

+1973
-1926
lines changed

5 files changed

+1973
-1926
lines changed

.release-it.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"git": {
3-
"tagName": "v%s"
3+
"tagName": "v%s",
4+
"requireCleanWorkingDir": false
45
}
56
}

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project mostly adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [3.0.0] - XXXX-XX-XX
8+
## [3.0.0] - 2020-02-05
9+
10+
### Added
11+
- Added kerning utilities, which can be disabled by setting the `kerning` option to `false` (thanks, [@mapgrid](https://github.com/mapgrid)!)
12+
- Added text rendering utilities, which can be customized with the `textRendering` theme object (thanks, [@mapgrid](https://github.com/mapgrid)!)
913

1014
### Changed
1115
- Changed to use Tailwind 1.2’s new plugin definition syntax

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ module.exports = {
5151
'contextual': 'contextual',
5252
'no-contextual': 'no-contextual',
5353
},
54+
textRendering: { // defaults to these values
55+
'rendering-auto': 'auto',
56+
'optimize-legibility': 'optimizeLegibility',
57+
'optimize-speed': 'optimizeSpeed',
58+
'geometric-precision': 'geometricPrecision'
59+
},
5460
textStyles: theme => ({ // defaults to {}
5561
heading: {
5662
output: false, // this means there won't be a "heading" component in the CSS, but it can be extended
@@ -143,16 +149,19 @@ module.exports = {
143149
textShadow: ['responsive'],
144150
ellipsis: ['responsive'],
145151
hyphens: ['responsive'],
152+
kerning: ['responsive'],
146153
textUnset: ['responsive'],
147154
fontVariantCaps: ['responsive'],
148155
fontVariantNumeric: ['responsive'],
149156
fontVariantLigatures: ['responsive'],
157+
textRendering: ['responsive'],
150158
},
151159
plugins: [
152160
require('tailwindcss-typography')({
153161
// all these options default to the values specified here
154162
ellipsis: true, // whether to generate ellipsis utilities
155163
hyphens: true, // whether to generate hyphenation utilities
164+
kerning: true, // whether to generate kerning utilities
156165
textUnset: true, // whether to generate utilities to unset text properties
157166
componentPrefix: 'c-', // the prefix to use for text style classes
158167
}),
@@ -193,6 +202,17 @@ This plugin generates the following utilities:
193202
hyphens: auto;
194203
}
195204

205+
/* generated when the "kerning" option is set to true */
206+
.kerning {
207+
font-kerning: normal;
208+
}
209+
.kerning-none {
210+
font-kerning: none;
211+
}
212+
.kerning-auto {
213+
font-kerning: auto;
214+
}
215+
196216
/* generated when the "textUnset" option is set to true */
197217
.font-family-unset {
198218
font-family: inherit;
@@ -302,6 +322,20 @@ This plugin generates the following utilities:
302322
.ligatures-no-contextual {
303323
font-variant-ligatures: no-contextual;
304324
}
325+
326+
/* configurable with the "textRendering" theme object */
327+
.text-rendering-auto {
328+
text-rendering: auto;
329+
}
330+
.text-optimize-legibility {
331+
text-rendering: optimizeLegibility;
332+
}
333+
.text-optimize-speed {
334+
text-rendering: optimizeSpeed;
335+
}
336+
.text-geometric-precision {
337+
text-rendering: geometricPrecision;
338+
}
305339
```
306340

307341
The plugin also generates components for text styles. The above config example would generate something like this:

0 commit comments

Comments
 (0)