Svelte + Storybook + TailwindCSS
This package is designed to work specifically with Svelte + Tailwind projects.
When installing this package into your project, follow the steps below.
npm i @frequency-chain/style-guide
Edit your tailwind.config
file to contain the style guide config as a preset. See the example below.
import frequencyConfig from "@frequency-chain/style-guide/tailwind.config";
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
// ... custom theme config
},
presets: [frequencyConfig]
};
To spin up the style guide and see what icons, features, atoms, typography, and colors are included, run the commands below.
npm i
npm run storybook
npm run build
cd dist
npm pack
src/lib
.index.ts
.