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

setup component library #2

Merged
merged 4 commits into from
Aug 17, 2022
Merged

setup component library #2

merged 4 commits into from
Aug 17, 2022

Conversation

bigaru
Copy link
Member

@bigaru bigaru commented Aug 6, 2022

Insights

 --wp--preset--font-size--small
 --wp--preset--font-size--medium
 --wp--preset--font-size--large
 --wp--preset--font-size--x-large

Components Candidates

  • WP Components
    • they're already styled
    • limited extensibility
  • Material UI
    • variant MUI is stable, but components are pre-styled
    • variant MUI Base is unstyled as desired. However, it is currently in alpha.
  • RadixUI
    • unstyled
  • React Aria by Adobe
    • provides only accessibility and behavior
    • requires also @react-stately

Styling Candidates

  • stitches:
    • requires react runtime
    • especially hard with SSR, we cannot control SSR from WP
  • styled-components:
    • same problems as with stitches
  • JSS
    • same problems as with stitches
  • tailwindcss
    • requires advanced css background
  • Bulma
    • bulma classes has no prefix. therefore, these classes collides with theme classes
    • with a postcss plugin, own classes and bulma classes can be prefixed
    • has modifier classes such as has-text-black
  • Adobe Spectrum CSS
    • too much of their corporate design
  • Github Primer
    • too much of their corporate design

Conclusion

  • bulma will be used for styling because it is modular, flexible and simple to use
  • react-aria is chosen over radix ui because react-aria provides atomic tools to build complex components, whereas radix ui only offers limited components

@bigaru bigaru force-pushed the feat/add-component-lib branch from 3ed9c1b to dc8235a Compare August 17, 2022 10:01
@bigaru bigaru force-pushed the feat/add-component-lib branch from dc8235a to 25fabc4 Compare August 17, 2022 10:03
@bigaru bigaru marked this pull request as ready for review August 17, 2022 10:56
@bigaru bigaru merged commit 4abc0d4 into main Aug 17, 2022
@bigaru bigaru deleted the feat/add-component-lib branch August 17, 2022 10:56
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.

1 participant