Skip to content

Customize dark mode styles for floating labels on selects... #2071

Discussion options

You must be logged in to vote

Hi! You can use class customization for that. Checkout the API tab to see what you can customize https://tw-elements.com/docs/standard/forms/select/#docsTabsAPI

    <select 
      data-te-select-init
      data-te-class-select-label="pointer-events-none absolute top-0 left-3 mb-0 max-w-[90%] origin-[0_0] truncate text-gray-500 transition-all duration-200 ease-out peer-focus:scale-[0.8] peer-data-[te-input-state-active]:scale-[0.8] motion-reduce:transition-none dark:text-gray-200 dark:peer-focus:text-gray-200 data-[te-input-state-active]:scale-[0.8]"
      >
      ...

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@MacelinCane
Comment options

Answer selected by MacelinCane
Comment options

You must be logged in to vote
1 reply
@juujisai
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants