Skip to content

Commit

Permalink
fix(carbon-react): add compat styles to package (#9661)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack authored Sep 14, 2021
1 parent cb5b4bd commit f5778f7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/carbon-react/scss/compat/_theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Code generated by @carbon/react. DO NOT EDIT.
//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@forward '@carbon/styles/scss/compat/theme';
9 changes: 9 additions & 0 deletions packages/carbon-react/scss/compat/_themes.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Code generated by @carbon/react. DO NOT EDIT.
//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@forward '@carbon/styles/scss/compat/themes';
14 changes: 14 additions & 0 deletions packages/carbon-react/tasks/build-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,20 @@ async function build() {
},
],
},
{
type: 'directory',
filepath: 'compat',
files: [
{
type: 'file',
filepath: '_theme.scss',
},
{
type: 'file',
filepath: '_themes.scss',
},
],
},
],
};
const files = collect(styles);
Expand Down

0 comments on commit f5778f7

Please sign in to comment.