From 72d5c713c582482012c05ab3e8874556e1e3eaad Mon Sep 17 00:00:00 2001 From: Ken Tandrian <60643640+KenTandrian@users.noreply.github.com> Date: Sun, 9 Feb 2025 02:58:55 +0700 Subject: [PATCH] Feature/import global styles in Storybook (#4302) * feat(ui): include styles in storybook build * chore(ui): cleanup * fix(ui): remove styles from storybook target * Update changelog --- CHANGELOG.md | 6 ++++++ libs/ui/.storybook/preview.js | 1 - libs/ui/project.json | 7 ++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fc15b9c..62a8ace5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Added + +- Added global styles to the _Storybook_ setup + ## 2.138.0 - 2025-02-08 ### Added diff --git a/libs/ui/.storybook/preview.js b/libs/ui/.storybook/preview.js index 37eb3a59..e69de29b 100644 --- a/libs/ui/.storybook/preview.js +++ b/libs/ui/.storybook/preview.js @@ -1 +0,0 @@ -// import '!style-loader!css-loader!sass-loader!../../../apps/client/src/styles.scss'; diff --git a/libs/ui/project.json b/libs/ui/project.json index 58e95934..1b3f0e4e 100644 --- a/libs/ui/project.json +++ b/libs/ui/project.json @@ -44,7 +44,12 @@ "outputDir": "dist/storybook/ui", "configDir": "libs/ui/.storybook", "browserTarget": "ui:build-storybook", - "compodoc": false + "compodoc": false, + "styles": [ + "apps/client/src/assets/fonts/inter.css", + "apps/client/src/styles/theme.scss", + "apps/client/src/styles.scss" + ] }, "configurations": { "ci": {