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

v3.0 - Rewriting and improvements #22

Merged
merged 69 commits into from May 16, 2020
Merged

v3.0 - Rewriting and improvements #22

merged 69 commits into from May 16, 2020

Conversation

innocenzi
Copy link
Owner

@innocenzi innocenzi commented May 1, 2020

  • Usage of new plugin API
    • Require the plugin by its name instead of requiring a file
    • Configuration
      • Change the theme file (defaults to theme.config.js
      • Enable or disable specific variants
      • Customize variants' selectors
      • Select available presets (default themes)
  • Integrate prefers-color-scheme variants plugin
    • dark, light and no-preference variants
    • Customizable selector name
  • New color variants system
  • Presets (default themes)
    • Themes based on Nord
    • Themes based on Tailwind's colors
    • Default Tailwind colors
    • Default Tailwind UI colors
  • Main features
    • Generation of a Tailwind configuration
    • Generation of required CSS variables
    • Allow custom CSS variables to extend Tailwind
      • Specify a path to a key to extend it
      • Allow prefixes for better naming
      • Convert multiple possible values to string
    • Multiple strategies (apply a theme per class, data attribute...)
      • Custom prefixes
  • useTheme composable function for Vue
    • Gives reactive variables that contain the current theme
    • Can change the theme
  • Documentation
    • Upgrade guide
    • Rewrite of the docs
    • Actual website
    • Tool to help make themes

A theme could be changed (set to default, affected by a scheme change), so the initial theme would be changed as well. It was an issue for reused themes.
They were defaulted in the ThemeManager object, and they are now settable in the plugin configuration. They can be overriden by setting them in the theme manager.
@innocenzi innocenzi merged commit 11b0bfa into master May 16, 2020
@innocenzi innocenzi deleted the next branch May 16, 2020 17:51
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

Successfully merging this pull request may close these issues.

None yet

1 participant