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
* Switch to `esbuild` minfier for CSS
* Add a note on rollowdown
* Add a `Theming` section
* Update README.md
Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com>
---------
Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com>
@@ -53,6 +53,16 @@ The DataGrid component is designed to handle large datasets efficiently while of
53
53
-[Changelog](CHANGELOG.md)
54
54
-[Contributing](CONTRIBUTING.md)
55
55
56
+
> **Important** <br />
57
+
> `rolldown-vite` by default uses `lightningcss` to minify css which has a [bug minifying light-dark syntax](https://github.com/parcel-bundler/lightningcss/issues/873). You can switch to `esbuild` as a workaround
58
+
59
+
```ts
60
+
build: {
61
+
....,
62
+
cssMinify: 'esbuild'
63
+
}
64
+
```
65
+
56
66
## Installation
57
67
58
68
Install `react-data-grid` using your favorite package manager:
@@ -110,6 +120,10 @@ function App() {
110
120
}
111
121
```
112
122
123
+
## Theming
124
+
125
+
Set `--rdg-color-scheme: light/dark` at the `:root` to control the color theme. The light or dark themes can be enforced using the `rdg-light` or `rdg-dark` classes.
0 commit comments