Cotton code
100 lines · 3.8 KB · JSONRaw
{  "format_version": 1,  "id": "vault",  "purpose": "How everything inside Cotton Vault looks, on iPhone and Android alike: near-monochrome, one accent for the main action, three state colours. Phones read these values through vault.look and write no colour or size of their own.",  "fonts": {    "sans": { "family": "Inter", "licence": "SIL OFL 1.1", "weights": [400, 500, 600, 700] },    "mono": { "family": "JetBrains Mono", "licence": "SIL OFL 1.1", "weights": [400, 600] }  },  "colours": {    "light": {      "background": "#FFFFFF",      "surface": "#F4F4F5",      "raised": "#FFFFFF",      "sheet": "#FFFFFF",      "separator": "#E4E4E7",      "field": "#F4F4F5",      "text": "#09090B",      "secondary": "#52525B",      "tertiary": "#71717A",      "disabled": "#A1A1AA",      "accent": "#09090B",      "on_accent": "#FFFFFF",      "safe": "#15803D",      "safe_wash": "#ECFDF3",      "attention": "#B45309",      "attention_wash": "#FFF7E6",      "danger": "#B91C1C",      "danger_wash": "#FEF2F2",      "scrim": "#00000066",      "tint.0": "#E4E4E7",      "tint.1": "#D4D4D8",      "tint.2": "#E7E5E4",      "tint.3": "#D6D3D1",      "tint.4": "#E2E8F0",      "tint.5": "#CBD5E1",      "tint.6": "#E5E7EB",      "tint.7": "#D1D5DB",      "on_tint": "#18181B"    },    "dark": {      "background": "#000000",      "surface": "#18181B",      "raised": "#1F1F23",      "sheet": "#1C1C1F",      "separator": "#2E2E33",      "field": "#27272A",      "text": "#FAFAFA",      "secondary": "#A1A1AA",      "tertiary": "#8B8B94",      "disabled": "#52525B",      "accent": "#FAFAFA",      "on_accent": "#09090B",      "safe": "#4ADE80",      "safe_wash": "#0F2A1A",      "attention": "#FBBF24",      "attention_wash": "#2B2110",      "danger": "#F87171",      "danger_wash": "#2D1414",      "scrim": "#000000A3",      "tint.0": "#3F3F46",      "tint.1": "#52525B",      "tint.2": "#44403C",      "tint.3": "#57534E",      "tint.4": "#334155",      "tint.5": "#475569",      "tint.6": "#374151",      "tint.7": "#4B5563",      "on_tint": "#FAFAFA"    }  },  "type": {    "large_title": { "font": "sans", "size": 34, "weight": 700, "line": 41, "tracking": -0.4 },    "title": { "font": "sans", "size": 22, "weight": 700, "line": 28, "tracking": -0.2 },    "headline": { "font": "sans", "size": 17, "weight": 600, "line": 22, "tracking": 0 },    "body": { "font": "sans", "size": 17, "weight": 400, "line": 22, "tracking": 0 },    "row_title": { "font": "sans", "size": 17, "weight": 600, "line": 22, "tracking": 0 },    "row_detail": { "font": "sans", "size": 15, "weight": 400, "line": 20, "tracking": 0 },    "label": { "font": "sans", "size": 13, "weight": 500, "line": 18, "tracking": 0.1 },    "section": { "font": "sans", "size": 13, "weight": 600, "line": 18, "tracking": 0.4 },    "button": { "font": "sans", "size": 17, "weight": 600, "line": 22, "tracking": 0 },    "chip": { "font": "sans", "size": 15, "weight": 500, "line": 20, "tracking": 0 },    "initials": { "font": "sans", "size": 17, "weight": 700, "line": 22, "tracking": 0 },    "secret": { "font": "mono", "size": 17, "weight": 400, "line": 24, "tracking": 0.5 },    "secret_large": { "font": "mono", "size": 28, "weight": 600, "line": 34, "tracking": 1 },    "code": { "font": "mono", "size": 28, "weight": 600, "line": 34, "tracking": 2 }  },  "space": { "xxs": 2, "xs": 4, "s": 8, "m": 12, "l": 16, "xl": 24, "xxl": 32, "xxxl": 48, "gutter": 16, "row_height": 64, "picture": 40, "tap": 44 },  "corners": { "picture": 10, "row": 12, "card": 16, "field": 12, "button": 14, "sheet": 24, "chip": 999 },  "roles": {    "row_title": "text",    "row_detail": "secondary",    "section": "tertiary",    "main_action": "accent",    "on_main_action": "on_accent",    "safe": "safe",    "attention": "attention",    "danger": "danger",    "neutral": "secondary"  }}