{"id":13433152,"url":"https://github.com/innocenzi/tailwindcss-theming","last_synced_at":"2025-04-04T21:08:36.667Z","repository":{"id":40291910,"uuid":"212804359","full_name":"innocenzi/tailwindcss-theming","owner":"innocenzi","description":"CSS-variables-based swappable themes for Tailwind CSS","archived":false,"fork":false,"pushed_at":"2024-06-17T20:24:59.000Z","size":3619,"stargazers_count":500,"open_issues_count":1,"forks_count":31,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-28T20:07:01.777Z","etag":null,"topics":["color","css-variables","custom-properties","dark","dark-mode","dark-theme","prefers-color-scheme","tailwindcss","tailwindcss-plugin"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/tailwind-css-theming-m2i1g","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/innocenzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-04T11:58:11.000Z","updated_at":"2025-03-23T10:03:56.000Z","dependencies_parsed_at":"2024-01-07T21:06:39.073Z","dependency_job_id":"db20d016-f5c3-4974-8e1c-95d25f05ca4c","html_url":"https://github.com/innocenzi/tailwindcss-theming","commit_stats":null,"previous_names":["hawezo/tailwindcss-theming"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innocenzi%2Ftailwindcss-theming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innocenzi%2Ftailwindcss-theming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innocenzi%2Ftailwindcss-theming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/innocenzi%2Ftailwindcss-theming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/innocenzi","download_url":"https://codeload.github.com/innocenzi/tailwindcss-theming/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249526,"owners_count":20908212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color","css-variables","custom-properties","dark","dark-mode","dark-theme","prefers-color-scheme","tailwindcss","tailwindcss-plugin"],"created_at":"2024-07-31T02:01:21.727Z","updated_at":"2025-04-04T21:08:36.646Z","avatar_url":"https://github.com/innocenzi.png","language":"TypeScript","readme":"# Tailwind CSS Theming [![GitHub release](https://img.shields.io/github/v/release/hawezo/tailwindcss-theming?include_prereleases\u0026style=flat-square)](https://github.com/hawezo/tailwindcss-theming/releases) [![NPM release](https://img.shields.io/npm/v/tailwindcss-theming/next?style=flat-square)](https://npmjs.com/package/tailwindcss-theming) [![Top Language](https://img.shields.io/github/languages/top/hawezo/tailwindcss-theming?style=flat-square)]()\n\n[\u003cimg src=\"logo.svg\" align=\"right\" width=\"100\"\u003e]()\n\n\u003e **Warning** \u003cbr /\u003e\n\u003e I no longer use this package, so it is no longer maintained. If anyone want to take it over, feel free to ask.\n\n## Table of contents\n\n- [Introduction](#introduction)\n- [Quick start](docs/quick-start.md)\n- [Plugin configuration](docs/configuration.md)\n  - [Changing the theme file](docs/configuration.md#changing-the-theme-file)\n  - [Changing the strategy](docs/configuration.md#changing-the-strategy)\n  - [Using a preset](docs/configuration.md#using-a-preset)\n  - [Using variants](docs/configuration.md#using-variants)\n- [Configuring your themes](docs/themes.md#configuring-your-themes)\n  - [Creating a theme](docs/themes.md#creating-a-theme)\n    - [Colors](docs/themes.md#colors)\n    - [Variants](docs/themes.md#variants)\n    - [Extending Tailwind's configuration with CSS variables](docs/themes.md#extending-tailwinds-configuration-with-css-variables)\n    - [Name and targetability](docs/themes.md#name-and-targetability)\n  - [Exporting your themes](docs/themes.md#exporting-your-themes)\n    - [Default theme](docs/themes.md#default-theme)\n    - [Default dark theme](docs/themes.md#default-dark-theme)\n    - [Default light theme](docs/themes.md#default-light-theme)\n    - [Additional themes](docs/themes.md#additional-themes)\n- [Presets](docs/presets.md#introduction)\n  - [Nord](docs/presets.md#nord)\n  - [Nord Vanilla](docs/presets.md#nord-vanilla)\n  - [Tailwind CSS Vanilla](docs/presets.md#tailwind-css-vanilla)\n- [Upgrade guide](docs/upgrading.md)\n- [Compatibility](#compatibility)\n- [Alternatives](#alternatives)\n\n## Introduction\n\n\u003e **Note** - This plugin works with **Tailwind CSS v1.2** upwards.\n\n`tailwindcss-theming` is a Tailwind CSS plugin made to solve the common need to have multiple themes in an application. It is also perfect for making dark themes.\n\nIt uses [CSS Custom Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/--*) in order to make your themes interchangeable on the client-side. Swapping themes is as simple as changing a class of your `body` element. [See an example in CodeSandbox](https://codesandbox.io/s/tailwind-css-theming-m2i1g).\n\nMoreoever, this plugin has full support for the [`prefers-color-scheme`](https://developer.mozilla.org/fr/docs/Web/CSS/@media/prefers-color-scheme) media query, so you can define a theme that will automatically be picked based on browser preferences.\n\n**Get started:**\n\n```bash\n$ yarn add tailwindcss-theming@next --dev\n```\n\n## Compatibility\n\nThis plugin is based on [CSS Custom Properties](https://developer.mozilla.org/en-US/docs/Web/CSS/--*), which are [not compatible with IE11](https://caniuse.com/#feat=css-variables). You can have partial support for the browsers that do not support them by using a PostCSS plugin that add a fallback for CSS variables, such as [`postcss-css-variables`](https://github.com/MadLittleMods/postcss-css-variables) or [`postcss-custom-properties`](https://github.com/postcss/postcss-custom-properties).\n\nKeep in mind that only your default theme will work with that method.\n\n## Alternatives\n\nThis plugin is feature-complete, but some alternatives exist. If you're looking for a simpler approach, a different kind of configuration, or just want to know the alternatives, here is a list that you may find useful:\n\n- [`tailwindcss-theme-variants`](https://github.com/JakeNavith/tailwindcss-theme-variants) — A complete variant-based theming plugin.\n- [`tailwindcss-multi-theme`](https://github.com/estevanmaito/tailwindcss-multi-theme) — A simple, yet good alternative if you want to stick to variants.\n- [`tailwindcss-dark-mode`](https://github.com/ChanceArthur/tailwindcss-dark-mode) - Another variant alternative.\n- [`tailwindcss-darkmode`](https://github.com/danestves/tailwindcss-darkmode) - Another variant alternative.\n- [`tailwindcss-theme-swapper`](https://github.com/crswll/tailwindcss-theme-swapper) - Similar to `tailwindcss-theming`, but lower-level, and without the variant functionality.\n- [Manually](https://tailwindcss.com/docs/breakpoints/#dark-mode), by adding a `screens` media query in Tailwind's configuration.\n\n\u003e A more complete comparison of the different theming plugins can be found [here](https://github.com/JakeNavith/tailwindcss-theme-variants/blob/main/README.md#alternatives).\n","funding_links":[],"categories":["TypeScript","Plugins"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnocenzi%2Ftailwindcss-theming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnocenzi%2Ftailwindcss-theming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnocenzi%2Ftailwindcss-theming/lists"}