Skip to content

Add optional logo setting #75

Closed
Closed
@bradfrost

Description

@bradfrost

Have the ability to add a company's logo to the Pattern Lab interface. I already have the style and markup in place; I just need to know how to make it a variable inside of patternlab-config.json (which maybe @bmuenzenmeyer could walk me through?).

I'm thinking something like this in the markup:

{{# logoImage }}
    <div class="pl-c-logo">
        <img class="pl-c-logo__img" src="{{ logoImage }}" />
    </div><!--end pl-c-logo-->
    {{/ logoImage }}

and this in patternlab-config.json:

{
    "logoImage" : "path/to/image.svg"
}

Understanding how config variables work in general would help me with all the theming stuff I'm doing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions