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
Requires
- php: ^8.1
- ext-dom: *
- ext-intl: *
- blueways/bw-static-template: ^3.0 || ^4.0
- typo3/cms-core: ^11.0 || ^12.0 || ^13.0
- typo3/cms-fluid: ^11.0 || ^12.0 || ^13.0
- typo3/cms-frontend: ^11.0 || ^12.0 || ^13.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.52
- roave/security-advisories: dev-latest
- saschaegerer/phpstan-typo3: ^1.10
- symfony/translation: ^6.3 || ^7.0
This package is auto-updated.
Last update: 2025-06-13 13:41:27 UTC
README
TYPO3 extension me_typo3_styleguide
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.
It automatically generates a table of contents for all technical headlines within the page, which can be used to navigate through the document.
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.
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.
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.
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.
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.
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.
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).