Miami Cruise / Apps / Design tokens
Design tokens
The palette as JSON, for any app that isn't listed yet.
Install
Download
Download
tokens.jsonandcontrast.json.curl -fsSLO https://lanjelin.github.io/miami-cruise/downloads/tokens/tokens.json curl -fsSLO https://lanjelin.github.io/miami-cruise/downloads/tokens/contrast.jsonRead the tokens
The file has a
darkand alightobject, each mapping a token name to a hex colour.contrast.jsonlists the contrast ratios if you want to check your own pairings.import json tokens = json.load(open("tokens.json")) print(tokens["dark"]["accent"]) # the hero colourMap them to your app
accentis the single highlight colour: primary action, selection, focus, links.success,warning,dangerandinfoare green, yellow, red and cyan.text,mutedanddisabledare the text ramp.bg,panel,border,hoverandroware surfaces.on-accentis the text colour to use on anaccentfill. The full role table is in the porting guide.Every text and accent colour is at least 4.5:1 against
bg, so you can use them for text without checking.