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

Opt out of CSS framework #31

Open
claytoncrockett opened this issue Jan 3, 2019 · 2 comments
Open

Opt out of CSS framework #31

claytoncrockett opened this issue Jan 3, 2019 · 2 comments

Comments

@claytoncrockett
Copy link

Been looking into creating a flag to opt out of using a css framework. This would require basically creating an alternate client setup consisting of components that don't use semantic for their styling. Wondering if anyone else has interest in this use case, if there is interest I would be happy to start poking through it.

@wdjungst
Copy link
Owner

wdjungst commented Jan 4, 2019

As an alternative you could use styled components with the same name and import them from a file and simply exclude the css file. This way you would have to change the components except for the import path.

@claytoncrockett
Copy link
Author

claytoncrockett commented Jan 4, 2019

Yeah that works for me. Correct me if I'm wrong, but this would require still making duplicates of all of the components, where the only different is the
import { Form } from "semantic-ui-react";
would be changed to like
import { Form } from "custom-styled-components";

(generic example)

Or is there a way to conditionally insert that import and keep it to just the original files?

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

No branches or pull requests

2 participants