Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions __tests__/fixtures/tailwind-output-important.css
Original file line number Diff line number Diff line change
Expand Up @@ -5871,15 +5871,15 @@ table {
-moz-osx-font-smoothing: auto !important;
}

.tracking-tight {
.letters-tight {
letter-spacing: -0.05em !important;
}

.tracking-normal {
.letters-normal {
letter-spacing: 0 !important;
}

.tracking-wide {
.letters-wide {
letter-spacing: .05em !important;
}

Expand Down Expand Up @@ -11456,15 +11456,15 @@ table {
-moz-osx-font-smoothing: auto !important;
}

.sm\:tracking-tight {
.sm\:letters-tight {
letter-spacing: -0.05em !important;
}

.sm\:tracking-normal {
.sm\:letters-normal {
letter-spacing: 0 !important;
}

.sm\:tracking-wide {
.sm\:letters-wide {
letter-spacing: .05em !important;
}

Expand Down Expand Up @@ -17042,15 +17042,15 @@ table {
-moz-osx-font-smoothing: auto !important;
}

.md\:tracking-tight {
.md\:letters-tight {
letter-spacing: -0.05em !important;
}

.md\:tracking-normal {
.md\:letters-normal {
letter-spacing: 0 !important;
}

.md\:tracking-wide {
.md\:letters-wide {
letter-spacing: .05em !important;
}

Expand Down Expand Up @@ -22628,15 +22628,15 @@ table {
-moz-osx-font-smoothing: auto !important;
}

.lg\:tracking-tight {
.lg\:letters-tight {
letter-spacing: -0.05em !important;
}

.lg\:tracking-normal {
.lg\:letters-normal {
letter-spacing: 0 !important;
}

.lg\:tracking-wide {
.lg\:letters-wide {
letter-spacing: .05em !important;
}

Expand Down Expand Up @@ -28214,15 +28214,15 @@ table {
-moz-osx-font-smoothing: auto !important;
}

.xl\:tracking-tight {
.xl\:letters-tight {
letter-spacing: -0.05em !important;
}

.xl\:tracking-normal {
.xl\:letters-normal {
letter-spacing: 0 !important;
}

.xl\:tracking-wide {
.xl\:letters-wide {
letter-spacing: .05em !important;
}

Expand Down
30 changes: 15 additions & 15 deletions __tests__/fixtures/tailwind-output.css
Original file line number Diff line number Diff line change
Expand Up @@ -5871,15 +5871,15 @@ table {
-moz-osx-font-smoothing: auto;
}

.tracking-tight {
.letters-tight {
letter-spacing: -0.05em;
}

.tracking-normal {
.letters-normal {
letter-spacing: 0;
}

.tracking-wide {
.letters-wide {
letter-spacing: .05em;
}

Expand Down Expand Up @@ -11456,15 +11456,15 @@ table {
-moz-osx-font-smoothing: auto;
}

.sm\:tracking-tight {
.sm\:letters-tight {
letter-spacing: -0.05em;
}

.sm\:tracking-normal {
.sm\:letters-normal {
letter-spacing: 0;
}

.sm\:tracking-wide {
.sm\:letters-wide {
letter-spacing: .05em;
}

Expand Down Expand Up @@ -17042,15 +17042,15 @@ table {
-moz-osx-font-smoothing: auto;
}

.md\:tracking-tight {
.md\:letters-tight {
letter-spacing: -0.05em;
}

.md\:tracking-normal {
.md\:letters-normal {
letter-spacing: 0;
}

.md\:tracking-wide {
.md\:letters-wide {
letter-spacing: .05em;
}

Expand Down Expand Up @@ -22628,15 +22628,15 @@ table {
-moz-osx-font-smoothing: auto;
}

.lg\:tracking-tight {
.lg\:letters-tight {
letter-spacing: -0.05em;
}

.lg\:tracking-normal {
.lg\:letters-normal {
letter-spacing: 0;
}

.lg\:tracking-wide {
.lg\:letters-wide {
letter-spacing: .05em;
}

Expand Down Expand Up @@ -28214,15 +28214,15 @@ table {
-moz-osx-font-smoothing: auto;
}

.xl\:tracking-tight {
.xl\:letters-tight {
letter-spacing: -0.05em;
}

.xl\:tracking-normal {
.xl\:letters-normal {
letter-spacing: 0;
}

.xl\:tracking-wide {
.xl\:letters-wide {
letter-spacing: .05em;
}

Expand Down
2 changes: 1 addition & 1 deletion defaultConfig.stub.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
textTransform: ['responsive', 'hover', 'focus'],
textDecoration: ['responsive', 'hover', 'focus'],
fontSmoothing: ['responsive', 'hover', 'focus'],
tracking: ['responsive'],
letterSpacing: ['responsive'],
userSelect: ['responsive'],
verticalAlign: ['responsive'],
visibility: ['responsive'],
Expand Down
2 changes: 1 addition & 1 deletion defaultTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ module.exports = function() {
normal: 1.5,
loose: 2,
},
tracking: {
letterSpacing: {
tight: '-0.05em',
normal: '0',
wide: '0.05em',
Expand Down
1 change: 1 addition & 0 deletions plugins/letterSpacing.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../lib/plugins/letterSpacing').default
1 change: 0 additions & 1 deletion plugins/tracking.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import fontStyle from './plugins/fontStyle'
import textTransform from './plugins/textTransform'
import textDecoration from './plugins/textDecoration'
import fontSmoothing from './plugins/fontSmoothing'
import tracking from './plugins/tracking'
import letterSpacing from './plugins/letterSpacing'
import userSelect from './plugins/userSelect'
import verticalAlign from './plugins/verticalAlign'
import visibility from './plugins/visibility'
Expand Down Expand Up @@ -119,7 +119,7 @@ export default function(config) {
textTransform,
textDecoration,
fontSmoothing,
tracking,
letterSpacing,
userSelect,
verticalAlign,
visibility,
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/tracking.js → src/plugins/letterSpacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function({ values, variants }) {
const utilities = _.fromPairs(
_.map(values, (value, modifier) => {
return [
`.tracking-${modifier}`,
`.letters-${modifier}`,
{
'letter-spacing': value,
},
Expand Down