You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
@@ -177,7 +188,25 @@ For a full reference of the variables you can set in your CSS, please refer to t
177
188
178
189
## Dark Mode
179
190
180
-
The package's components have also been styled for dark mode and will work with both the class based and OS based strategies. If you are using the class based dark mode
181
-
strategy, be sure to use the default `dark` class for dark mode.
191
+
The package's components have also been styled for dark mode and will work with both the class based and OS based strategies. A custom dark mode selector is also supported too.
192
+
193
+
To opt in to dark mode, you will need to add the `dark-mode` plugin to your Tailwind configuration file. See [Plugins](#user-content-plugins) for more information. By default, all
194
+
components are styled for dark mode in this plugin. You may opt out of certain components being styled here if you're not using them. Here is an example of all the options you can
Copy file name to clipboardExpand all lines: docs/upgrade.md
+21
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,27 @@ title: Upgrade
3
3
sort: 4
4
4
---
5
5
6
+
## Upgrading from v8 to v8.1.0
7
+
8
+
Although technically there is a breaking change in this version of v8, I've decided against bumping a major version number since the change does not affect functionality of the package.
9
+
10
+
### Dark Mode
11
+
12
+
To allow for more flexibility for dark mode configuration in Tailwind, a new `dark-mode` Tailwind plugin has been added, which you will need to add to your project's Tailwind config file.
13
+
If your app does not support dark mode, you don't need to worry about this change.
The `dark-mode.css` file has also been removed, so if you were manually pulling that into your stylesheets, you will need to remove the reference to it.
26
+
6
27
## Upgrading from v7 to v8
7
28
8
29
Several breaking changes were introduced in v8. Please read the following carefully before upgrading. This list may not be fully comprehensive, so be sure to check the
0 commit comments