Skip to content

Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.

16.8 KB
Raw Blame
{
  "$schema": "nectarlink-design-tokens/v1",
  "$description": "Single source of truth for NectarLink design tokens. QML (desktop) and Compose (Android) themes are generated from this file. Bloom colors follow Material You tonal roles; at runtime the Android app derives them from the wallpaper and sends the seed to the PC (hello.device.accent). The palettes here are the fallbacks and brand presets.",
  "themes": {
    "hive": {
      "description": "Honey on charcoal (Comb, dark) and on warm wax (Wax, light), with a living honeycomb behind the app that grows from the logo, breathes and pulses. Colors are fixed: no wallpaper, artwork or phone colors.",
      "dynamicColor": false,
      "variants": {
        "wax": {
          "primary": "#8A5100",
          "onPrimary": "#FFFFFF",
          "primaryContainer": "#FFDDB3",
          "onPrimaryContainer": "#2C1600",
          "secondaryContainer": "#F4E3CD",
          "onSecondaryContainer": "#2A1F14",
          "surface": "#FFF8F3",
          "surfaceContainerLow": "#FCF2E9",
          "surfaceContainer": "#F8ECE1",
          "surfaceContainerHigh": "#F3E5D7",
          "surfaceContainerHighest": "#EDDDCD",
          "onSurface": "#1F1B16",
          "onSurfaceVariant": "#5C4F43",
          "outline": "#85766A",
          "outlineVariant": "#DDCBBA",
          "success": "#8A5100",
          "warning": "#7A4A00",
          "error": "#9E2B25",
          "onError": "#FFFFFF"
        },
        "comb": {
          "primary": "#FFB95F",
          "onPrimary": "#2C1600",
          "primaryContainer": "#5A3A0E",
          "onPrimaryContainer": "#FFDDB3",
          "secondaryContainer": "#2F2A24",
          "onSecondaryContainer": "#F0E0CC",
          "surface": "#121214",
          "surfaceContainerLow": "#151517",
          "surfaceContainer": "#1A1A1D",
          "surfaceContainerHigh": "#212124",
          "surfaceContainerHighest": "#29292D",
          "onSurface": "#EDE6DD",
          "onSurfaceVariant": "#ABA195",
          "outline": "#8D8379",
          "outlineVariant": "#34312D",
          "success": "#FFB95F",
          "warning": "#F5D58A",
          "error": "#F0A39C",
          "onError": "#3B0B07"
        }
      },
      "shape": {
        "xs": 6,
        "sm": 10,
        "md": 14,
        "lg": 18,
        "xl": 24,
        "full": 999
      },
      "fonts": {
        "ui": "Figtree",
        "display": "Figtree",
        "label": "Figtree",
        "mono": "Space Mono"
      },
      "label": {
        "case": "none",
        "tracking": 0,
        "size": 12.5,
        "weight": 600
      },
      "comb": {
        "$note": "The honeycomb backdrop. Cell size in px (dp on Android); alphas are for the line color.",
        "cell": 24,
        "lineAlphaDark": 0.27,
        "lineAlphaLight": 0.11,
        "glowAlphaDark": 0.7,
        "glowAlphaLight": 0.75,
        "breathSeconds": 6.0,
        "pulseSeconds": 4.5,
        "frameMs": 33
      },
      "rules": [
        "The installer and uninstaller always use Hive. In the apps it's a choice, offered by a card on Home that returns after an update or a reinstall once dismissed.",
        "The comb holds still with reduced motion, in battery or energy saver, when Animated comb is off, and while the window isn't in front.",
        "The comb is drawn by one shader behind everything; cards stay opaque so text never sits on moving lines.",
        "Primary buttons are honey with a soft honey glow on hover; outlines and focus rings use honey at low alpha."
      ]
    },
    "bloom": {
      "description": "Default. Minimal Material You: neutral surfaces, color only where it carries meaning.",
      "dynamicColor": true,
      "defaultSeed": "honey",
      "seeds": {
        "honey": {
          "seed": "#B7791F",
          "light": {
            "primary": "#8A5100",
            "onPrimary": "#FFFFFF",
            "primaryContainer": "#FFDDB8",
            "onPrimaryContainer": "#2C1600",
            "secondaryContainer": "#F3E0CB",
            "onSecondaryContainer": "#261A0C",
            "surface": "#FFF8F3",
            "surfaceContainerLow": "#FBF2EB",
            "surfaceContainer": "#F5ECE4",
            "surfaceContainerHigh": "#EFE6DE",
            "surfaceContainerHighest": "#E9E1D9",
            "onSurface": "#1F1B16",
            "onSurfaceVariant": "#51453A",
            "outline": "#837468",
            "outlineVariant": "#D5C3B5"
          },
          "dark": {
            "primary": "#FFB95F",
            "onPrimary": "#4A2800",
            "primaryContainer": "#693C00",
            "onPrimaryContainer": "#FFDDB8",
            "secondaryContainer": "#574330",
            "onSecondaryContainer": "#F3E0CB",
            "surface": "#17130E",
            "surfaceContainerLow": "#120E0A",
            "surfaceContainer": "#241F1A",
            "surfaceContainerHigh": "#2E2924",
            "surfaceContainerHighest": "#39342E",
            "onSurface": "#EBE1D9",
            "onSurfaceVariant": "#D5C3B5",
            "outline": "#9E8E81",
            "outlineVariant": "#51453A"
          }
        },
        "sage": {
          "seed": "#5B8C5A",
          "light": {
            "primary": "#3B6939",
            "onPrimary": "#FFFFFF",
            "primaryContainer": "#BCF0B4",
            "onPrimaryContainer": "#002204",
            "secondaryContainer": "#D6E8CF",
            "onSecondaryContainer": "#111F0F",
            "surface": "#F7FBF1",
            "surfaceContainerLow": "#F1F5EB",
            "surfaceContainer": "#EBEFE5",
            "surfaceContainerHigh": "#E6E9E0",
            "surfaceContainerHighest": "#E0E4DA",
            "onSurface": "#191D17",
            "onSurfaceVariant": "#424940",
            "outline": "#72796F",
            "outlineVariant": "#C2C8BD"
          },
          "dark": {
            "primary": "#A1D39A",
            "onPrimary": "#0A390F",
            "primaryContainer": "#234F24",
            "onPrimaryContainer": "#BCF0B4",
            "secondaryContainer": "#3B4B38",
            "onSecondaryContainer": "#D6E8CF",
            "surface": "#10140F",
            "surfaceContainerLow": "#0C100B",
            "surfaceContainer": "#1D211B",
            "surfaceContainerHigh": "#272B25",
            "surfaceContainerHighest": "#32362F",
            "onSurface": "#E0E4DA",
            "onSurfaceVariant": "#C2C8BD",
            "outline": "#8C9388",
            "outlineVariant": "#424940"
          }
        },
        "lavender": {
          "seed": "#7E6AA8",
          "light": {
            "primary": "#65558F",
            "onPrimary": "#FFFFFF",
            "primaryContainer": "#E9DDFF",
            "onPrimaryContainer": "#201047",
            "secondaryContainer": "#E8DEF8",
            "onSecondaryContainer": "#1D192B",
            "surface": "#FDF7FF",
            "surfaceContainerLow": "#F7F2FA",
            "surfaceContainer": "#F2ECF4",
            "surfaceContainerHigh": "#ECE6EE",
            "surfaceContainerHighest": "#E6E0E9",
            "onSurface": "#1D1B20",
            "onSurfaceVariant": "#49454E",
            "outline": "#7A757F",
            "outlineVariant": "#CAC4CF"
          },
          "dark": {
            "primary": "#CFBDFE",
            "onPrimary": "#36275D",
            "primaryContainer": "#4D3D75",
            "onPrimaryContainer": "#E9DDFF",
            "secondaryContainer": "#4A4458",
            "onSecondaryContainer": "#E8DEF8",
            "surface": "#141218",
            "surfaceContainerLow": "#0F0D13",
            "surfaceContainer": "#211F24",
            "surfaceContainerHigh": "#2B292F",
            "surfaceContainerHighest": "#36343A",
            "onSurface": "#E6E0E9",
            "onSurfaceVariant": "#CAC4CF",
            "outline": "#948F99",
            "outlineVariant": "#49454E"
          }
        },
        "ocean": {
          "seed": "#3D7DA8",
          "light": {
            "primary": "#2F628C",
            "onPrimary": "#FFFFFF",
            "primaryContainer": "#CEE5FF",
            "onPrimaryContainer": "#001D33",
            "secondaryContainer": "#D5E4F7",
            "onSecondaryContainer": "#0E1D2A",
            "surface": "#F7F9FF",
            "surfaceContainerLow": "#F1F4FA",
            "surfaceContainer": "#ECEEF4",
            "surfaceContainerHigh": "#E6E8EE",
            "surfaceContainerHighest": "#E0E2E8",
            "onSurface": "#181C20",
            "onSurfaceVariant": "#42474E",
            "outline": "#72777F",
            "outlineVariant": "#C2C7CF"
          },
          "dark": {
            "primary": "#9BCBFB",
            "onPrimary": "#003354",
            "primaryContainer": "#0F4A73",
            "onPrimaryContainer": "#CEE5FF",
            "secondaryContainer": "#3B4858",
            "onSecondaryContainer": "#D5E4F7",
            "surface": "#101418",
            "surfaceContainerLow": "#0B0F13",
            "surfaceContainer": "#1C2024",
            "surfaceContainerHigh": "#262A2F",
            "surfaceContainerHighest": "#31353A",
            "onSurface": "#E0E2E8",
            "onSurfaceVariant": "#C2C7CF",
            "outline": "#8C9199",
            "outlineVariant": "#42474E"
          }
        },
        "black": {
          "seed": "#18181C",
          "light": {
            "primary": "#18181C",
            "onPrimary": "#FFFFFF",
            "primaryContainer": "#DCDCE2",
            "onPrimaryContainer": "#141418",
            "secondaryContainer": "#E5E5EB",
            "onSecondaryContainer": "#18181C",
            "surface": "#FAFAFC",
            "surfaceContainerLow": "#F4F4F7",
            "surfaceContainer": "#EEEEF2",
            "surfaceContainerHigh": "#E7E7EC",
            "surfaceContainerHighest": "#E0E0E6",
            "onSurface": "#111114",
            "onSurfaceVariant": "#43434A",
            "outline": "#73737C",
            "outlineVariant": "#C7C7D0"
          },
          "dark": {
            "primary": "#E2E2EA",
            "onPrimary": "#141418",
            "primaryContainer": "#2E2E36",
            "onPrimaryContainer": "#F0F0F5",
            "secondaryContainer": "#26262E",
            "onSecondaryContainer": "#E2E2EA",
            "surface": "#0A0A0C",
            "surfaceContainerLow": "#060608",
            "surfaceContainer": "#141418",
            "surfaceContainerHigh": "#1E1E24",
            "surfaceContainerHighest": "#282830",
            "onSurface": "#ECECF0",
            "onSurfaceVariant": "#C2C2CA",
            "outline": "#8E8E98",
            "outlineVariant": "#3E3E48"
          }
        }
      },
      "status": {
        "$note": "No green. Success / done / connected states use the theme's own color roles: primary (dot, 'On' chips) and primaryContainer/onPrimaryContainer (completed checks). Only warning and error have dedicated colors.",
        "light": {
          "success": "{primary}",
          "warning": "#7D5200",
          "error": "#BA1A1A",
          "onError": "#FFFFFF"
        },
        "dark": {
          "success": "{primary}",
          "warning": "#F2C14E",
          "error": "#FFB4AB",
          "onError": "#690005"
        }
      },
      "shape": {
        "xs": 8,
        "sm": 12,
        "md": 16,
        "lg": 20,
        "xl": 28,
        "full": 999
      },
      "fonts": {
        "ui": "Figtree",
        "display": "Figtree",
        "label": "Figtree",
        "mono": "Space Mono"
      },
      "label": {
        "case": "none",
        "tracking": 0,
        "size": 12.5,
        "weight": 600
      }
    },
    "graphite": {
      "description": "Built-in alternative, from github.com/thtbee/graphite. Monochrome ink on paper / chalk on slate; dynamic color off.",
      "dynamicColor": false,
      "variants": {
        "paper": {
          "primary": "#1A1918",
          "onPrimary": "#F5F2EB",
          "primaryContainer": "#E8E3D7",
          "onPrimaryContainer": "#1A1918",
          "secondaryContainer": "#E8E3D7",
          "onSecondaryContainer": "#1A1918",
          "surface": "#F5F2EB",
          "surfaceContainerLow": "#F1EDE4",
          "surfaceContainer": "#F5F2EB",
          "surfaceContainerHigh": "#EFEBE2",
          "surfaceContainerHighest": "#E8E3D7",
          "onSurface": "#1A1918",
          "onSurfaceVariant": "#5E5A54",
          "outline": "#4A4743",
          "outlineVariant": "#D5CFC2",
          "success": "#1A1918",
          "warning": "#705516",
          "error": "#9E2B25",
          "onError": "#F5F2EB",
          "buttonShadow": "3px 3px 0 #D5CFC2",
          "grain": 0.22,
          "grid": "rgba(74,71,67,0.06)"
        },
        "slate": {
          "primary": "#E8EAED",
          "onPrimary": "#0D0D0E",
          "primaryContainer": "#1A1A1D",
          "onPrimaryContainer": "#E8EAED",
          "secondaryContainer": "#1A1A1D",
          "onSecondaryContainer": "#E8EAED",
          "surface": "#0D0D0E",
          "surfaceContainerLow": "#0B0B0C",
          "surfaceContainer": "#0D0D0E",
          "surfaceContainerHigh": "#141416",
          "surfaceContainerHighest": "#1A1A1D",
          "onSurface": "#E8EAED",
          "onSurfaceVariant": "#9A9CA1",
          "outline": "#7E8084",
          "outlineVariant": "#26272A",
          "success": "#E8EAED",
          "warning": "#E2C47A",
          "error": "#F0A39C",
          "onError": "#0D0D0E",
          "buttonShadow": "3px 3px 0 #26272A",
          "grain": 0.12,
          "grid": "rgba(200,208,216,0.035)"
        }
      },
      "shape": {
        "xs": 2,
        "sm": 3,
        "md": 4,
        "lg": 4,
        "xl": 6,
        "full": 3
      },
      "fonts": {
        "ui": "Figtree",
        "display": "Instrument Serif",
        "label": "Space Mono",
        "mono": "Space Mono",
        "note": "Caveat"
      },
      "label": {
        "case": "upper",
        "tracking": 0.12,
        "size": 10.5,
        "weight": 400
      },
      "rules": [
        "Cards use 1px outlineVariant borders, no fills, no elevation.",
        "Primary buttons are ink-filled with the flat offset buttonShadow.",
        "Crop marks frame hero imagery; 'FIG. NN // ...' annotations label sections.",
        "At most one handwritten (Caveat) margin note per screen, only for delight moments.",
        "Never use Graphite's art effects in the app: no smudge physics, no gritty lettering, no scroll sound.",
        "Success and completed states use ink (Paper) or chalk (Slate), never green."
      ]
    }
  },
  "typography": {
    "displayLarge": {
      "size": 44,
      "lineHeight": 1.05,
      "weight": 650,
      "tracking": -0.025
    },
    "displaySmall": {
      "size": 30,
      "lineHeight": 1.1,
      "weight": 650,
      "tracking": -0.02
    },
    "headline": {
      "size": 22,
      "lineHeight": 1.2,
      "weight": 650,
      "tracking": -0.015
    },
    "title": {
      "size": 16,
      "lineHeight": 1.35,
      "weight": 600,
      "tracking": 0
    },
    "body": {
      "size": 14,
      "lineHeight": 1.5,
      "weight": 400,
      "tracking": 0
    },
    "bodySmall": {
      "size": 12.5,
      "lineHeight": 1.45,
      "weight": 400,
      "tracking": 0
    },
    "label": {
      "size": 12.5,
      "lineHeight": 1.3,
      "weight": 600,
      "tracking": 0
    },
    "caption": {
      "size": 11,
      "lineHeight": 1.3,
      "weight": 500,
      "tracking": 0
    },
    "code": {
      "size": 13,
      "lineHeight": 1.3,
      "weight": 700,
      "tracking": 0.14,
      "font": "mono"
    }
  },
  "spacing": {
    "unit": 4,
    "scale": [
      0,
      2,
      4,
      6,
      8,
      10,
      12,
      16,
      20,
      24,
      32,
      40,
      48,
      64
    ]
  },
  "layout": {
    "desktop": {
      "railWidth": 80,
      "topBarHeight": 52,
      "contentPadding": 22,
      "gutter": 16,
      "minWindow": [
        880,
        600
      ]
    },
    "phone": {
      "screenPadding": 16,
      "gutter": 10,
      "tabBarHeight": 64
    }
  },
  "elevation": {
    "bloom": {
      "level0": "none",
      "level1": "0 1px 2px rgba(0,0,0,.06)",
      "window": "0 1px 2px rgba(0,0,0,.06), 0 24px 60px -20px rgba(0,0,0,.18)"
    },
    "graphite": {
      "level0": "none",
      "level1": "none",
      "window": "0 30px 70px -30px rgba(0,0,0,.35)"
    }
  },
  "motion": {
    "description": "Springs everywhere; durations are only for fades. Respect reduced-motion: replace movement with 120 ms fades.",
    "spring": {
      "gentle": {
        "stiffness": 220,
        "damping": 26,
        "use": "page and panel transitions"
      },
      "standard": {
        "stiffness": 380,
        "damping": 30,
        "use": "cards, sheets, expanding a notification into a conversation"
      },
      "snappy": {
        "stiffness": 620,
        "damping": 34,
        "use": "toggles, chips, buttons, hover lift"
      }
    },
    "fade": {
      "fast": 120,
      "normal": 200
    },
    "hoverLift": 2,
    "pressScale": 0.97
  },
  "icons": {
    "set": "Material Symbols Rounded (Apache-2.0)",
    "size": 20,
    "stroke": "outlined, 400 weight; filled when selected"
  }
}