Carbon Carbon: Changing predefined colors

Ehren

Administrator
Staff member
Customer
Messages
5,029
Website
www.xenfocus.com
By default, Carbon comes with predefined colors in the Color Picker (green, blue, purple, red, gold, bronze, silver).

To change these, open your extra.less file and paste the following:
Less:
.focus-color-picker('Yellow'; #957820; 3);

This code will add Yellow, with a hex code of #957820 to position 3 in your color picker.

Simply duplicate the code and replace the values if you want to change multiple colors.

The default color can be assigned via the style property: Xenfocus: Color Picker > Default color
 

Musiker Lanze

New Member
Customer
Messages
21
Hello Ehren

How can I insert several new colors or how can I change existing colors? Where can I find the hex codes for colors?
 

Musiker Lanze

New Member
Customer
Messages
21
So with the Carbon Style I got it right now, but when I insert the code in the Ortem Style, it shoots the entire start page. (see Pictures)
 

Attachments

  • Bildschirmfoto 2024-12-29 um 11.01.25.png
    Bildschirmfoto 2024-12-29 um 11.01.25.png
    95 KB · Views: 24
  • Bildschirmfoto 2024-12-29 um 10.56.50.png
    Bildschirmfoto 2024-12-29 um 10.56.50.png
    182.1 KB · Views: 24

Ehren

Administrator
Staff member
Customer
Messages
5,029
Website
www.xenfocus.com
So with the Carbon Style I got it right now, but when I insert the code in the Ortem Style, it shoots the entire start page. (see Pictures)
Hello,

This tutorial is only for Carbon. Ortem uses different code. You can use something like this instead:
Less:
.ortem-picker('Emerald'; #46a468; 6);

The first value is the name, the second is the color and the third is the position.
 
Top