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

[QUESTION] Simplified tailwind config #25

Open
aminmc opened this issue Jul 11, 2021 · 3 comments
Open

[QUESTION] Simplified tailwind config #25

aminmc opened this issue Jul 11, 2021 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@aminmc
Copy link

aminmc commented Jul 11, 2021

Hello

Thank you for creating this library! I'm looking to integrate this with my application however I've noticed that there is quite a lot of customisations in the tailwind config which is causing my app to look different. Is there a bare-bone configuration that only applies to Formio?

Any help would be appreciated.

Thank you.

@aminmc aminmc added the question Further information is requested label Jul 11, 2021
@Romakita
Copy link
Contributor

Romakita commented Jul 22, 2021

Hello @aminmc

You can set your own tailwind configuration. But I agree, the package add extra css to support components proposed by formio and not available basically with tailwind.

By default I use the following configuration: https://github.com/tsedio/tsed-formio/blob/master/packages/tailwind/tailwind.config.js
The @tsed/tailwind-formio require some part of the tailwind configuration like colors.primary / secondary.

Also I written custom css to have the correct rendering for formio component: https://github.com/tsedio/tsed-formio/tree/master/packages/tailwind-formio/styles

Note: Some css rules are directly exported from the bootstrap version!

I haven't a huge experience so I need help to know how we can simplify the tailwind configuration and which custom css causing issue with the website and if a fix can be found without introducing regression on the formio layout.

You help is welcome :)
See you
Romain

@Romakita Romakita moved this to To do in Global Board Oct 3, 2022
@TriStarGod
Copy link
Contributor

I was able to maintain its separation using tailwindcss-themer

@Romakita
Copy link
Contributor

Currently, the tailwind config seems to be simplified. Maybe using tailwind preset can help. I'll take time to investigate that on the next major release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: To do
Development

No branches or pull requests

3 participants