This Tailwind CSS plugin provides custom variants to apply styles to apps that are running on the [ToDesktop](https://www.todesktop.com) platform. There are also platform specific variants that target Windows, macOS, and Linux.
npm install @todesktop/tailwind-variantsThis Tailwind CSS plugin provides custom variants to apply styles to apps that are running on the ToDesktop platform. There are also platform specific variants that target Windows, macOS, and Linux.
- Provides .todesktop variant to target apps running on the ToDesktop platform.
- Provides .windows, .mac, and .linux variants.
Install the plugin from npm:
``bash`
npm install @todesktop/tailwind-variants
Add the plugin to your tailwind.config.js file:
`js`
module.exports = {
// ...
plugins: [
require("@todesktop/tailwind-variants"),
// ...
],
};
Once the plugin is installed and enabled, you can use the variants in your Tailwind CSS classes like so:
`html`
`html`
`html`
`html``
- Thanks to Peer Richelsen for requesting this.