SPIKE: update to build new variants #1308
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This spike confirms that it's possible to create the new variants proposed here:
https://www.figma.com/file/96Kkkoa6u5qfIa92OqKFht/Colour-theme-framework-proposal?type=design&node-id=15-2370&mode=design&t=TmIkszhmN1HCrHky-0
Discussion: #1276
Notes after speaking to Alex C.:
light
anddark
foreground options. One of the options will most probably not be accessible but we still want both of them so that if we change main colours (for branding for example) we have the option. The designers will have to tell the devs which variants to use.subtle option 2
. It's a copy of 1 but with slightly different main colours. The designers will decide in future which one to use (the code in the background will be the same)bold
andsubtle
.subtle
option will havetheme-5
(the grey variant).Demo environment: https://legal-and-general.github.io/canopy/lg-sb-fep-2202-variants-spike/?path=/story/helpers-directives-variant-examples--standard-variant
If using this code in the future (or part of it) please be aware that: