Skip to content

Commit 9563726

Browse files
committed
rename USED to STATIC
1 parent 6b48019 commit 9563726

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/tailwindcss/src/ast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export function optimizeAst(ast: AstNode[], designSystem: DesignSystem) {
393393
next: for (let [parent, declarations] of cssThemeVariables) {
394394
for (let declaration of declarations) {
395395
let options = designSystem.theme.getOptions(declaration.property)
396-
if (options & ThemeOptions.USED) continue
396+
if (options & ThemeOptions.STATIC) continue
397397

398398
// Remove the declaration (from its parent)
399399
let idx = parent.indexOf(declaration)

packages/tailwindcss/src/theme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const enum ThemeOptions {
66
INLINE = 1 << 0,
77
REFERENCE = 1 << 1,
88
DEFAULT = 1 << 2,
9-
USED = 1 << 3,
9+
STATIC = 1 << 3,
1010
}
1111

1212
// In the future we may want to replace this with just a `Set` of known theme
@@ -186,7 +186,7 @@ export class Theme {
186186
let key = unescape(this.#unprefixKey(themeKey))
187187
let value = this.values.get(key)
188188
if (!value) return
189-
value.options |= ThemeOptions.USED
189+
value.options |= ThemeOptions.STATIC
190190
}
191191

192192
resolve(candidateValue: string | null, themeKeys: ThemeKey[]): string | null {

0 commit comments

Comments
 (0)