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.

Custom favicon (and customize layout in general)

See original GitHub issue

My specific question: how can you add a custom favicon (like http://airbnb.io/react-dates). I’m using a webpack config if it makes any difference.

More general question: Is it possible to customize the CSS/layout at all? I’d like to add my company name/logo in place of the REACT STORYBOOK header in the top left. I could also see it being useful to customize the CSS of the “chrome” around the examples. Is this possible now or are there any plans to support this?

BTW I’m a huge fan of this project. We recently switched to it from a home-grown version which:

  • was harder to maintain
  • more inconsistent across example groups
  • was shipped with our prod build which meant we needed to load dependencies like faker in prod.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

14reactions
thani-shcommented, Oct 28, 2016

Hi @jcarbo

You can use the -s flag to copy static files when running/bundling storybook. If one of your static file directories has a favicon then it’ll be used. Example:

"scripts": {
  "storybook": "start-storybook -s ./my-dir-with-favicon",
  "build-storybook": "build-storybook -s ./my-dir-with-favicon"
}

You can use the options addon to customize some parts of the UI. You can change the header text and the link with this addon.

We’re using inline-styles for our React Components (chrome) so it’ll be difficult to customize them with custom CSS. If it’s a relatively small and general customization, maybe we could add it to the options addon.

2reactions
jeffcarbscommented, Nov 2, 2016

@mnmtanish - I realized the favicon issue wasn’t resolved via the hard refresh. I had been messing around internally with the node module and something I changed fixed it. I wound up digging in further and just opened a PR with a fix (see #592).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to design a favicon: The ultimate guide - Creative Bloq
The first thing to consider when designing a favicon is what needs to be represented in the canvas. Remember that your favicon is...
Read more >
Add Custom Favicons | Commerce Frontend Development
Add custom favicons. This topic describes how to add custom favicons. General overview ... Navigate to Content > Design > Configuration.
Read more >
How to Add a Favicon to Your Website - Hostinger
Most websites usually use their logo as a favicon. If your website doesn't have a logo, you can simply create one with the...
Read more >
How to add a favicon to your website to customize it | B12
"To add a custom icon to your Gatsby site in just a few a minute, let follow the steps below Go to the...
Read more >
Custom Favicons - Typepad Knowledge Base
Create the favicon.ico file ... You will need to create the icon and save it in a special file format. First, create a...
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