kirby cms colors

Kirby CMS: Exploring the Color Palette

By Melissa Williams
AD

Discover the vibrant world of Kirby CMS, where color not only enhances aesthetics but also drives functionality and user experience. Understanding Kirby CMS colors can significantly improve your site's appeal and usability. Let's delve into the spectrum of colors that make this CMS a design lover's delight.

Kirby CMS offers an array of built-in colors, but its true power lies in its flexibility. It empowers users to customize colors, creating a unique visual identity for their sites. In this article, we'll explore Kirby CMS colors, their usage, and how to manipulate them for tailor-made designs.

Understanding Kirby CMS Colors

Kirby CMS introduces a set of default colors, each serving a purpose. These colors are carefully chosen to ensure readability, accessibility, and aesthetic harmony. They include:

AD
My puffballs!!
My puffballs!!
Kirby color Palette
Kirby color Palette
Kirby is the CMS that adapts to you
Kirby is the CMS that adapts to you
  • Primary: Typically used for buttons, CTAs, and important UI elements.
  • Secondary: Used for secondary UI elements and background colors.
  • Success: Indicates successful actions or positive feedback.
  • Info: Used for neutral information or advisory messages.
  • Warning: Draws attention to potential issues or errors.
  • Danger: Indicates errors or critical issues that require immediate attention.
  • Light and Dark: Used for subtle shades and high-contrast backgrounds.

The default colors are designed to be universally accessible, but Kirby CMS also ensures compliance with WCAG color contrast guidelines, allowing for further color customization.

Customizing Colors in Kirby CMS

To customize Kirby CMS colors, you can manipulate the $colors variable in the kirby/posable/css/main.scss file. This file is written in Sass, a powerful CSS preprocessor.

Kirby
Kirby
many different colored cartoon characters with faces
many different colored cartoon characters with faces
an image of the different characters in mario kart
an image of the different characters in mario kart

Here's a simple example of how to change the primary color:

$colors: (
  primary: #2E86DE,
  ...
);

In this example, we've changed the primary color from the default ($colors['primary']) to a hex color code of #2E86DE. Remember, any color changes should maintain sufficient contrast for accessible design.

AD

Using Kirby CMS Color Variables

To keep your code organized and maintainable, use Kirby CMS color variables. These variables are defined in kirby/posable/css/_variables.scss.

many different colored cartoon characters are shown in the same color and size as they appear to be smiling
many different colored cartoon characters are shown in the same color and size as they appear to be smiling
several different colored objects are shown in this cartoon character's head and body shapes
several different colored objects are shown in this cartoon character's head and body shapes
the different types of pacman characters are depicted in this cartoon character's heads
the different types of pacman characters are depicted in this cartoon character's heads
many rows of different colored buttons on a white background with the same color as each button
many rows of different colored buttons on a white background with the same color as each button
an image of the different colors and textures in mario karton's island
an image of the different colors and textures in mario karton's island
a bunch of different colored cartoon animals on a white background and one is pink, the other is blue
a bunch of different colored cartoon animals on a white background and one is pink, the other is blue

Instead of hard-coding a color value, you can reference a color variable, like so:

button {
  background-color: $primary;
}

This ensures that if you change the primary color, all buttons will automatically update, promoting a consistent design throughout your site.

AD

Exploring Color Palettes for Kirby CMS

Kirby CMS offers several pre-designed color palettes, each serving a unique aesthetic. These palettes are not strict rules but inspiration to guide your color decisions.

an image of some old school video game characters in different colors and sizes, with the words super mario written on them
an image of some old school video game characters in different colors and sizes, with the words super mario written on them
several different colored stars are shown in this image
several different colored stars are shown in this image
Sr. Pelo Kirb
Sr. Pelo Kirb

You can explore these palettes in the kirby/posable/css/main.scss file. Each palette is commented with a descriptive name, like // -- Palette: Ocean --.

Creating Your Own Palette

Kirby CMS allows complete creative freedom, enabling you to craft your own unique palette. To create a new palette, simply add your desired colors to the $colors variable and use them consistently throughout your design.

AD

Let's say you want to create a citrus-inspired palette. You could define your colors like so:

$colors: (
  primary: #FF9900,
  secondary: #FFE5B4,
  success: #D0F0C0,
  info: #B0E0E6,
  warning: #FFB66D,
  danger: #F08080,
  light: #FFFACD,
  dark: #005F00,
);

Once defined, you can use these colors across your site, ensuring a cohesive, citrus-infused design.

Color Contrast and Accessibility

While customizing Kirby CMS colors is exciting, it's crucial to maintain sufficient color contrast for accessible design. Tools like the WebAIM Contrast Checker can help ensure your color combinations meet WCAG guidelines.

Inaccessible design not only excludes users with visual impairments but also users with ordinarily functioning eyes in adverse lighting conditions or in motion. Therefore, accessibility should be a core aspect of your color strategy.

In conclusion, Kirby CMS colors aren't just aesthetic elements; they're powerful tools that drive user experience and accessibility. With a solid understanding of their role and the freedom to customize, you can create engaging, accessible sites that showcase your unique style. So go ahead, explore the spectrum, and let your creativity shine.

AD