accessdigital / wilson

A Drupal installation profile produced by Access. New installations should use https://github.com/accessdigital/drupal-template
https://www.weareaccess.co.uk
4 stars 1 forks source link

Offset backdrop support #33

Closed AccessPaul closed 1 year ago

AccessPaul commented 1 year ago

This PR is built on the back of the other open PRs which should be reviewed and merged first.

Adds relevant classes to the Tailwind safelist to allow the making of "offset backdrops" through the CMS - be that using the Classes field on a component or by creating a custom background style taxonomy term. This first pass is a balance between generic classes for Wilson and not wanting to overly increase the size of the compiled CSS. If a client site built on top of Wilson needs something specific (like more colour options) then that client's theme could be extended.

As an example of what I mean by "offset backdrop" consider the below screenshot.

Using different class combinations you could achieve different colour transitions to suit.

offset-backdrop-example