MotivationInstallDocsCustomize
MotivationInstallDocsCustomize
  • Overview
  • Important! Purge!
  • Getting Started
    • Colors and Pseudo Classes
      • Colors
        • Color Shades

        • Psuedo Classes

      • Classes with Colors
        • Text Color

        • Background Color

        • Border Color

        • Outline Color

        • Text Decoration

        • Selection

      • Transitions
        • Transition Classes

        • With Pseudo Classes

      • Additional Classes
        • Font Size

        • Font Family

        • Font Weight

        • Text Decoration & Style

        • Border Width & Style

        • Outline Width & Style

    • Dark Mode
      • With JS

      • No JS

      • Grid
        • Class Definitions

        • Responsive Examples

        • Responsive Examples
          • Breakpoints

          • Max Breakpoints

          • Examples

          • Margin
            • Classes

            • Examples

          • Padding
            • Classes

            • Examples

          • Border Width
            • Classes

            • Examples

          • Outline Width
            • Classes

            • Outline Offset

            • Examples

          • Width
            • Rem Values

            • Percantage Values

            • Screen relative Values

            • XS - XL

          • Height
            • Rem Values

            • Percantage Values

            • Screen relative Values

            • XS - XL

          • Display
          • Flex
            • Flex Direction

            • Flex Wrap

            • Shrink & Grow

            • Justify Content

            • Align Content

            • Align Items

            • Align Self

            • Not Included

          • Text/Font
            • Font Size

            • Line Height

            • Letter Spacing

          • Position
            • Top Left Right & Bottom

          • Overflow
            • Overflow x & y

          • Box Sizing
        • Box-Shadow
          • Size

          • Color

          • Respoinsive

          • Psuedo States

          • Other Utilities
            • Text/Font
              • Align

              • Transform

              • Indent

              • Wrap

              • Font Family

              • Font Weight

              • Font Style

              • Text Decoration

              • Decoration Thickness

            • Border
              • Directional Style

            • Outline Style
            • Cursor
            • Opacity
            • Visibility
            • z-Index

          Simple Scss Utilities


          Overview of the Classes with Colors

          And how they react to element states

          Just about any class with color reacts to element state and comes with pseudo classes. The default colors are Red, Green, Blue, Default (which I use for text), Background (not shown because it would blend into the background), and Magenta, each generated with 4 other shades in addition to the base color.

          By default, the colors for Background and Default are overridden for dark-mode. Use the in the navbar to see switching modes. Any color can be overridden by adding/removing/changing name/changing value in the colors map in variables.scss. See the Customize section for more details.

          Text Color

          The text color classes have the form .text-[color] or .text-[color]-[shade], where the shades are dk (dark), dkr (darker), lt (light), and ltr (lighter)

          Class ExampleCSS ruleExample
          .text-redcolor: #cb3810;

          Text

          .text-defaultcolor: #252832;

          Text

          .text-greencolor: #589f50;

          Text

          .text-blue-dkrcolor: #1d5470;

          Text

          .text-blue-ltcolor: #498cae;

          Text

          .text-magenta-dkcolor: #a2366e;

          Text

          .text-magenta-ltrcolor: #d279a7;

          Text

          Using the Pseudo Class with Text Color Examples:

          Example

          Html

          Result

          Color with Hover

          <p
          class="
          font-bold
          cursor-pointer
          hover:text-red"
          >
          Hover Me
          </p>

          Hover Me

          Color with Active

          <p
          class="
          font-bold
          cursor-pointer
          active:text-green"
          >
          Press Me
          </p>

          Press Me

          Color with Focus

          <input
          class="
          w-6
          font-bold
          text-lg
          border-sm
          focus:text-magenta"
          value="Focus Me"
          />

          Background Color

          The background color classes have the form .bg-[color] or .bg-[color]-[shade], where the shades are dk (dark), dkr (darker), lt (light), and ltr (lighter)

          Class ExampleCSS ruleExample
          .bg-redbackground-color: #cb3810;
          .bg-defaultbackground-color: #252832;
          .bg-greenbackground-color: #589f50;
          .bg-blue-dkrbackground-color: #1d5470;
          .bg-blue-ltbackground-color: #498cae;
          .bg-magenta-dkbackground-color: #a2366e;
          .bg-magenta-ltrbackground-color: #d279a7;

          Using the Pseudo Class with Background Color:

          Example

          Html

          Result

          Background Color with Hover

          <p
          class="
          font-bold
          cursor-pointer
          hover:bg-red
          hover:text-white"
          >
          Hover Me
          </p>

          Hover Me

          Background Color with Active

          <p
          class="
          font-bold
          cursor-pointer
          active:bg-green"
          >
          Press Me
          </p>

          Press Me

          Background Color with Focus

          <input
          class="
          w-6
          font-bold
          text-lg
          border-sm
          focus:bg-magenta
          focus:text-white"
          value="Focus Me"
          />

          Border Color

          The border color classes have the form .border-[color] or .border-[color]-[shade], where the shades are dk (dark), dkr (darker), lt (light), and ltr (lighter).

          Also note that borders also havo to have a width to show up with a class like border-sm or border-lg, for example.

          Class ExampleCSS ruleExample
          .border-redborder-color: #cb3810;
          .border-defaultborder-color: #252832;
          .border-greenborder-color: #589f50;
          .border-blue-dkrborder-color: #1d5470;
          .border-blue-ltborder-color: #498cae;
          .border-magenta-dkborder-color: #a2366e;
          .border-magenta-ltrborder-color: #d279a7;

          Using the Pseudo Classes with Border Color:

          Example

          Html

          Result

          Border Color with Hover

          <p
          class="
          border-md
          cursor-pointer
          hover:border-red"
          >
          Hover Me
          </p>

          Hover Me

          Border Color with Active

          <p
          class="
          border-md
          cursor-pointer
          active:border-magenta"
          >
          Press Me
          </p>

          Press Me

          Border Color with Focus

          <input
          class="
          w-6
          border-md
          focus:border-green"
          value="Focus Me"
          />

          Outline Color

          The outline color classes have the form .outline-[color] or .outline-[color]-[shade], where the shades are dk (dark), dkr (darker), lt (light), and ltr (lighter).

          Also note that outline also havo to have a width AND a style to show up with a classes like outline-sm or outline-lg for the width, and outline-solid for the style, for example.

          Class ExampleCSS ruleExample
          .outline-redoutline-color: #cb3810;
          .outline-defaultoutline-color: #252832;
          .outline-greenoutline-color: #589f50;
          .outline-blue-dkroutline-color: #1d5470;
          .outline-blue-ltoutline-color: #498cae;
          .outline-magenta-dkoutline-color: #a2366e;
          .outline-magenta-ltroutline-color: #d279a7;

          Using the Pseudo Classes with Outline Color:

          Example

          Html

          Result

          Outline Color with Hover

          <p
          class="
          cursor-pointer
          outline-xl
          outline-groove
          outline-white
          hover:outline-red"
          >
          Hover Me
          </p>

          Hover Me

          Outline Color with Active

          <p
          class="
          cursor-pointer
          outline-xl
          outline-dotted
          outline-blue
          active:outline-red"
          >
          Press Me
          </p>

          Press Me

          Outline Color with Focus

          <input
          class="
          w-6
          cursor-pointer
          outline-xl
          outline-inset
          outline-green
          focus:outline-magenta"
          value="Focus Me"
          />

          Text Decoration Color

          (ToDo: Fix Text Decloration conflicts with style and property)

          The text-decoration color classes have the form .decoration-[color] or .decoration-[color]-[shade], where the shades are dk (dark), dkr (darker), lt (light), and ltr (lighter).

          Sometimes if you switch a decoration style with a pseudo class from underline to overline for example, it won't inherit the color on all browsers. But that is a really rare use case that can be solved with some custom scss however.

          Class ExampleCSS ruleExample
          .decoration-redtext-decoration-color: #cb3810;

          Text

          .decoration-defaulttext-decoration-color: #252832;

          Text

          .decoration-greentext-decoration-color: #589f50;

          Text

          .decoration-blue-dkrtext-decoration-color: #1d5470;

          Text

          .decoration-blue-lttext-decoration-color: #498cae;

          Text

          .decoration-magenta-dktext-decoration-color: #a2366e;

          Text

          .decoration-magenta-ltrtext-decoration-color: #d279a7;

          Text

          Using the Pseudo Classes with Decoration Color:

          Example

          Html

          Result

          Outline Color with Hover

          <p
          class="
          cursor-pointer
          decoration-xl
          text-line-through
          decoration-green
          hover:decoration-red"
          >
          Hover Me
          </p>

          Hover Me!

          Outline Color with Active

          <p
          class="
          cursor-pointer
          decoration-xl
          text-overline
          decoration-blue
          active:decoration-magenta"
          >
          Press Me
          </p>

          Press Me!

          Outline Color with Focus

          <textarea
          class="
          w-6
          outline-sm
          outline-solid
          decoration-xl
          text-underline
          decoration-magenta-dk
          focus:decoration-green"
          value="Focus Me!"
          />

          Selection Color

          The selections color classes have the form .decoration-[color] or .decoration-[color]-[shade], where the shades are dk (dark), dkr (darker), lt (light), and ltr (lighter).

          Sometimes if you switch a decoration style with a pseudo class from underline to overline for example, it won't inherit the color on all browsers. But that is a really rare use case that can be solved with some custom scss however.

          Selection Text Color

          Class ExampleCSS ruleExample
          .selection-color-redcolor: #cb3810;

          Select Me

          .selection-color-defaultcolor: #252832;

          Select Me

          .selection-color-greencolor: #589f50;

          Select Me

          .selection-color-blue-dkrcolor: #1d5470;

          Select Me

          .selection-color-blue-ltcolor: #498cae;

          Select Me

          .selection-color-magenta-dkcolor: #a2366e;

          Select Me

          .selection-color-magenta-ltrcolor: #d279a7;

          Select Me

          Selection Text Background

          In addition to the color, the background can be changed

          Class ExampleCSS ruleExample
          .selection-bg-redbackground-color: #cb3810;

          Select Me

          .selection-bg-defaultbackground-color: #252832;

          Select Me

          .selection-bg-greenbackground-color: #589f50;

          Select Me

          .selection-bg-blue-dkrbackground-color: #1d5470;

          Select Me

          .selection-bg-blue-ltbackground-color: #498cae;

          Select Me

          .selection-bg-magenta-dkbackground-color: #a2366e;

          Select Me

          .selection-bg-magenta-ltrbackground-color: #d279a7;

          Select Me

          For best results, combine the two! Try selecting the large text below

          Select Me!

          Here is the Html:

          Html
          <p
          class="text-2xl py-xl font-header align-center selection-bg-magenta selection-color-white"
          value="Focus Me"
          />

          Using the Pseudo Classes with Selection Color:

          Example

          Html

          Result

          Selection with Hover

          <p
          class="
          text-lg
          hover:selection-bg-blue
          hover:selection-color-green
          w-7/10"
          >
          Select some text and Hover
          </p>

          Select some text and Hover

          Selection with Active

          <p
          class="
          text-lg
          active:selection-bg-blue
          active:selection-color-green
          w-7/10"
          >
          Select some text and Press!
          </p>

          Select some text and Press!

          Focus works too I guess haha

          <input
          class="
          border-sm
          text-md
          focus:selection-bg-magenta
          focus:selection-color-white
          w-7/10"
          value="Focus Me"
          />

          A natural next topic would be transitions! (todo: transitions section)

          © 2025 Simple Scss Utilities