Have somebody seen this fault on colour picker

You’re going to have to post more details than just a screenshot. What are you trying to do, what have you tried, what worked, what didn’t work, did it work at some point, etc.?

Hi Pettersenco,

My initial guess (by the looks of the errormessage) is that you need to use @Model.Colour1 instead of @model.colour1 (so the casing is different).

/Chriztian

Hi, which version of Umbraco are you doing the tutorial with?

It was created for Umbraco 13, so if you are using a newer version you might encounter issues like this.

Also have you seen the articles that go with each video? The code for each video is at the bottom of the page Episode 2 | codeshare

Kind regards

Paul

1 Like

Hi Pettersenco

The value of the color picker doesn’t include the # character. So you should put your css as:

--color1: #@Model.Colour1;
--color2: #@Model.Colour2;

etc.

If you want to learn more, you can see the documentation for the color picker here: Color Picker | Umbraco CMS