Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This plugin's version 2.0 #7

Open
6 of 15 tasks
JNavith opened this issue Oct 7, 2020 · 0 comments
Open
6 of 15 tasks

This plugin's version 2.0 #7

JNavith opened this issue Oct 7, 2020 · 0 comments
Assignees

Comments

@JNavith
Copy link
Owner

JNavith commented Oct 7, 2020

Goals

  • Replace "The ultimate example: how I use every feature together" with an examination of the light-and-dark preset's internals
  • Make require("tailwindcss-theme-variants/presets/typography") preset (but don't expose it because it's dependent on light-and-dark being set up?)
  • Provide a require("tailwindcss-theme-variants/presets/recommended") superpreset that installs light-and-dark and typography presets
  • Remove all TODO markers in the Semantics section by filling them out
  • Complete Create a demo site #3
  • Document how to safelist, especially when selectors are used (particularly data-theme)
  • Update "Here's an example of combining prefers-contrast: high with the :hover variant:" to use a low-contrast theme to beat it into people's heads that they should do strictly mutually exclusive and comprehensive themes. Is that a good idea?
  • Document @supports support (alongside media queries)
  • Provide easy to use presets to put in Tailwind config e.x. require("tailwindcss-theme-variants/presets/dark-mode") to replace Tailwind 2.0's dark mode implementation
  • Verify semantics work with non-color utilities
  • Become compatible with Tailwind 2.0 by setting noie11 = target === undefined because the target feature has been removed there
  • Complete Switch most/all variant listing examples to use ({ after }) => after(["theme-variant-1", "theme-variant-2"]) #6

Breaking changes

Work on these will only start once the above goals are complete. Release strategy will be 2.0.0-beta-0 and so on until 2.0.0 is marked stable.

  • Rename utilities.ts to theme-and-variable-converters.ts
  • fallback: true means what fallback: "compact" currently means and fallback: "uncompacted" or fallback: "expanded" or fallback: "uncompressed" means what fallback: true currently means

Post-release

@JNavith JNavith self-assigned this Oct 7, 2020
@JNavith JNavith changed the title 2.0 This plugin's version 2.0 Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant