tailwindcss-theming

CSS-variables-based swappable themes for Tailwind CSS

MIT License

Stars
499
tailwindcss-theming - Latest Release

Published by innocenzi almost 4 years ago

tailwindcss-theming - v3.0.0-beta.2

Published by innocenzi about 4 years ago

  • Updated dependencies.
tailwindcss-theming - v3.0.0-beta.1

Published by innocenzi over 4 years ago

b4fa0305dfcedfecadd4a98ad6c06d706dd93c7f - Fixed an issue where utilities were generated in camelCase instead of kebab-case (eg. fontSans instead of font-sans) (https://github.com/innocenzi/tailwindcss-theming/issues/24)

tailwindcss-theming - v3.0.0-beta.0

Published by innocenzi over 4 years ago

This new major version is a rewrite of the plugin, with breaking API changes but better experience overall. The upgrading guide is yet to be written.

See this draft PR for more details: https://github.com/hawezo/tailwindcss-theming/pull/22

tailwindcss-theming - v2.4.3

Published by innocenzi over 4 years ago

tailwindcss-theming - v2.4.2

Published by innocenzi over 4 years ago

  • Updated for Tailwind 1.2.0
    • Fixed font tests for Tailwind 1.2.0
    • Updated dependencies
tailwindcss-theming -

Published by innocenzi over 4 years ago

Bumped version to remove hex tag.

tailwindcss-theming - v2.4.0 - Hexadecimal mode

Published by innocenzi almost 5 years ago

  • Added hexadecimal mode, which disables the opacity variants but use hexadecimal color codes instead of RGB and RGBA
tailwindcss-theming - v2.3.1

Published by innocenzi almost 5 years ago

  • Minor update for Tailwind Canary 5
    • Fixed tests for latest version of Tailwind
tailwindcss-theming - v2.3.0 - Scoped variants

Published by innocenzi almost 5 years ago

  • Multiple variants with the same name but with different unique target colors can be declared (#6).
tailwindcss-theming - v2.2.1 - Color variant opacity fix

Published by innocenzi almost 5 years ago

  • Fixed an issue where color variants' opacity was duplicated (output as 0,0,0,.5,.5 instead of 0,0,0,.5).
tailwindcss-theming - v2.2.0 - Extend Tailwind

Published by innocenzi almost 5 years ago

  • Added the possibility to extend Tailwind configuration with custom CSS properties
    • Syntax is .variable('name', 'value', 'tailwindConfigurationItem')
  • New documentation
tailwindcss-theming - v2.1.0 - Custom Properties

Published by innocenzi almost 5 years ago

Example

The following theme configuration:

new Theme()
  .color('primary', 'white')
  .variable('theme-scheme', 'light')
  .variable('font-title', ['Roboto', '"Segoe UI"', 'Arial']);

Will generate:

:root {
  --color-primary: #ffffff;
  --theme-scheme: light;
  --font-title: Roboto,"Segoe UI",Arial;
}
tailwindcss-theming - v2.0.2 - Color Variants Fixes

Published by innocenzi almost 5 years ago

  • Fixed an issue with color variants.
    • Can be a breaking change: before, opacity was not taking into account (eg. #ffffff00 would be white)
    • Now, opacity is taking into account (eg. #ffffff00 will be transparent)

Note: v2.0.1 actually contains these changes, but v2.0.2 fixes a typo in them.

tailwindcss-theming - v2.0.0

Published by innocenzi about 5 years ago

  • Configuration changes
    • A theme is no longer default by default, you have to call .default()
    • ThemeBuilder is now more fluent
  • Added .dark() and .light() helpers in ThemeBuilder
  • Removed .schemeDefault(), replaced by existing .default()
  • Removed .keep(), replaced by .assignable()
tailwindcss-theming - v1.0.0-beta-2

Published by innocenzi about 5 years ago

  • Fixed an issue with opacity variants being parsed as pixel values by Tailwind.
tailwindcss-theming - v1.0.0-beta-1

Published by innocenzi about 5 years ago

  • Fixed an issue where default colors which had variants were not generated.
tailwindcss-theming - v1.0.0-beta

Published by innocenzi about 5 years ago

  • Update for tailwindcss@canary.
  • Contains breaking API changes, check the readme for the new configuration instructions.
Badges
Extracted from project README
GitHub release NPM release Top Language
Related Projects