Generalizing this theme for usage
  • Delete all posts
  • Update the Site Logo below (favicon, square-based)
  • Empty Media Library, besides the Site Logo you just uploaded
    • This will break the image galleries below
  • Delete boilerplate SCSS in main.scss (keep all the rest)
  • Disable any default Block Variants this brand doesn’t use
  • Add in per-design Block Styles and Variants
Animation Primer & Library

Animations are managed using both an animated element, and its parent. The parent receives a class named .has-animation, which works in tandem with some JavaScript code. That code runs on page load, and then every time the page is scrolled.

Once an element has been detected as scrolled into view, the parent is appended an additional class, named .has-been-revealed. With minimal exceptions, animations are only triggered on elements with a specific animation class, that is the child of an element bearing both the classes .has-animation and .has-been-revealed.

Basic Animations
.fade-in-up
.fade-in-right
.fade-in-down
.fade-in-right
.reveal-in
.draw-in-line

.draw-in-line-80

Like the above animations, leverages the class .has-animation but also the class (on parent still) of .has-image-animation.

Advanced Animations

Tilted Text Animation:

  • As seen on Astute Homepage
  • Limited as it does not flow like real text — text is grouped by line, then sub-grouped by word

Retro Machinery Animation:

  • As seen on Astute 404
  • Static layer overlaid with two reels, underlaid by two additional reels through transparencies in main layer

Scroll-based Rings:

  • As seen on Astute Services
  • Outermost ring stays static
  • Other two rings rotate with scroll up/down
    • Middle ring rotates clockwise/counterclockwise
    • Innermost ring rotates counterclockwise/clockwise

Scroll-based Globe:

  • As seen on KSG Homepage
  • Scroll-based triggers to paginate text alongside animation
  • Most complexity in terms of planning for active and idle states of globe
SCSS Architecture

|sass/
| - meta.scss            # WP Header Comments for style meta
|
|– utils/                # Misc stuff like variables, helper classes, functions, mix-ins, and animation stuff
|   |– _variables.scss   # Sass Variables
|   |– _functions.scss   # Sass Functions
|   |– _mixins.scss      # Sass Mixins
|   |– _helpers.scss     # Class & placeholders helpers
|   |–  animations.scss  # Class & placeholders helpers
|
|– base/                 # Boilerplate, typography, normalizing -- shouldn't need edits
|   |–  normalize.scss   # Reset/normalize
|   |– _typography.scss  # Typography rules
|   ...                  # Etc…
|
|– layout/               # Globals, grid system, forms, etc.
|   |– _navigation.scss  # Navigation
|   |– _header.scss      # Header
|   |– _footer.scss      # Footer
|   |– _forms.scss       # Forms
|   ...                  # Etc…
|
|– components/           # Styles specific to widgets -- overrides for ACF Blocks go here
|   |– _buttons.scss     # Buttons -- includes default permutations
|   |– _carousel.scss    # Carousel
|   |– _cover.scss       # Cover
|   |– _dropdown.scss    # Dropdown
|   ...                  # Etc…
|
|– sections/             # Styles specific to pages
|   |– _home.scss        # Home specific styles
|   |– _contact.scss     # Contact specific styles
|   ...                  # Etc…
|
| – main.scss            # Primary Sass file -- only @import and comments in here

Anatomy of a Style Guide

Font Faces, Weights, Styles, Sizes

  • List out all font families used
  • List out all font weights used in those families
  • Styles refers to normal vs. italics, so just call out if any fonts should also have their italics variant registered (if applicable, not off font families offer italics)
  • All font sizes used, even one-offs like copyright text only used in a single place

Each Unique Text Element Instance

  • Paragraphs, Headings, List Items
  • Any permutations of those items
    • One-off text variants are still Paragraphs like “Label” or whatnot
    • Additional styles for semantic headings, such as if the H1 on Homepage differs from how an H1 would look on a Blog Post
    • Unordered list variants besides default bullet (see top level of this list)
    • Ordered list variants (number, letter, Roman num, etc.), if applicable

Other Relevant Elements

  • Callout any element with more than one permutation
    • Buttons, specifically color changes and functionality such as play buttons
    • Block Quotes

Paragraphs & Text Variants

This is normal text.

This is some fancy variant.

This is some other fancy variant

Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

List Styles

  • This is an
  • unordered list
  • using default bullets
  1. This is an
  2. ordered list
  3. using numbers


ACF Custom Blocks /acf-blocks/


Blog Category Filter and API Blog Listing (two blocks)

Category block doesn’t work without the API Blog Listing block.


Breadcrumb (Dynamic)

Only works if the page has a parent page, otherwise it assumes you wanna go 🏠. Includes plain, chevron, and arrow (for now, and counting).


Flex Divider (Colorable)

Vertical line on desktop; horizontal line on mobile. There is no native vertical line in HTML, but there is for horizontal.


Hamburger Toggle (Colorable)

Must be implemented in conjunction with the meganav (see header).


Expanding Bio

Line height will look wonky pending your brand choice, will need to be refined on a per-site basis (quick and easy to do that, though).

Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my Here is my


FAQ Items (w/ Category Filter)

Filter does not render on mobile.

All

Category One

Category Two

Category One

Example Item One

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales, nulla vel tristique euismod, orci erat laoreet massa, vitae accumsan augue tellus aliquet tortor. Mauris ante tortor, varius nec posuere vitae, tincidunt at tortor. Sed malesuada elementum sollicitudin. Quisque ornare neque quis orci laoreet egestas eu at justo. Vestibulum a congue nunc. Nulla ultricies tortor vel nunc rutrum scelerisque. Sed accumsan aliquet ex sit amet congue. Phasellus eu nibh ipsum. Nunc dapibus, odio sit amet tempus interdum, purus quam accumsan turpis, nec posuere metus elit vitae ipsum. Praesent non lorem id tellus pretium lacinia. Nunc porta lectus mi, eu ornare ipsum facilisis a. Nam et eros aliquet, tristique lorem ac, congue nisi. Sed faucibus ornare diam sed ultrices. Suspendisse quis blandit orci. Phasellus dictum dictum sapien eget tempus. Curabitur ut vestibulum erat.


Example Item One

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales, nulla vel tristique euismod, orci erat laoreet massa, vitae accumsan augue tellus aliquet tortor. Mauris ante tortor, varius nec posuere vitae, tincidunt at tortor. Sed malesuada elementum sollicitudin. Quisque ornare neque quis orci laoreet egestas eu at justo. Vestibulum a congue nunc. Nulla ultricies tortor vel nunc rutrum scelerisque. Sed accumsan aliquet ex sit amet congue. Phasellus eu nibh ipsum. Nunc dapibus, odio sit amet tempus interdum, purus quam accumsan turpis, nec posuere metus elit vitae ipsum. Praesent non lorem id tellus pretium lacinia. Nunc porta lectus mi, eu ornare ipsum facilisis a. Nam et eros aliquet, tristique lorem ac, congue nisi. Sed faucibus ornare diam sed ultrices. Suspendisse quis blandit orci. Phasellus dictum dictum sapien eget tempus. Curabitur ut vestibulum erat.


Category Two

Example Item Two

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales, nulla vel tristique euismod, orci erat laoreet massa, vitae accumsan augue tellus aliquet tortor. Mauris ante tortor, varius nec posuere vitae, tincidunt at tortor. Sed malesuada elementum sollicitudin. Quisque ornare neque quis orci laoreet egestas eu at justo. Vestibulum a congue nunc. Nulla ultricies tortor vel nunc rutrum scelerisque. Sed accumsan aliquet ex sit amet congue. Phasellus eu nibh ipsum. Nunc dapibus, odio sit amet tempus interdum, purus quam accumsan turpis, nec posuere metus elit vitae ipsum. Praesent non lorem id tellus pretium lacinia. Nunc porta lectus mi, eu ornare ipsum facilisis a. Nam et eros aliquet, tristique lorem ac, congue nisi. Sed faucibus ornare diam sed ultrices. Suspendisse quis blandit orci. Phasellus dictum dictum sapien eget tempus. Curabitur ut vestibulum erat.


Example Item Two

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales, nulla vel tristique euismod, orci erat laoreet massa, vitae accumsan augue tellus aliquet tortor. Mauris ante tortor, varius nec posuere vitae, tincidunt at tortor. Sed malesuada elementum sollicitudin. Quisque ornare neque quis orci laoreet egestas eu at justo. Vestibulum a congue nunc. Nulla ultricies tortor vel nunc rutrum scelerisque. Sed accumsan aliquet ex sit amet congue. Phasellus eu nibh ipsum. Nunc dapibus, odio sit amet tempus interdum, purus quam accumsan turpis, nec posuere metus elit vitae ipsum. Praesent non lorem id tellus pretium lacinia. Nunc porta lectus mi, eu ornare ipsum facilisis a. Nam et eros aliquet, tristique lorem ac, congue nisi. Sed faucibus ornare diam sed ultrices. Suspendisse quis blandit orci. Phasellus dictum dictum sapien eget tempus. Curabitur ut vestibulum erat.



“Details” Items (FAQ but w/o Filter)

Example Category

Example Item

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales, nulla vel tristique euismod, orci erat laoreet massa, vitae accumsan augue tellus aliquet tortor. Mauris ante tortor, varius nec posuere vitae, tincidunt at tortor. Sed malesuada elementum sollicitudin. Quisque ornare neque quis orci laoreet egestas eu at justo. Vestibulum a congue nunc. Nulla ultricies tortor vel nunc rutrum scelerisque. Sed accumsan aliquet ex sit amet congue. Phasellus eu nibh ipsum. Nunc dapibus, odio sit amet tempus interdum, purus quam accumsan turpis, nec posuere metus elit vitae ipsum. Praesent non lorem id tellus pretium lacinia. Nunc porta lectus mi, eu ornare ipsum facilisis a. Nam et eros aliquet, tristique lorem ac, congue nisi. Sed faucibus ornare diam sed ultrices. Suspendisse quis blandit orci. Phasellus dictum dictum sapien eget tempus. Curabitur ut vestibulum erat.

Example Item

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sodales, nulla vel tristique euismod, orci erat laoreet massa, vitae accumsan augue tellus aliquet tortor. Mauris ante tortor, varius nec posuere vitae, tincidunt at tortor. Sed malesuada elementum sollicitudin. Quisque ornare neque quis orci laoreet egestas eu at justo. Vestibulum a congue nunc. Nulla ultricies tortor vel nunc rutrum scelerisque. Sed accumsan aliquet ex sit amet congue. Phasellus eu nibh ipsum. Nunc dapibus, odio sit amet tempus interdum, purus quam accumsan turpis, nec posuere metus elit vitae ipsum. Praesent non lorem id tellus pretium lacinia. Nunc porta lectus mi, eu ornare ipsum facilisis a. Nam et eros aliquet, tristique lorem ac, congue nisi. Sed faucibus ornare diam sed ultrices. Suspendisse quis blandit orci. Phasellus dictum dictum sapien eget tempus. Curabitur ut vestibulum erat.


Search Results (Colorable)

Dynamically shows results from search query when added to a “Search” Gutenberg template. If not part of that template, will render a list of all pages.

Why Is January the Peak Month for Depression?

For those suffering from clinical depression, January can be an extremely troubling period of time. In fact, the third Monday of January is often cited as the most depressing day of the year, called “Blue Monday.” Family dysfunction or unresolved childhood trauma can play a big role in depression after the holidays. The holidays tend […]

What Is Passive Suicidal Ideation?

Explore passive suicidal ideation, its causes, risks, and how early intervention and mental health treatment can help prevent escalation and promote healing.

Get Help for Addiction and Mental Health During the Holidays

The holidays tend to shine a spotlight on issues that may be easier to downplay during other times of the year. With all the memories and challenges that seasonal festivities can bring up, the last thing you want to lose is your sobriety during the holidays.

Childhood Trauma Linked to Mental Illness

Is mental illness caused by childhood trauma? It turns out that the early traumatic experiences you dealt with as a child can actually have a lasting impact on your life as you come of age. But these experiences can manifest themselves in adulthood as more than just difficult memories. For some people, childhood trauma can […]

Olympic Athletes & Mental Health

An elite athlete’s competitive drive and whatever-it-takes sacrifices are often publicly lauded as they achieve success, especially among Olympic athletes. Yet in recent years, Olympic athletes and hopefuls are increasingly prioritizing their mental health despite the immense pressures they face. As a result, society is realizing that mental health in Olympic athletes should be just as equally praised — and protected — in the pursuit of their dreams. 

All About Panic Disorders & Psychosis

Although panic disorders and psychosis are distinct, they also overlap. How do you know whether you are struggling with panic disorder, psychosis, or both? Consider the following information and seek professional help to evaluate your own risk.

Detox and Neurofeedback

Drugs and alcohol have evident, lasting effects on our brains, effects that linger even after they leave our systems. But with the right support, recovery can lead to a life, and a brain, that are as balanced or better than they were before addiction — even if your addiction is complicated by co-occurring mental health issues. Read on to learn how neurofeedback can be a part of this recovery support for you or a loved one.

The Mental Health Toll of Politics

You turn on the news and immediately feel your heart rate quicken. The political division leaves you feeling agitated and anxious. You are annoyed — annoyed that you feel this way — that others do not agree with you on politics, and that you can’t even take in the news anymore without it affecting your mental health.

The Importance of Family in Addiction Treatment

While recovery is ultimately an individual journey, having the support of family can make a huge difference in your success. Not everyone has family to support them, and not everyone’s family is supportive. But if you have family willing to walk with you, it’s important to know how your addiction affects them, as well as how they can help you during treatment and recovery.

How Do You Know: You Need Help?

When life is hard, it’s tempting to “tough it out” and hope things get better on their own. But ignoring problems rarely creates a solution. When it comes to your mental health, this is especially true. Professional help exists for a reason, and it can give you back an emotionally and mentally healthy life.


Multiple Gallery Image Gallery