Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

edit config of tailwind does not work as expected

Iam using tailwind with Laravel ,

in HTML

<h1 class="text-primary-700"> the text </h1> 

iam edited tailwind.config.js to be

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

module.exports = {
  content: [
        "./resources/**/*.blade.php",
        "./resources/**/*.js",
        "./resources/**/*.vue",
  ],
  theme: {
    extend: {
        colors: {
            primary: '#ccc',
        },

    },
  },
  plugins: [],
}

but the color did not change to #ccc .

am i doing something wrong , or is there any command I do have to run to apply the changes in the config file ?

>Solution :

I thint it should be like this

'primary': {
      50: '#1976dd',
      100: 'add color here',
      200: 'add color here',
      ...
      900: 'add color here',
      DEFAULT: '#ccc',
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading