axllent/silverstripe-typography

A simple extension (extending Page) to add a simple typography test page to see your website styles

Installs: 1 025

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 4

Forks: 4

Open Issues: 0

Language:Scheme

Type:silverstripe-vendormodule

2.0.4 2023-06-03 10:22 UTC

This package is auto-updated.

Last update: 2024-11-03 13:29:01 UTC


README

A simple extension (extending Page) to add a simple typography test page to see your website styles.

It includes a JavaScript function to add element titles to all elements in the test page to help you see what element is which.

Requirements

  • Silverstripe ^4.0 || ^5.0 in dev environment

For Silverstripe 3, please refer to the Silverstripe3 branch.

Installation

composer require axllent/silverstripe-typography --dev

Usage

Install the module, run a ?flush=1 and access your website with /typo/ (eg: www.example.com/typo/). Please note that your website must be in the dev environment for the route to be activated.

If you need a customised layout then add a Layout/Typography.ss template in your theme directory and

    <% include TypographySampleText %>