New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tailwindcss-theme-variants

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss-theme-variants

JavaScript- or media-query-based theme variants with fallback for Tailwind CSS

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
669
decreased by-26.64%
Maintainers
1
Weekly downloads
 
Created
Source

This Tailwind CSS plugin TODO. Registers variants. For theming. Without custom properties. With support for stacking variants. With support for media queries. With optional fallback.

TODO: effective theme table for every example.

Because this documentation is in progress, you are recommended to just look at the test suite in tests/index.ts to see just what this plugin can do!

Installation

npm install --save-dev tailwindcss-theme-variants

Basic usage

With this Tailwind configuration,

const { default: tailwindcssThemeVariants } = require("tailwindcss-theme-variants");

module.exports = {
    theme: {
        backgroundColor: {
            "gray-900": "#1A202C",
        },
    },

    variants: {
        backgroundColor: ["light", "dark"],
    },

    plugins: [
        tailwindcssThemeVariants({
            themes: {
                light: {
                    "selector": ".light-theme",
                },
                dark: {
                    "selector": ".dark-theme",
                },
            },
        }),
    ],
};

this CSS is generated:

TODO

Media queries

TODO

TODO

Stacked variants

TODO

TODO

Advanced usage

This plugin expects configuration of the form

TODO

Where each parameter means:

  • TODO

Examples

TODO

💡 Smart ideas will be here!

License and Contributing

MIT licensed. There are no contributing guidelines. Just do whatever you want to point out an issue or feature request and I'll work with it.

Keywords

FAQs

Package last updated on 29 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc