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

Commit 7bb4858

Browse files
committed
Add all "hyphens" values
1 parent b3ab258 commit 7bb4858

File tree

8 files changed

+3277
-4927
lines changed

8 files changed

+3277
-4927
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/node_modules/
1+
/node_modules/

.release-it.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"src": {
2+
"git": {
33
"tagName": "v%s"
44
}
5-
}
5+
}

CHANGELOG.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ 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+
## [1.1.0] - 2019-03-22
9+
10+
### Added
11+
- Added the `hyphens-none` and `hyphens-manual` utilities
12+
13+
### Changed
14+
- Changed the `hyphens` utility to `hyphens-auto`
15+
816
## [1.0.2] - 2018-11-04
917

1018
### Added
@@ -19,6 +27,7 @@ and this project mostly adheres to [Semantic Versioning](https://semver.org/spec
1927

2028
Initial release
2129

22-
[Unreleased]: https://github.com/benface/tailwindcss-typography/compare/v1.0.2...HEAD
30+
[Unreleased]: https://github.com/benface/tailwindcss-typography/compare/v1.1.0...HEAD
31+
[1.1.0]: https://github.com/benface/tailwindcss-typography/compare/v1.0.2...v1.1.0
2332
[1.0.2]: https://github.com/benface/tailwindcss-typography/compare/v1.0.1...v1.0.2
24-
[1.0.1]: https://github.com/benface/tailwindcss-typography/compare/v1.0.0...v1.0.1
33+
[1.0.1]: https://github.com/benface/tailwindcss-typography/compare/v1.0.0...v1.0.1

README.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Typography Tailwind CSS Plugin
1+
# Typography Plugin for Tailwind CSS
22

33
## Installation
44

@@ -13,7 +13,6 @@ npm install tailwindcss-typography
1313
{
1414
plugins: [
1515
require('tailwindcss-typography')({
16-
variants: ['responsive'],
1716
indents: {
1817
'1': '1px',
1918
'2': '2px',
@@ -22,6 +21,7 @@ npm install tailwindcss-typography
2221
'default': '0 2px 5px rgba(0, 0, 0, 0.5)',
2322
'lg': '0 2px 10px rgba(0, 0, 0, 0.5)',
2423
},
24+
variants: ['responsive'],
2525
}),
2626
],
2727
}
@@ -34,7 +34,15 @@ This plugin generates the following utilities:
3434
text-overflow: ellipsis;
3535
}
3636

37-
.hyphens {
37+
.hyphens-none {
38+
hyphens: none;
39+
}
40+
41+
.hyphens-manual {
42+
hyphens: manual;
43+
}
44+
45+
.hyphens-auto {
3846
hyphens: auto;
3947
}
4048

@@ -49,4 +57,4 @@ This plugin generates the following utilities:
4957
}
5058
```
5159

52-
Note: The `textShadows` option accepts a `default` key which generates a simple `.text-shadow` class (instead of `.text-shadow-default`).
60+
Note: The `textShadows` option accepts a `default` key which generates a simple `.text-shadow` class (instead of `.text-shadow-default`).

index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
const _ = require('lodash');
22

33
module.exports = ({
4-
variants = {},
54
indents = {},
65
textShadows = {},
6+
variants = [],
77
} = {}) => ({ e, addUtilities }) => {
88
addUtilities(
99
{
1010
'.ellipsis': { textOverflow: 'ellipsis' },
11-
'.hyphens': { hyphens: 'auto' },
11+
'.hyphens-none': { hyphens: 'none' },
12+
'.hyphens-manual': { hyphens: 'manual' },
13+
'.hyphens-auto': { hyphens: 'auto' },
1214
...Object.assign(
1315
{},
1416
..._.map(indents, (value, name) => ({

0 commit comments

Comments
 (0)