Integration with Storybook and custom styles
See original GitHub issueThis is a feature request.
It seems that now react-sketchapp
could only be used only when all styles are inlined in JSX. This significantly limits its applicability for existing projects that often have separate CSS/SASS/LESS/PostCSS stylesheets and/or use something like Bootstrap.
What if there will be some tool that can parse existing demo site (including ones built with Storybook), grab all actual computed styles from DOM (which means app has to be truly rendered by a headless browser or similar) and then produce a temporary react-sketchapp
app which in turn can be converted to Sketch file.
Sounds monstrous but should be quite viable.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:18
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Styling and CSS - Storybook
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >How can I use CSS framework styles inside a storybook #25
Super simple for everyone facing issues with importing custom styles/fonts/sass/... ... Import your global stylesheet e.g. ... import "./../src/ ...
Read more >6 Ways To Configure Global Styles for Storybook | by Jennifer Fu
It is a common task to configure global styles for Storybook, such as background color, color, font family, and font sizes. In this...
Read more >Configuring Storybook: 6 Tips You Can't Miss | by Zheng Li
How to configure your Storybook to be integrated with a current project ... Storybook is an open-source tool for UI development with a...
Read more >API Reference / Custom Styles - Page ⋅ Storybook
For more advanced use cases you can override or replace the global default styling using the customStyles prop and passing in your own...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Being able to use custom CSS in any sort of way would make this tool 100x more useful
We’re building for a future of React-as-a-platform, and looks increasingly like React Native-style abstractions are the right model for that.
That leaves some difficult design decisions, such as standardizing around flexbox (for compatibility & reuse, and because we’re just a couple of people and implementing every single browser layout model).
I have a feeling this might be the same category of issues — if there’s a good solution in the React Native / React VR / React Native Web / React Primitives ecosystem then we can learn from it / use it.