@thiagormoreira/nightwind 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/FUNDING.yml +3 -0
- package/CHANGELOG.md +194 -0
- package/LICENSE +21 -0
- package/README.md +715 -0
- package/helper.js +100 -0
- package/package.json +32 -0
- package/src/index.js +749 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [1.1.13] - 2023-02-21
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- support for tailwind v3
|
|
15
|
+
|
|
16
|
+
## [1.1.12] - 2021-06-24
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- enable() function in helpers to selectively enable dark/light mode
|
|
21
|
+
- beforeTransition() function in helpers, fixing unwanted transitions as a side-effect of having nightwind class at html tag.
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- added tailwindcss as peerDependency
|
|
26
|
+
|
|
27
|
+
Huge thanks to @jaulz, @Djiit and @josephbuchma for the contributions for this release!
|
|
28
|
+
|
|
29
|
+
## [1.1.11] - 2021-04-01
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- Support for CSS variables
|
|
34
|
+
|
|
35
|
+
## [1.1.10] - 2021-03-29
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
|
|
39
|
+
- 'nightwind-prevent-block' class
|
|
40
|
+
- fixedBlockClass Nightwind configuration option
|
|
41
|
+
- transitionClasses Nightwind configuration option
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
|
|
45
|
+
- Nightwind by default now generates transition classes only for 'text', 'bg' and 'border' color classes.
|
|
46
|
+
|
|
47
|
+
## [1.1.9] - 2021-03-29
|
|
48
|
+
|
|
49
|
+
### Changed
|
|
50
|
+
|
|
51
|
+
- Nightwind configuration option 'importantSibling' into 'importantNode'
|
|
52
|
+
|
|
53
|
+
## [1.1.8] - 2021-03-29
|
|
54
|
+
|
|
55
|
+
### Added
|
|
56
|
+
|
|
57
|
+
- Support for [important TailwindCSS configuration](https://tailwindcss.com/docs/configuration#important)
|
|
58
|
+
- Configuration option 'importantSibling' in nightwind config
|
|
59
|
+
|
|
60
|
+
## [1.1.7] - 2021-03-27
|
|
61
|
+
|
|
62
|
+
### Added
|
|
63
|
+
|
|
64
|
+
- Support for [tailwindcss-jit](https://github.com/tailwindlabs/tailwindcss-jit)
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
|
|
68
|
+
- Bug where tailwindcss-typography nightwind classes were not correctly generated, when using tailwindcss-jit
|
|
69
|
+
|
|
70
|
+
## [1.1.6] - 2021-02-17
|
|
71
|
+
|
|
72
|
+
### Fixed
|
|
73
|
+
|
|
74
|
+
- Bug where sometimes color classes with 'inherit' or 'transparent' were not rendered correctly in dark mode
|
|
75
|
+
|
|
76
|
+
## [1.1.5] - 2021-02-15
|
|
77
|
+
|
|
78
|
+
### Added
|
|
79
|
+
|
|
80
|
+
- Support for [tailwindcss-typography](https://github.com/tailwindlabs/tailwindcss-typography) official TailwindCSS plugin
|
|
81
|
+
|
|
82
|
+
### Fixed
|
|
83
|
+
|
|
84
|
+
- Support for 'group-focus' variant
|
|
85
|
+
|
|
86
|
+
## [1.1.4] - 2021-01-24
|
|
87
|
+
|
|
88
|
+
### Changed
|
|
89
|
+
|
|
90
|
+
- New 'variants', 'colorClasses' and 'transitionDuration' configuration in tailwind.config.js (with backward compatibility)
|
|
91
|
+
|
|
92
|
+
### Fixed
|
|
93
|
+
|
|
94
|
+
- 'group-hover' classes not being correctly generated
|
|
95
|
+
|
|
96
|
+
## [1.1.3] - 2021-01-21
|
|
97
|
+
|
|
98
|
+
### Removed
|
|
99
|
+
|
|
100
|
+
- Duplicated Nightwind transition classes from gradient classes
|
|
101
|
+
|
|
102
|
+
## [1.1.2] - 2021-01-20
|
|
103
|
+
|
|
104
|
+
### Fixed
|
|
105
|
+
|
|
106
|
+
- Priority of gradient classes generated by Nightwind, which may not appear correctly in some cases
|
|
107
|
+
|
|
108
|
+
## [1.1.1] - 2021-01-18
|
|
109
|
+
|
|
110
|
+
### Fixed
|
|
111
|
+
|
|
112
|
+
- Variants not being correctly applied to nightwind classes
|
|
113
|
+
|
|
114
|
+
## [1.1.0] - 2021-01-17
|
|
115
|
+
|
|
116
|
+
### Added
|
|
117
|
+
|
|
118
|
+
- Custom color scale configuration
|
|
119
|
+
|
|
120
|
+
## [1.0.9] - 2021-01-16
|
|
121
|
+
|
|
122
|
+
### Added
|
|
123
|
+
|
|
124
|
+
- The 'nightwind-prevent' class
|
|
125
|
+
|
|
126
|
+
## [1.0.8] - 2020-12-29
|
|
127
|
+
|
|
128
|
+
### Added
|
|
129
|
+
|
|
130
|
+
- Support for 'first', 'last', 'even' and 'odd' child variants
|
|
131
|
+
|
|
132
|
+
## [1.0.7] - 2020-12-24
|
|
133
|
+
|
|
134
|
+
### Fixed
|
|
135
|
+
|
|
136
|
+
- Solved light flicker and added dark mode persistence in helper functions
|
|
137
|
+
|
|
138
|
+
## [1.0.6] - 2020-12-22
|
|
139
|
+
|
|
140
|
+
### Changed
|
|
141
|
+
|
|
142
|
+
- New color inversion: now all colors get switched, also -50
|
|
143
|
+
|
|
144
|
+
## [1.0.5] - 2020-12-22
|
|
145
|
+
|
|
146
|
+
### Added
|
|
147
|
+
|
|
148
|
+
- Hybrid color mappings
|
|
149
|
+
|
|
150
|
+
### Changed
|
|
151
|
+
|
|
152
|
+
- Color mapping now use 'nightwind' instead of 'dark' in tailwind.config.js
|
|
153
|
+
|
|
154
|
+
## [1.0.4] - 2020-12-22
|
|
155
|
+
|
|
156
|
+
### Added
|
|
157
|
+
|
|
158
|
+
- Color mappings
|
|
159
|
+
|
|
160
|
+
## [1.0.3] - 2020-11-20
|
|
161
|
+
|
|
162
|
+
### Added
|
|
163
|
+
|
|
164
|
+
- Tailwind 2.0 support
|
|
165
|
+
- Support for inversion of -50 color weights
|
|
166
|
+
- Support for gradients in automatic dark mode
|
|
167
|
+
- Support for 'ring' color classes
|
|
168
|
+
- Support for 'ring-offset' color classes
|
|
169
|
+
|
|
170
|
+
## [1.0.2] - 2020-11-14
|
|
171
|
+
|
|
172
|
+
### Fixed
|
|
173
|
+
|
|
174
|
+
- Fixed opacity not being added in nightwind color classes
|
|
175
|
+
|
|
176
|
+
## [1.0.1] - 2020-11-11
|
|
177
|
+
|
|
178
|
+
### Added
|
|
179
|
+
|
|
180
|
+
- Automatic dark mode support for custom classes
|
|
181
|
+
|
|
182
|
+
### Changed
|
|
183
|
+
|
|
184
|
+
- Overrides now use the TailwindCSS dark: variant
|
|
185
|
+
|
|
186
|
+
## [1.0.0] - 2020-11-09
|
|
187
|
+
|
|
188
|
+
### Added
|
|
189
|
+
|
|
190
|
+
- Automatic dark mode
|
|
191
|
+
- Support for custom colors
|
|
192
|
+
- Variants support
|
|
193
|
+
- Overrides
|
|
194
|
+
- Helper functions
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 jj_ranalli
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|