Skip to content

Commit

Permalink
feat(colors): update to new carbon-- namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Jun 17, 2019
1 parent 742a12b commit 3f81707
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Expand Up @@ -20,11 +20,11 @@ module.exports = {
async migrate(options) {
const changes = [
{
from: /(\$ibm-colors__[a-z]+)(--)([\d]+)/gm,
from: /\$ibm-colors__([a-z]+)(--)([\d]+)/gm,
// Capture group $1 refers to $ibm-colors__abcd
// $2 refers to double dash (--)
// $3 is the grade at the end
to: '$1-$3',
to: '$carbon--$1-$3',
},
];

Expand Down
Expand Up @@ -21,9 +21,9 @@ $ibm-colors__teal--50;
color: $ibm-colors__teal--50;
`,
`
$ibm-colors__blue-50;
$ibm-colors__teal-50;
color: $ibm-colors__blue-50;
color: $ibm-colors__teal-50;
$carbon--blue-50;
$carbon--teal-50;
color: $carbon--blue-50;
color: $carbon--teal-50;
`
);
Expand Up @@ -22,9 +22,9 @@ $ibm-colors__teal--50;
color: $ibm-colors__teal--50;
`,
`
$ibm-colors__blue-50;
$ibm-colors__teal-50;
color: $ibm-colors__blue-50;
color: $ibm-colors__teal-50;
$carbon--blue-50;
$carbon--teal-50;
color: $carbon--blue-50;
color: $carbon--teal-50;
`
);

0 comments on commit 3f81707

Please sign in to comment.