nuxt / ui

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
4.03k stars 509 forks source link

variant and color on preset: table->default->sortButton causes warnings #780

Closed stlbucket closed 1 year ago

stlbucket commented 1 year ago

Environment


Version

v2.9.0

Reproduction

add table preset to app.config.ts as shown in description below

Description

image

when including the preset in app config, the folowing warnings get thrown:

image

this just started happening after upgrading to 2.8.1

if I remove the two highlighted settings, no warnings

Additional context

No response

Logs

No response

benjamincanac commented 1 year ago

You might need to add as const when defining those as since #692 color, variant, size are not strings anymore but enums.

sortButton: {
  color: 'gray' as const
}