Docs
Joystick's Color Palette

The Joystick's UI Framework provides you with a wide palette of carefully selected colors to choose from for your project.

Default Colors

Joystick's color theme is based primarily on two main colors - $color-base and $color-alt - along with various shades of grey.

By default, $color-base and $color-alt are set to $bluebonnet and $mint respectively. The color theming of every component in Joystick - from buttons and forms to links and navbars - is derived from these two main colors.

In addition, Joystick also offers three "Stoplight Colors" to be used to convey states: $color-error, $color-warning, and $color-success.

  • Default Color Palette $color-base
  • $color-alt
  • $white
  • $grey
  • $grey-darker
  • Text Colors $color-text
  • $color-text-weak
  • $color-text-disabled
  • Stoplight Colors $color-error
  • $color-warning
  • $color-success

Color Palette

Joystick offers a palette of 10 carefully selected base colors - each with 7 shades of lightness - and a set of $grey shades as well.

Our nature-inspired color names can be accessed in Sass using their base name $bluebonnet along with an optional shade suffix of -light, -lighter, -lightest, -dark, -darker, -darkest. e.g. $plum-light, $pine-darker, or $raspberry-lightest.

  • Mint $mint
  • $mint-lightest
  • $mint-lighter
  • $mint-light
  • $mint
  • $mint-dark
  • $mint-darker
  • $mint-darkest
  • Pine $pine
  • $pine-lightest
  • $pine-lighter
  • $pine-light
  • $pine
  • $pine-dark
  • $pine-darker
  • $pine-darkest
  • Sky $sky
  • $sky-lightest
  • $sky-lighter
  • $sky-light
  • $sky
  • $sky-dark
  • $sky-darker
  • $sky-darkest
  • Bluebonnet $bluebonnet
  • $bluebonnet-lightest
  • $bluebonnet-lighter
  • $bluebonnet-light
  • $bluebonnet
  • $bluebonnet-dark
  • $bluebonnet-darker
  • $bluebonnet-darkest
  • Berry $berry
  • $berry-lightest
  • $berry-lighter
  • $berry-light
  • $berry
  • $berry-dark
  • $berry-darker
  • $berry-darkest
  • Plum $plum
  • $plum-lightest
  • $plum-lighter
  • $plum-light
  • $plum
  • $plum-dark
  • $plum-darker
  • $plum-darkest
  • Raspberry $raspberry
  • $raspberry-lightest
  • $raspberry-lighter
  • $raspberry-light
  • $raspberry
  • $raspberry-dark
  • $raspberry-darker
  • $raspberry-darkest
  • Cherry $cherry
  • $cherry-lightest
  • $cherry-lighter
  • $cherry-light
  • $cherry
  • $cherry-dark
  • $cherry-darker
  • $cherry-darkest
  • Tangerine $tangerine
  • $tangerine-lightest
  • $tangerine-lighter
  • $tangerine-light
  • $tangerine
  • $tangerine-dark
  • $tangerine-darker
  • $tangerine-darkest
  • Lime $lime
  • $lime-lightest
  • $lime-lighter
  • $lime-light
  • $lime
  • $lime-dark
  • $lime-darker
  • $lime-darkest
  • Grey $grey
  • $grey-lightest
  • $grey-lighter
  • $grey-light
  • $grey
  • $grey-dark
  • $grey-darker
  • $grey-darkest

    Theming

    If you would like to use colors other than $bluebonnet and $mint as your Base and Alt colors to theme your application, you can change the default colors so long as you are using the Sass version of Joystick in your project.

    By default, the Base and Alt colors are mapped to Bluebonnet and Mint respectively.

    • Base $color-base
    • $color-base-lightest
    • $color-base-lighter
    • $color-base-light
    • $color-base
    • $color-base-dark
    • $color-base-darker
    • $color-base-darkest
    • Alt $color-alt
    • $color-alt-lightest
    • $color-alt-lighter
    • $color-alt-light
    • $color-alt
    • $color-alt-dark
    • $color-alt-darker
    • $color-alt-darkest

      If you would like to use different colors from the Joystick palette to theme your app, simply include the following Sass at the beginning of your project's Sass file:

      /* Import the Joystick color palette */
      @import 'PATH_TO_JOYSTICK/joystick-design-system/variables/palette';
      
      /* Redefine your base and alt colors... */
      $color-base:       $berry !global;
      $color-alt:        $raspberry !global;
      
      /* ... along with their corresponding shades. */
      $color-base-lightest:     $berry-lightest !global;
      $color-base-lighter:      $berry-lighter !global;
      $color-base-light:        $berry-light !global;
      $color-base-dark:         $berry-dark !global;
      $color-base-darker:       $berry-darker !global;
      $color-base-darkest:      $berry-darkest !global;
      
      $color-alt-lightest:      $raspberry-lightest !global;
      $color-alt-lighter:       $raspberry-lighter !global;
      $color-alt-light:         $raspberry-light !global;
      $color-alt-dark:          $raspberry-dark !global;
      $color-alt-darker:        $raspberry-darker !global;
      $color-alt-darkest:       $raspberry-darkest !global;
      
      /* Import this file to bring in the rest of Joystick */
      @import 'PATH_TO_JOYSTICK/joystick-design-system/joystick-theme';
      
      /* The rest of your project's Sass goes here */

      This would result in your project using $berry (and its shades) as the Base color and $raspberry (and its shades) as the Alt color.

      • Base $color-base
      • $color-base-lightest
      • $color-base-lighter
      • $color-base-light
      • $color-base
      • $color-base-dark
      • $color-base-darker
      • $color-base-darkest
      • Alt $color-alt
      • $color-alt-lightest
      • $color-alt-lighter
      • $color-alt-light
      • $color-alt
      • $color-alt-dark
      • $color-alt-darker
      • $color-alt-darkest

        Tips for Theming

        • It is strongly advised that you do not use $lime or $cherry as either your Base or Alt colors as they are used to indicate Error and Success states. This would also apply to $tangerine, but is more forgivable.

        Color Contrast

        The Web Content Accessibility Guidelines (WCAG) 2.0 level AA requires a minimum contrast ratio of 4.5 (4.5:1) for normal text and 3 for large text. We have fine-tuned all of the Joystick's color shades so that you can safely use any -darkest shade on any -lighter or -lightest. The inverse is also true: any -lightest shade can be used on any -darker or -darkest shade.

        Here are the contrast ratio values for all of the color shade combinations:

        Darkest on Lighter 4.50
        Lightest on Darker 4.55
        Darkest on Lighter 4.84
        Lightest on Darker 4.50
        Darkest on Lighter 4.50
        Lightest on Darker 4.50
        Darkest on Lighter 6.68
        Lightest on Darker 7.24
        Darkest on Lighter 6.65
        Lightest on Darker 9.08
        Darkest on Lighter 6.33
        Lightest on Darker 7.48
        Darkest on Lighter 6.32
        Lightest on Darker 7.48
        Darkest on Lighter 5.06
        Lightest on Darker 6.21
        Darkest on Lighter 4.50
        Lightest on Darker 4.50
        Darkest on Lighter 4.50
        Lightest on Darker 4.50
        Darkest on Lighter 9.36
        Lightest on Darker 8.35