<h2 class="heading  ">
    Header
</h2>
<h2 class="heading {{ modifier }} {{ class }}">
    {{#if link}}
        <a href="{{ link.url }}" title="{{ link.text }}" class="heading__link">{{ text }}</a>
    {{else}}
        {{ text }}
    {{/if}}
</h2>
{
  "text": "Header"
}
  • Content:
    /*
    * Element: Headers
    */
    
    /*Setting document variables*/
    :root{
        --heading-color-primary: var(--color-black);
        --heading-color-secondary: var(--color-secondary);
        --heading-color-black: var(--color-black);
        --hero-text-color: var(--color-white);
        --footer-text-color: var(--color-white);
        --footer-border-color: var(--color-white);
        --footer-border-opacity: 75%;
    }
    
    .heading {
        color: var(--heading-color-primary);
        font-size: 35px;
        font-weight: 600;
        font-family: var(--heading-font-family);
        margin-bottom: 20px;
        margin-top: 0;
        width: 100%;
    
        &__column {
            color: var(--heading-color-black);
        }
    
        &__footer {
            color: var(--footer-text-color);
            line-height: 40px;
            margin-bottom: 20px;
            border-bottom: 1px solid color(var(--footer-border-color) alpha(var(--footer-border-opacity)));
        }
    
        .heading__link {
            font-family: var(--link-font-family);
            text-decoration: none;
        
            &[href] {
                color: var(--link-color);
            }
        
            &:hover,
            &:focus {
                color: shade(var(--link-color), 10%);
                outline: none;
            }
        }
    }
    
    
  • URL: /components/raw/heading/heading.css
  • Filesystem Path: patterns/01-atoms/headings/heading/heading.css
  • Size: 1.2 KB