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

How easy is it to integrate with Tailwindcss ? #954

Closed
Christophvh opened this issue Mar 28, 2023 · 4 comments
Closed

How easy is it to integrate with Tailwindcss ? #954

Christophvh opened this issue Mar 28, 2023 · 4 comments
Labels
question Further information is requested wontfix This will not be worked on

Comments

@Christophvh
Copy link

Christophvh commented Mar 28, 2023

Hi,

I have read the docs on custom CSS but it seems to rely very heavily on 'overriding' styles with predefined names. I would like to use Tailwindcss and was wondering how hard is it to add tailwind-css classes on each of the provided components directly instead of in a separate CSS file.

Since tailwind is very popular it might be nice to add a guide to the docs just like the NextJS guide.

@Christophvh Christophvh added the question Further information is requested label Mar 28, 2023
@chriscressman
Copy link
Contributor

I didn't analyze this enough to estimate effort, but I thought about what would be involved:

Each Search UI component has a containing element, whose class is accessible through the className attribute in JSX. However, to manipulate the class of "inner" elements, you'd need to provide a custom view component. To preserve functionality, each view component must re-implement a portion of the default view component it is replacing (for example, any aspects that set up state and manage state).

A custom view component gives you full control of the DOM elements at the expense of creating and maintaining the component.

@botelastic
Copy link

botelastic bot commented May 27, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.

@botelastic botelastic bot added the wontfix This will not be worked on label May 27, 2023
@Christophvh
Copy link
Author

Christophvh commented May 30, 2023

Adding an example to the docs on how to achieve this might be useful. Tailwind is very popular.

Related 820

@botelastic botelastic bot removed the wontfix This will not be worked on label May 30, 2023
@botelastic
Copy link

botelastic bot commented Sep 16, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.

@botelastic botelastic bot added the wontfix This will not be worked on label Sep 16, 2023
@botelastic botelastic bot closed this as completed Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants