All Projects β†’ innocenzi β†’ Tailwindcss Theming

innocenzi / Tailwindcss Theming

Licence: mit
Tailwind CSS plugin for client-side theming using CSS variables, with dark mode support

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Tailwindcss Theming

JiraDarkTheme
πŸŒ™ 😎 Jira Dark Theme Usercss / Stylus
Stars: ✭ 124 (-64.47%)
Mutual labels:  dark-theme, dark
tailwindcss-variables
Easily create css variables without the need for a css file!
Stars: ✭ 47 (-86.53%)
Mutual labels:  css-variables, tailwindcss
gridsome-starter-liebling
Gridsome starter based on the Liebling theme for Ghost. Content is added via markdown, while Tailwind CSS is used for the layout/styling.
Stars: ✭ 21 (-93.98%)
Mutual labels:  dark-theme, tailwindcss
hexagonTab
Hexagon bookmarks accented with a chosen colour. Customise the layout, style, background and bookmarks with hexagonTab.
Stars: ✭ 65 (-81.38%)
Mutual labels:  dark-theme, dark
Nextcloud Breeze Dark
A Breeze Dark theme for Nextcloud
Stars: ✭ 261 (-25.21%)
Mutual labels:  dark-theme, dark
laravel-micro-spa-boilerplate
An "Advanced" SPA Boilerplate featuring a dark themed UI that's integrated with LaravelMicro.js, Vue.js, TailwindCSS & Laravel PHP Framework.
Stars: ✭ 23 (-93.41%)
Mutual labels:  dark-theme, tailwindcss
element-theme-dark
Element UI dark theme
Stars: ✭ 102 (-70.77%)
Mutual labels:  dark-theme, dark
dark-plus-material
The default Dark+ theme, using Material's color palette.
Stars: ✭ 37 (-89.4%)
Mutual labels:  dark-theme, dark
nextal
Starter template for NextJs with TypeScript. Supports Tailwind with CSS-Modules. Jest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.
Stars: ✭ 88 (-74.79%)
Mutual labels:  dark-theme, tailwindcss
Nova-Dark-Theme
A dark theme for Laravel Nova
Stars: ✭ 72 (-79.37%)
Mutual labels:  color, dark-theme
mkdocs-windmill-dark
Outstanding mkdocs theme with a focus on navigation and usability
Stars: ✭ 24 (-93.12%)
Mutual labels:  dark-theme, dark
Xcode One Dark
Atom One Dark theme for Xcode
Stars: ✭ 273 (-21.78%)
Mutual labels:  dark-theme, color
darkyog
sqlyog dark theme customization like a darkula
Stars: ✭ 18 (-94.84%)
Mutual labels:  dark-theme, dark
stellarized
✦ paint vim with the stars ✦
Stars: ✭ 70 (-79.94%)
Mutual labels:  color, dark
aurora-future-vscode-theme
πŸ’œ A futuristic vscode theme.
Stars: ✭ 27 (-92.26%)
Mutual labels:  dark-theme, dark
llDark
ι€‚η”¨δΊŽiOSζ·±θ‰²ζ¨‘εΌηš„δ»€δΊΊζ„‰εΏ«ηš„δΈ»ι’˜ζ‘†ζžΆ
Stars: ✭ 75 (-78.51%)
Mutual labels:  dark-theme, dark
JitPad
On the fly disassemble C# code based on JitDasm
Stars: ✭ 119 (-65.9%)
Mutual labels:  dark-theme, dark
GithubDarkTheme
Dark Theme for Github
Stars: ✭ 60 (-82.81%)
Mutual labels:  dark-theme, dark
tailwind-theme-switcher
Basic demo on how to switch styles with Tailwind, handy for dark mode type purposes.
Stars: ✭ 164 (-53.01%)
Mutual labels:  dark-theme, tailwindcss
Material Kit React
React Dashboard made with Material UI’s components. Our pro template contains features like TypeScript version, authentication system with Firebase and Auth0 plus many other
Stars: ✭ 3,465 (+892.84%)
Mutual labels:  dark-theme, dark

Tailwind CSS Theming GitHub release NPM release Top Language

Note: Even though it should support Tailwind 2, I didn't thoroughly tested it. I plan to do it when I have time, and probably rewrite a bunch of stuff in order to improve quality of life and enable usage with Tailwind Play. The next version will probably be the actual v3, with breaking changes from the current beta. Knowing that, and although the plugin is perfectly fine, you may want to check out the alternatives. Thanks!

Table of contents

Introduction

Note - This plugin works with Tailwind CSS v1.2 upwards.

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.

It uses CSS Custom Properties 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.

Moreoever, this plugin has full support for the prefers-color-scheme media query, so you can define a theme that will automatically be picked based on browser preferences.

Get started:

$ yarn add [email protected] --dev

Compatibility

This plugin is based on CSS Custom Properties, which are not compatible with IE11. 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 or postcss-custom-properties.

Keep in mind that only your default theme will work with that method.

Alternatives

This 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:

A more complete comparison of the different theming plugins can be found here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].