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

    Create custom colors to use with components

    Framework
    1
    1
    507
    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.
    • N
      NoRabbit last edited by benoitranque

      a simple Stylus code to create your own colors to use with components like: class=“text-cv-blue-1”.
      I think it simplifies the creation of new colors. Could also be used to create the different tints for each color…

      $cv = {
        id: "cv",
        color: {
          blue-1: #97d2f0,
          blue-2: #30b1ff,
          blue-3: #009ce0,
          blue-4: #0285be,
          blue-5: #235775,
          blue-6: #323437,
          blue-7: #2a749a,
        }
      }
      
      // generate colors from object
      for name, color in $cv.color
        .bg-{$cv.id}-{name}
          background-color color
        .text-{$cv.id}-{name}
          color color
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post