No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Convert colour palette name to hex code

    Help
    2
    2
    254
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eyee last edited by

      Is there a Quasar function that can convert colour palette name to hex code? For example, colors.nameToHex('orange-10') returns “#E65100”

      I’m trying to customize Google Chart color. The colors setting takes standard color names or hex codes. Currently, I’m hard-coding the hex codes. ☹

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @eyee last edited by metalsadman

        @eyee check the color utils if there’s one for what you need https://quasar.dev/quasar-utils/color-utils#Introduction

        1 Reply Last reply Reply Quote 0
        • First post
          Last post