Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Commit ebdc70f

Browse files
committed
Update dependencies + add support for global variants + fix tests
1 parent 408a306 commit ebdc70f

File tree

5 files changed

+737
-1925
lines changed

5 files changed

+737
-1925
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ 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+
## [Unreleased]
9+
10+
### Changed since 2.0.0-beta.2
11+
- Added support for global variants thanks to Tailwind’s `variants()` helper function
12+
13+
### Added since 1.x
14+
- Tailwind 1.0.0 compatibility
15+
16+
### Changed since 1.x
17+
- The plugin doesn’t accept a config object anymore; instead it finds what it needs in the `theme` and `variants` keys of your config (see `README` for more info)
18+
- Responsive variants are now generated by default
19+
20+
### Fixed since 1.x
21+
- Single-color gradients now generate a transparent `rgba()` version of the color instead of using the `transparent` keyword, which is interpreted as `rgba(0, 0, 0, 0)` (transparent black) by Safari and the CSS spec
22+
823
## [2.0.0-beta.2] - 2019-04-04
924

1025
### Fixed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const _ = require('lodash');
22
const Color = require('color');
33

44
module.exports = function() {
5-
return ({ config, e, addUtilities }) => {
5+
return ({ config, e, addUtilities, variants }) => {
66
const defaultDirections = {
77
't': 'to top',
88
'tr': 'to top right',
@@ -33,6 +33,6 @@ module.exports = function() {
3333
return utilities;
3434
})();
3535

36-
addUtilities(gradientUtilities, config('variants.gradients', defaultVariants));
36+
addUtilities(gradientUtilities, variants('gradients', defaultVariants));
3737
};
3838
};

0 commit comments

Comments
 (0)