Skip to content

Commit 2ae99e8

Browse files
xrendanclaude
andcommitted
Fix SCSS imports for Storybook compatibility
Revert SCSS imports to use src/styles/ path which works for both development (Storybook) and the built dist/ output. Add ./src/* export to components for development access. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 45960c0 commit 2ae99e8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/charts/src/components/styles/colors.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Import Build Canada Design Tokens
1111
******************************************************************************/
1212

13-
@use "@buildcanada/components/styles/tokens" as bc;
13+
@use "@buildcanada/components/src/styles/tokens" as bc;
1414

1515
/*******************************************************************************
1616
* Brand Colors (from Build Canada design system)

packages/charts/src/styles/charts.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
// Import Build Canada design system fonts
11-
@use "@buildcanada/components/styles/fonts";
11+
@use "@buildcanada/components/src/styles/fonts";
1212

1313
// Import the main grapher styles which include all component styles
1414
@import "../grapher/core/grapher.scss";

packages/components/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"import": "./dist/index.js"
1313
},
1414
"./styles.css": "./dist/styles/main.scss",
15-
"./styles/*": "./dist/styles/*"
15+
"./styles/*": "./dist/styles/*",
16+
"./src/*": "./src/*"
1617
},
1718
"files": [
1819
"dist"

0 commit comments

Comments
 (0)