Skip to content

Commit

Permalink
Remove transparent variable
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Nov 2, 2023
1 parent dab9989 commit c855971
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion packages/css/src/config/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ const variables = {
black: '#000000',
white: '#ffffff',
current: 'currentColor',
transparent: 'transparent',
slate: fillColorScale({
5: '#141e2b',
10: '#19212d',
Expand Down
3 changes: 1 addition & 2 deletions packages/css/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,8 @@ export class MasterCSS {
return b[0].localeCompare(a[0])
})
const rulesEntriesLength = rulesEntries.length

const colorVariableNames = Object.keys(this.colorVariables)
colorVariableNames.push('current', 'transparent')
colorVariableNames.push('current', 'currentColor', 'transparent')
rulesEntries
.forEach(([id, eachRuleOptions]: [string, Rule['options']], index: number) => {
this.ruleOptions.push(eachRuleOptions)
Expand Down

0 comments on commit c855971

Please sign in to comment.