DEV Community

Cover image for JungleJS + Storybook + TailwindCSS starter

Posted on • Updated on

JungleJS + Storybook + TailwindCSS starter

πŸ“· Cover image: Isaac Quesada

GitHub logo ekafyi / junglejs-storybook-tailwind

Starter site for JungleJS + Storybook + TailwindCSS

JungleJS + Storybook + TailwindCSS starter site

A starter site for:

  • JungleJS β€” Svelte and GraphQL-based static site generator
  • Storybook β€” UI development environment
  • TailwindCSS β€” utility-first CSS framework


git clone
cd junglejs-storybook-tailwind
# Install dependencies
npm install
# Start Jungle server
npm run start
# Start Storybook server
npm run storybook

Jungle runs on localhost:3000.

Storybook runs on localhost:6006.

Directory structure

β”œβ”€β”€ .storybook # Storybook config
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ # ... Jungle components & routes dir
β”‚   β”œβ”€β”€ stories # Storybook sample stories
β”‚   β”œβ”€β”€ tailwind.css # Tailwind source file
β”‚   └── template.html # Jungle template (with global.css swapped for tailwind.css)
β”œβ”€β”€ static
β”‚   β”œβ”€β”€ # ... other Jungle assets
β”‚   β”œβ”€β”€ global.css # default Jungle CSS (not used)
β”‚   └── tailwind.css # Tailwind output/generated file
β”œβ”€β”€ # ... default jungle & package files
β”œβ”€β”€ postcss.config.js
└── tailwind.config.js

This starter uses as much…

JungleJS is a new static site generator. All Svelte goodness + GraphQL data layer = fast, performant static site. Jungle’s underlying philosophy seems to resemble Eleventy, except Jungle uses Svelte.

But as of now, Jungle does not have live reload yet. We have to restart the server any time we make a change. While only partially addressing the needs for live reload, we can use Storybook for developing UI components. Even in project with hot reloading/live reload, it’s useful to have an isolated UI development environment like Storybook, which also provides us with various addons, from accessibility to testing. Finally, Tailwind provides customizable, utility-first CSS, which helps us build our UI faster.

And thus this starter site was born.

For a quick start, you can click the β€œUse this template” button on the Github repository or run git clone

Let me know if you're building anything with this!

Bonus track

Top comments (0)