xyflow / web

📖 This monorepo contains the xyflow website and the documentation sites for React Flow and Svelte Flow.
https://xyflow.com
MIT License
54 stars 52 forks source link

share components, configs and utils between websites #105

Closed chrtze closed 1 year ago

chrtze commented 1 year ago

Because we split up the former docs site (#103) into three separate sites, there are many duplicate components across them. We need to identify which ones are being used multiple times and move them to xy-ui.

Now that each framework got it's own dedicated page, we could simplify the styling. Instead of using bg-react or bg-svelte we could just set the primary color in the tailwind config and use bg-primary. This would simplify the shared components, too.

chrtze commented 1 year ago

@hayleigh-dot-dev let's use this branch: https://github.com/xyflow/web/tree/refactor/reuse-components

chrtze commented 1 year ago

merged into staging, remaining components will get their own issue