nuxt / ui

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

Nuxt UI - Textarea font size not working #2273

Closed mdthansil closed 1 month ago

mdthansil commented 1 month ago

Environment

Version

2.18.6

Reproduction

https://stackblitz.com/edit/nuxt-ui-jideye

Description

I've been trying to add font size to a textarea using Nuxt UI, but I'm having trouble getting it to work. For testing purposes, I've tried almost all available options, but none of them seem to be working.


<UTextarea
  :rows="10"
  v-model="encoderForm.input"
  placeholder="Text to encode"
  :ui="{
    placeholder: 'text-[40px] text-red-500',
    base: 'text-[40px]',
    form: 'text-[40px]',
    rounded: 'rounded-md text-[40px]',
  }" 
/>

### Additional context

_No response_

### Logs

_No response_
mdthansil commented 1 month ago

It's now working after adding important by placing an exclamation mark before the class name base: '!text-[40px]',