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

Refactor TailwindCSS plugins structure to a common interface #109

Merged
merged 11 commits into from
Oct 25, 2020

Conversation

josemarluedke
Copy link
Owner

There are 2 major concepts, a single part component, and a multi-part component both have a common interface:

Single part Component

export default {
  // Styles for the base component
  baseStyle: {},
  // Styles for the visual style variations, eg sizes or others
  variants: {
    [variantName]: {}
  }
}

Multipart Component

export default {
  // Styles for the base component
  baseStyle: {},
  // Styles for the visual style variations, eg sizes or others
  variants: {
    [variantName]: {
      baseStyle: {}
      parts: {
        [partName]: {}
      }
    }
  },
  parts: {
    [partName]: {}
  }
}

Notes:

  • How to configure and extend the plugins has changed.
  • Forms package still needs to be migrated.

@josemarluedke josemarluedke changed the title Refactor TailwindCSS plugin structure to a common interface Refactor TailwindCSS plugins structure to a common interface Oct 25, 2020
@josemarluedke josemarluedke merged commit 4f803ae into master Oct 25, 2020
@josemarluedke josemarluedke deleted the refactor/button-styles branch October 25, 2020 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant