Build a Leonardo colour palette with AI
Turn a few brand colours and a background into named swatches with target contrast ratios. Compare the results on the surfaces where you intend to use them.
Build a Leonardo colour palette with AI when an existing brand colour needs a legible counterpart. The leonardo-colors skill shows your agent how to use Adobe’s colour library to generate swatches at target contrasts. Start with the background of an actual component and the colours you want the palette to retain.
For example, a set of timetable links might sit on cream cards in the daytime theme and charcoal cards at night. You can change the background setting, generate the colours again and compare the named values. Test the combinations that will actually sit next to each other in the design.
What it does
- Generate several steps from one or more colour anchors.
- Set different target contrasts for each family of swatches.
- Get a flat list of names and values to share with a developer.
- Adjust theme lightness, saturation or contrast and inspect the resulting codes.
- Check a particular foreground and background pair separately.
Install and use
- Add the skill to your agent and install Adobe’s official Leonardo contrast colours package with npm in a Node.js project.
- Ask, “Make three blues for links on this cream card and show their contrast ratios.”
- Place the resulting values on a sample card and compare them at the intended text size.
FAQ
Source
Made by Adobe. Original skill: leonardo-colors, published on GitHub under the Apache-2.0 licence.
View on GitHub