move-elevator/me-typo3-styleguide

This extension provides several tools for a TYPO3 styleguide.

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

dev-main 2025-06-13 13:41 UTC

README

Extension icon

TYPO3 extension me_typo3_styleguide

Supported TYPO3 versions

This extension provides several tools for a TYPO3 styleguide.

Installation

Install via composer:

composer require move-elevator/me-typo3-styleguide

Include static TypoScript template or manually import it:

@import 'EXT:me_typo3_styleguide/Configuration/TypoScript/setup.typoscript'

Documentation

Technical Headline Content Element

The Technical Headline content element can be used to create a structural headline for your styleguide or technical documentation.

technical-headline.png

It automatically generates a table of contents for all technical headlines within the page, which can be used to navigate through the document.

ce-technical-headline.jpeg

Use the Headline-Level attribute to change the hierarchy of the headline. The default is h2, but you can also use h1, h3, h4.

Static Templates

This extension uses the flexible EXT:bw_static_template to offer the possibility to render any templates for the style guide.

ce-static-template.jpeg

In addition to the content elements, it is therefore possible to render any template or partial from the project for dedicated display.

Therefor you have to provide the path to the template in the Frontend template field.

If the template expects additional parameters, these can be specified using JSON notation in the “JSON” field.

edit-static-template.jpg

See the Static templates documentation for a more detailed documentation.

Pattern

The predefined patterns are useful templates within a standard styleguide. These are mainly simple fluid templates which can be configured using the Static templates content element.

The following patterns are available:

Images

This pattern provides a simple image template that can be used to display images, e.g. logos consistently.

pattern-image.jpg

Frontend template: EXT:me_typo3_styleguide/Resources/Private/Templates/Patterns/Images.html

Example data:

{
  "images": [
    {
      "path": "EXT:example/Resources/Public/Images/logo.svg",
      "caption": "home"
    }
  ]
}

Icons

This pattern provides a simple icon template that can be used to display all icons/images within a provided path.

pattern-icons.jpg

Frontend template: EXT:me_typo3_styleguide/Resources/Private/Templates/Patterns/Icons.html

Example data:

{
    "path": "EXT:example/Resources/Public/Icons/"
}

Colors

This pattern provides a simple color template that can be used to display colors consistently, e.g. for a color palette.

pattern-colors.jpg

Frontend template: EXT:me_typo3_styleguide/Resources/Private/Templates/Patterns/Colors.html

Example data:

{
    "colors": [
        {
            "color": "#EAE7E2",
            "label": "cararra"
        },
        {
            "color": "#002337",
            "label": "daintree"
        }
    ]
}

Font

This pattern provides a simple font template that can be used to display available fonts consistently, e.g. for a typography styleguide.

pattern-font.jpg

Frontend template: EXT:me_typo3_styleguide/Resources/Private/Templates/Patterns/Fonts.html

Example data:

{
    "fonts": [
        {
            "font": "Lexend"
        },
        {
            "font": "Lexend",
            "fontWeight": 700,
            "label": "Lexend 700"
        }
    ]
}

ViewHelpers

This extension provides a collection of TYPO3 ViewHelpers that can be reused in your templates.

See the ViewHelpers documentation for a complete list of available ViewHelpers.

License

This project is licensed under GNU General Public License 2.0 (or later).