Skip to content
Prev Previous commit
Next Next commit
Convert to number instead of typecast
  • Loading branch information
adamwathan committed Nov 7, 2024
commit cec060be38547bdbaa56942ca9dd6b89b81139d5
4 changes: 2 additions & 2 deletions packages/tailwindcss/src/compat/flatten-color-palette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export function flattenColorPalette(colors: Colors) {
}

if ('__CSS_VALUES__' in colors) {
for (let [key, value] of Object.entries(colors.__CSS_VALUES__) as any as [string, number][]) {
if ((value & ThemeOptions.DEFAULT) === 0) {
for (let [key, value] of Object.entries(colors.__CSS_VALUES__)) {
if ((Number(value) & ThemeOptions.DEFAULT) === 0) {
result[key] = colors[key] as string
}
}
Expand Down