Skip to content

Commit

Permalink
Import CSS files directly into Sass (#2727)
Browse files Browse the repository at this point in the history
* Import CSS files directly into Sass

* Create nasty-parrots-crash.md

---------

Co-authored-by: Katie Langerman <[email protected]>
  • Loading branch information
moekiorg and langermank authored Nov 7, 2024
1 parent d91ba9c commit 7d4cd40
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-parrots-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Removed .css extension from @import and modified @primer/primitives to be output as Sass code.
2 changes: 1 addition & 1 deletion src/color-modes/themes/dark.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/primitives/dist/css/functional/themes/dark.css';
@import '@primer/primitives/dist/css/functional/themes/dark';
2 changes: 1 addition & 1 deletion src/color-modes/themes/dark_colorblind.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/primitives/dist/css/functional/themes/dark-colorblind.css';
@import '@primer/primitives/dist/css/functional/themes/dark-colorblind';
2 changes: 1 addition & 1 deletion src/color-modes/themes/dark_dimmed.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/primitives/dist/css/functional/themes/dark-dimmed.css';
@import '@primer/primitives/dist/css/functional/themes/dark-dimmed';
2 changes: 1 addition & 1 deletion src/color-modes/themes/dark_high_contrast.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/primitives/dist/css/functional/themes/dark-high-contrast.css';
@import '@primer/primitives/dist/css/functional/themes/dark-high-contrast';
2 changes: 1 addition & 1 deletion src/color-modes/themes/dark_tritanopia.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/primitives/dist/css/functional/themes/dark-tritanopia.css';
@import '@primer/primitives/dist/css/functional/themes/dark-tritanopia';
2 changes: 1 addition & 1 deletion src/color-modes/themes/light.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/primitives/dist/css/functional/themes/light.css';
@import '@primer/primitives/dist/css/functional/themes/light';
2 changes: 1 addition & 1 deletion src/color-modes/themes/light_colorblind.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/primitives/dist/css/functional/themes/light-colorblind.css';
@import '@primer/primitives/dist/css/functional/themes/light-colorblind';
2 changes: 1 addition & 1 deletion src/color-modes/themes/light_high_contrast.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/primitives/dist/css/functional/themes/light-high-contrast.css';
@import '@primer/primitives/dist/css/functional/themes/light-high-contrast';
2 changes: 1 addition & 1 deletion src/color-modes/themes/light_tritanopia.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '@primer/primitives/dist/css/functional/themes/light-tritanopia.css';
@import '@primer/primitives/dist/css/functional/themes/light-tritanopia';

0 comments on commit 7d4cd40

Please sign in to comment.