Skip to content

Commit

Permalink
Make scss appear in spm
Browse files Browse the repository at this point in the history
  • Loading branch information
folkforms committed May 21, 2024
1 parent 230f970 commit dedaab5
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 60 deletions.
6 changes: 0 additions & 6 deletions packages/carbon-addons-devenv/src/scss/addon-samples.scss

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.#{$prefix}--logo {
box-shadow: inset 0 0 0 2px $layer-01;
box-shadow: inset 0 0 0 2px themes.get("layer-01");
border-radius: $border-radius-round;
font-weight: 500;
overflow: hidden;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
.#{$prefix}--personfolio {
background-color: $layer-01;
color: $text-primary;
background-color: themes.get("layer-01");
color: themes.get("text-primary");
border-radius: 6px;
border-width: 1px 1px 1px 1px;
border-style: solid !important;
padding: $spacing-05;
margin-top: $spacing-05;
padding: themes.get("spacing-05");
margin-top: themes.get("spacing-05");

&--child {
border-color: $support-error;
border-color: themes.get("support-error");
}

&--youngadult {
border-color: $support-success;
border-color: themes.get("support-success");
}

&--adult {
border-color: $support-warning;
border-color: themes.get("support-warning");
}

&--senior {
border-color: $support-info;
border-color: themes.get("support-info");
}
}
Empty file.
9 changes: 0 additions & 9 deletions packages/carbon-addons-devenv/src/scss/carbon-components.scss

This file was deleted.

8 changes: 6 additions & 2 deletions packages/carbon-addons-devenv/src/scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@import "./app.scss";
@use "@carbon/themes/scss/themes" as *;
@use "@carbon/themes";

.spm-custom-component {
@import "./carbon-components.scss";
@import "./prefix.scss";
@import "./variables.scss";
@import "./addons_samples/logo.scss";
@import "./addons_samples/personfolio.scss";
}
1 change: 1 addition & 0 deletions packages/carbon-addons-devenv/src/scss/prefix.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$prefix: "bx";
2 changes: 0 additions & 2 deletions packages/carbon-addons-devenv/src/scss/variables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
$prefix: "bx";
$border-radius-round: 100vw !default;
$width-logo-large: 120px; // do we need small and medium too
$width-logo-medium: 80px;
$width-logo-small: 36px;
$border-base: 1px solid $background;
1 change: 1 addition & 0 deletions packages/custom-carbon-addons/src/scss/addons/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Import your custom SCSS files in this file to automatically include them in the build.
2 changes: 1 addition & 1 deletion packages/custom-carbon-addons/src/scss/addons/readme.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Add your custom SCSS files to this directory
Add your custom SCSS files to this directory and import them in index.scss.
16 changes: 3 additions & 13 deletions packages/custom-carbon-addons/src/scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
// @import "../../../carbon-addons-devenv/src/scss/app.scss";
@use "@carbon/themes/scss/themes" as *;
@use "@carbon/themes";

.spm-custom-component {
//-------------------------
// Variable overrides
//-------------------------
@import "./variables.scss";
//-------------------------
// Carbon-Components
//-------------------------
// @import "../../../carbon-addons-devenv/src/scss/carbon-components.scss";
//-------------------------
// Custom addons scss here
//-------------------------
// Sample component addons
//@import '../../../carbon-addons-devenv/src/scss/addon-samples.scss';
@import "./addons";
}
18 changes: 0 additions & 18 deletions packages/custom-carbon-addons/src/scss/index_latest.scss

This file was deleted.

0 comments on commit dedaab5

Please sign in to comment.