design-system-example Tailwind Templates

Design System Example

An example of a design system within a PNPM workspace. This uses vite, tailwind, shadcn, and storybook

Design System Example

This is a template / example of a design system using Vite, Storybook, Tailwind, and React, and ShadCN.

Generating Stories

Stories are generated using the Stackpoint Storybook custom GPT Agent which can be found here

To use the Agent, simply copy your component into the chat and make any small import / story name changes as necessary. This agent is highly tuned to create robust, repeatable Storybook stories.

Sharing Tailwind / CSS

  1. Note the TailwindCSS config is shared at the root of the workspace and consumed by /surface-components/tailwind.config.js
  2. Note the styleguide.css is build via a local SASS export. This will likely not be necessary in most projects. This was used here due to different natures of CSS required in a chrome extension vs a react app (:host vs :root). In most cases, the CSS file can be shared directly

Tech Choices and Why

  1. ShadCN
  • Composable, accessible core react components we can style ourselves. Allows us to own a design system from the ground up
  1. TailwindCSS
  • Shared design language, usable by tech and designer alike, shareable styles config
  1. Vite
  • Absolutely dead simple setup and lightning fast build times
  1. Storybook
  • Developer version of Figma documentation. Provides code snippets, component display, and easy way to work on components visually without needing to boot an app.

Top categories

Loading Svelte Themes