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

    How to add quaternary color ?

    Framework
    3
    4
    1965
    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.
    • M
      mariaczi last edited by

      3 main colors in not enough for me.
      I want 4th color.
      I did try to just add $quaternary= #E28413 to app.variables.styl but it’s not generating classes with this color.
      I thought that it is iterating through all colors to generate necessary classes but looks like not?

      Jon 1 Reply Last reply Reply Quote 0
      • Jon
        Jon @mariaczi last edited by

        @mariaczi said in How to add quaternary color ?:

        I did try to just add $quaternary= #E28413 to app.variables.styl

        That is correct.

        It’s possible your project is configured to use the default Quasar stylesheet, rather than your custom theme…

        Have a look in the App.vue file for something like the code below…

        // === DEFAULT / CUSTOM STYLE ===
        // WARNING! always comment out ONE of the two require() calls below.
        // 1. use next line to activate CUSTOM STYLE (./src/themes)
        require('./themes/app.' + __THEME + '.styl')
        // 2. or, use next line to activate DEFAULT QUASAR STYLE
        // require('quasar/dist/quasar.' + __THEME + '.css')
        // ==============================
        

        Notice I’ve commented out option #2 (default quasar style) and enabled option #1 (custom theme styles)

        1 Reply Last reply Reply Quote 0
        • M
          mariaczi last edited by

          I am pretty sure I am using my build as I am changing primary/sec/tertiary still (looking for perfect set) and it work,
          but does not generate classes for $quaternary… any idea why ? @administrators ?

          1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin last edited by rstoenescu

            Overwrite $colors Stylus variable. Copy-paste from HERE, add your quaternary, and since you’re here, remove any unused colors to lower the CSS footprint 😉

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