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 Additional pseudo-classes

          Other Classes that respond to Pseudo States

          The additional Classes that respond to pseudo states are

          • Font Size
          • Font Family
          • Font Weight
          • Text Decoration
          • Border and Outline Classes

          Not all of these can be transitioned, although maybe some can be faked - for example you can fake smooth font weight transtitions by getting creative with text shadow - (but that's kind of weird for a framework I think, but maybe a good opportunity to write some custom SCSS if you want it). But some of these can, I'll try to include transitions for the transitionable properties in the examples.

          Of course everything on this page can be customized for your own theme in the _variables.scss and see the (Customize)[/customize/] section of the docs for more details!

          Let's start with Font Size!

          Font Size

          Font size is supported by pseudo classes, although it's a bit of a special use case. I thought it was useful enough to include, although be careful going too wild because they might conflict with any responsive font size styles. Going wild with font size and pseudo classes would likely be best handeled by writing some custom SCSS for most cases I can imagine, although utility classes probably still come in handy if you just need some styles that aren't gonna be too eclectic:

          Class ExampleCSS ruleExample
          .text-xsfont-size: 0.375rem;

          Font Size XS

          .text-smfont-size: 0.625rem;

          Font Size SM

          .text-mdfont-size: 0.875rem;

          Font Size Med

          .text-basefont-size: 1rem;

          Font Size Base

          .text-lgfont-size: 1.25rem;

          Font Size Large

          .text-xlfont-size: 1.5rem;

          Size XL

          .text-2xlfont-size: 1.75rem;

          Size 2XL

          .text-3xlfont-size: 3rem;

          3XL

          .text-4xlfont-size: 4rem;

          4xL

          .text-5xlfont-size: 5rem;

          5XL

          Pseudo Class Examples:

          Example

          Html

          Result

          Font Size with Hover

          <p
          class="
          text-lg
          hover:text-xl
          cursor-pointer"
          >
          Hover Me
          </p>

          Hover Me

          Font Size with Active

          <p
          class="
          text-lg
          active:text-xl
          cursor-pointer"
          >
          Press me
          </p>

          Press Me

          Text Size with Focus

          <input
          class="
          text-lg
          active:text-xl
          border-sm
          w-1/2"
          value="Focus Me"
          />

          Font Family

          Font family can also respond to Pseudo States. The framework comes with 3 default font families, probably one of the first things one would want to do when starting a project is change the fonts to their theme, which can be done in the _variables.scss file (see Customize section). I purposefully choose a basic font that one would probably want to edit to drive this point home haha (although I it works good for this site!)

          Class ExampleCSS ruleExample
          .font-defaultfont-family: "Lato", sans-serif;

          Font Default

          .font-largefont-family: "Francois One", sans-serif;

          Font Large

          .font-headerfont-family: "Bebas Neue", sans-serif;

          Font Header

          Examples:

          Example

          Html

          Result

          Font Family with Hover

          <p
          class="
          hover:font-large
          cursor-pointer"
          >
          Hover Me
          </p>

          Hover Me

          Font Family with Active

          <p
          class="
          active:font-header
          cursor-pointer"
          >
          Press me
          </p>

          Press Me

          Font Family with Focus

          <input
          class="
          focus:font-large
          border-sm
          w-6/10"
          value="Focus Me!"
          />

          Font Weight

          Font weight can't be transitioned, although it can be faked with a text shadow. However, this framework provides these three classes by default. Not all fonts support weights, some support more than 3 weights, but again that all can be editied in the _variables.scss file.

          Class ExampleCSS ruleExample
          .font-lightfont-weight: 200;

          Font Light

          .font-normalfont-weight: 400;

          Font Normal

          .font-boldfont-weight: 700;

          Font Bold

          And here are some Examples:

          Example

          Html

          Result

          Font Weight with Hover

          <p
          class="
          hover:font-light
          cursor-pointer"
          >
          Hover Me
          </p>

          Hover Me

          Font Weight with Active

          <p
          class="
          active:font-bold
          cursor-pointer"
          >
          Press me
          </p>

          Press Me

          Font Weight with Focus

          <input
          class="
          focus:font-bold
          border-sm
          w-6/10"
          value="Focus Me!"
          />

          Text Decoration and Style

          Here are the classes for text decoration and text decoration style. Text decoration can also have a width and color, but notice that for each element state the thickness needs to be specified or it'll revert to the default thickness for that particular state. Also, not every style will work with every type of decoration. Hey, that's CSS, what can I say! But these are all kind of rarely used edge cases, just demonstrated here.

          First, the Classes.

          Text Decoration:

          Class ExampleCSS ruleExample
          .text-nonetext-decoration: none;

          Font Light

          .text-underlinetext-decoration: underline;

          Font Normal

          .text-overlinetext-decoration: overline;

          Font Bold

          .text-underovertext-decoration: underline overline;

          Font Bold

          .text-line-throughtext-decoration: line-through;

          Font Bold

          Text Decoration Style:

          Class ExampleCSS ruleExample
          .decoration-solidtext-decoration-style: solid;

          Font Light

          .decoration-doubletext-decoration-style: double;

          Font Normal

          .decoration-dottedtext-decoration-style: dotted;

          Font Bold

          .decoration-dashedtext-decoration-style: dashed;

          Font Bold

          .decoration-wavytext-decoration-style: wavy;

          Font Bold

          Decoration Examples:

          Example

          Html

          Result

          Decoration with Hover

          <p
          class="
          text-underover
          hover:text-line-through
          decoration-xl
          hover:decoration-xl"
          >
          Hover Me!!
          </p>

          Hover Me

          Decoration with Active

          <p
          class="
          text-overline
          decoration-xl
          active:text-underline
          active:decoration-xl"
          >
          Press me
          </p>

          Press Me

          Decoration Style Examples:

          Example

          Html

          Result

          Decoration Style with Hover

          <p
          class="
          text-underline
          decoration-double
          decoration-xl
          hover:decoration-dashed
          hover:decoration-xl"
          >
          Hover Me
          </p>

          Hover Me

          Decoration Style with Focus

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

          Border Width and Style

          Border width classes cover every direction, while border style does not. While it is possible to want borders with different styles in different directions, and because responsive styles can conflect with element states, these are specific cases I felt are probably best handled with custom SCSS. Otherwise, I feel like these classes will cover the vast majority of use cases.

          For more info on responsivity and customization, see the Responsive and Customize sections. The default values are as follows:

          Border Width:

          Class ExampleCSS ruleExample
          .border-0border-width: 0;

          No Border

          .border-smborder-width: 1px;

          Border Small

          .border-mdborder-width: 3px;

          Border Mdd

          .border-lgborder-width: 5px;

          Border Large

          .border-xlborder-width: 7px;

          Border Xl

          .bx-0border-left-width: 0; : 
          ;
          border-left-width: 0; : 
          ;

          No X Border

          .bx-smborder-left-width: 1px; : 
          ;
          border-left-width: 1px; : 
          ;

          Border x Small

          .bx-mdborder-left-width: 3px; : 
          ;
          border-left-width: 3px; : 
          ;

          Border x Med

          .bx-lgborder-left-width: 5px; : 
          ;
          border-left-width: 5px; : 
          ;

          Border x Large

          .bx-xlborder-left-width: 7px; : 
          ;
          border-left-width: 7px; : 
          ;

          Border x Xl

          .by-0border-top-width: 0; : 
          ;
          border-top-width: 0; : 
          ;

          No Y Border

          .by-smborder-top-width: 1px; : 
          ;
          border-top-width: 1px; : 
          ;

          Border y Small

          .by-mdborder-top-width: 3px; : 
          ;
          border-top-width: 3px; : 
          ;

          Border y Med

          .by-lgborder-top-width: 5px; : 
          ;
          border-top-width: 5px; : 
          ;

          Border y Large

          .by-xlborder-top-width: 7px; : 
          ;
          border-top-width: 7px; : 
          ;

          Border y Xl

          .bt-0border-top-width: 0px;

          No top Border

          .bt-smborder-top-width: 1px;

          Border Top Sm

          .bt-mdborder-top-width: 3px;

          Border Top Med

          .bt-lgborder-top-width: 5px;

          Border Top Large

          .bt-xlborder-top-width: 7px;

          Border Top XL

          .bb-0border-bottom-width: 0px;

          No bottom Border

          .bb-smborder-bottom-width: 1px;

          Border Bottom Sm

          .bb-mdborder-bottom-width: 3px;

          Border Bottom Med

          .bb-lgborder-bottom-width: 5px;

          Border Bottom Large

          .bb-xlborder-bottom-width: 7px;

          Border Bottom XL

          .bl-0border-left-width: 0px;

          No left Border

          .bl-smborder-left-width: 1px;

          Border Left Sm

          .bl-mdborder-left-width: 3px;

          Border Left Med

          .bl-lgborder-left-width: 5px;

          Border Left Large

          .bl-xlborder-left-width: 7px;

          Border Left XL

          .br-0border-right-width: 0px;

          No Right Border

          .br-smborder-right-width: 1px;

          Border Right Sm

          .br-mdborder-right-width: 3px;

          Border Right Med

          .br-lgborder-right-width: 5px;

          Border Right Large

          .br-xlborder-right-width: 7px;

          Border Right XL

          Border Style:

          Class ExampleCSS ruleExample
          .border-solidborder-style: solid;

          Border Solid

          .border-dashedborder-style: dashed;

          Border Dashed

          .border-dottedborder-style: dotted;

          Border Dotted

          .border-grooveborder-style: groove;

          Border Groove

          .border-insetborder-style: inset;

          Border Inset

          Border Width Pseudo Class Examples:

          Example

          Html

          Result

          Border width with hover

          <p
          class="
          cursor-pointer
          p-sm
          border-lg
          by-xl
          hover:border-sm
          hover:bx-xl"
          >
          Hover Me
          </p>

          Hover Me

          Border width with Active

          <p
          class="
          p-sm
          cursor-pointer
          border-md
          border-magenta
          border-inset
          bx-xl
          by-xl
          active:border-xl
          active:bx-0
          active:by-0
          active:border-green"
          >
          Press Me
          </p>

          Press Me

          Border Style Pseudo Class Examples:

          Example

          Html

          Result

          Decoration Style with Hover

          <p
          class="
          p-sm
          border-groove
          hover:border-dashed"
          >
          Hover Me
          </p>

          Hover Me

          Decoration Style with Focus

          <input
          class="
          p-sm
          w-4
          border-lg
          border-inset
          focus:border-dotted
          focus:border-red"
          value="Focus Me"
          />

          Outline Width and Style

          Like border, outlines have widths and styles. Unlike border, outline classes can't be applied per direction, making them a bit less time consuming to generate and document haha. Also notice that in the examples, the style has to be included or it won't show up. I did include pseudo classes with outline, so they can respond to hover, focus, etc.

          Outline WIdth

          Class ExampleCSS ruleExample
          .outline-0outline-width: 0;
          .outline-smoutline-width: 1px;
          .outline-mdoutline-width: 3px;
          .outline-lgoutline-width: 5px;
          .outline-xloutline-width: 7px;

          Outline Style

          (I addded the blue-ltr color and made the width outline-xl to make it a bit easier to see)

          Class ExampleCSS ruleExample
          .outline-noneoutline-style: none;
          .outline-dottedoutline-style: dotted;
          .outline-solidoutline-style: solid;
          .outline-grooveoutline-style: groove;
          .outline-insetoutline-style: inset;

          Outline Width Pseudo Class Examples:

          Example

          Html

          Result

          Outline width with hover

          <p
          class="
          outline-sm
          outline-solid
          hover:outline-xl"
          >
          Outline
          </p>

          Hover Me

          Border width with Active

          <p
          class="
          outline-sm
          outline-dashed
          outline-blue-ltr
          hover:outline-xl"
          >
          Press Me
          </p>

          Press Me

          Outline Style Pseudo Class Examples:

          Example

          Html

          Result

          Decoration Style with Hover

          <p
          class="
          outline-xl
          outline-groove
          outline-blue-ltr
          hover:outline-inset"
          >
          Hover Me
          </p>

          Hover Me

          Decoration Style with Focus

          <input
          class="
          w-4
          outline-xl
          outline-solid
          outline-blue-ltr
          focus:outline-dotted"
          value="Focus Me"
          />

          © 2025 Simple Scss Utilities