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 Pseudo Classes

          A good place to start

          Ok, so you've decided on a design, you've installed the classes, you have your colors picked out, you have your fonts picked out, and need to get started.

          I figured a good place to start off these actual docs is with the Pseudo Classes!

          Most clases having to do with Color or Fonts will react to the built in pseudo classes.

          The framework comes with classes to react to these 3 default staes:

          • Hover
          • Active
          • and Focus

          If that's not enough, take a look at the Customize section to add your own! It's as easy as adding the correct element-state name to this list in _variables.scss:

          File: _variables.scss
          $pseudo-classes: "hover", "active", "focus";

          So, for example if you want a target pseudo class, it's as easy as adding it to the list. However, given how particular the use-cases of many of these are, I think it would make more sense for most cases to take the opportuinty to write your own SCSS for these cases.

          Let's take a look at some examples. Maybe it would be fun to make a button:

          Here is the HTML:

          Html
          <button
          className="bg-green px-lg py-sm text-white cursor-pointer radius-md transition-fast-colors hover:bg-green-lt "
          >
          <span className="font-large text-lg">Hover Me!</span>
          </button>

          I would like to draw your attention to the hover:bg-green-lt class. This basically says to apply the bg-green-lt class on hover. Pretty simple huh?

          Let's try another button this time with an active state:

          Html
          <button
          className="bg-green px-lg py-md text-white cursor-pointer radius-md transition-fast active:bg-red-dk active:shadow-none"
          >
          <span className="text-lg">Press Me!</span>
          </button>

          This time the backgroud reacts to the active pseudo class. If your eyes are sharp, you might notice the transition class is different. The transition-fast class applies a fast transition to all properties, not just color, and will also work here. There are several different variations of the transition class, attempting to cover the most common, but not all of cases. If you have a rare case (like you need to transition 2 different properties differently, for example) that's a time to write some custom SCSS.

          For a final exmaple, let's try an input to see the Focus class in action:

          Html
          <input
          type="text"
          className="p-md text-md radius-md border border-default border-sm bg-white text-black focus:bg-blue focus:text-white"
          value="Focus Me"
          />

          I applied focus properties to the background and the text color sith the focus:bg-blue and focus:text-white classes.

          Hopefullly this has provided an instructive overview! Take a look at the Colors, Classes with Colors, and Additional Classes pages for more in-depth examples.

          © 2025 Simple Scss Utilities