question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Integration with Storybook and custom styles

See original GitHub issue

This 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:closed
  • Created 6 years ago
  • Reactions:18
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
brianorwhatevercommented, Apr 26, 2017

Being able to use custom CSS in any sort of way would make this tool 100x more useful

3reactions
jemgoldcommented, Apr 27, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found