You can use it to choose a color palette, view color suggestions, refine with the color picker, and apply background patterns. Custom Colors tools are available for themes with Custom Colors support. Click the More and Back buttons to scroll through all the available color palettes. Click a color to change it. To see which colors are mapped to which areas of your theme, click one of the color circles and the color role will appear below. To open the color picker, click on a color in the current palette and then click on the link that says pick your own color. The color picker has a safety net for accessibility. If you try to choose a link color that is too similar to the background color, the color picker will automatically add contrast to keep your text readable.
Not quite what you're looking for?
One of the cool things I picked up while working on my Gutenberg Development Course was how to set a default color palette for all blocks inside your theme. Interestingly, as far as I can tell, defining custom color schemes is something only a theme should do and this cannot be set from within a custom block. One of the features that blocks can have in WordPress is the ability change a color. For example, the core paragraph block has the ability to change the background and text color in the block inspector panel. One of the cool things you can do as a theme developer, is set your own custom color palette for your theme. This can help users choose colors that match the design of the theme. You can add as many colors as you like I think , but I would suggest limiting the selection to colors that work well with your theme. Using the color combinations set above, the default color options for blocks would now look like this. I think that if you have a theme with a specific color palette that you should definitely take the extra few minutes to set a default color scheme for the blocks.
You feel like you could add a more personal touch to your WordPress site by changing its color scheme. You should click on this option. This will open the color panel that you can use to add your own custom color or select the one from the palette. If you want to use the latter option, you can click anywhere you want on the palette, or simply drag the little circle around until you create the color that best suits your needs. Alternatively, you can also type the RGB code in the input field on the right. Right next to the palette, there is also an area where you can determine whether you want to go for the lighter or darker color shade. You can do this by dragging the slider up or down.
Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. I am developing a wordpress theme, and I like to add a COLOR option in customize page, so that admin can change background-color, text-color, link-color etc. I don't have any plugins installed in my wordpress directory except "Akismet", and except "mytheme" mytheme is the name of my theme all themes have that option in the customize page. Thank you. Customizer WordPress. People who code: we want your input. Take the Survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group.