Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

13.9 KB
Raw Blame
{
  "name": "Twiligent",
  "version": 1,
  "color": {
    "themes": [
      {
        "id": "light",
        "name": "Light"
      },
      {
        "id": "dark",
        "name": "Dark"
      }
    ],
    "tokens": [
      {
        "name": "twiligent-red",
        "value": "#C11F2F",
        "usage": "The brand colour, sampled from the lit face of the mark. Primary actions, the mark, key highlights. White text on it (on-red) holds 5.9:1."
      },
      {
        "name": "ember",
        "value": "#9A1423",
        "usage": "Mid fold of the ribbon. Hover/pressed for red fills on light, the middle stop of fold-gradient, secondary brand fields."
      },
      {
        "name": "oxblood",
        "value": "#5E0B14",
        "usage": "Deepest fold of the ribbon. Large dark brand fields, the end stop of fold-gradient. White text on it holds 12:1."
      },
      {
        "name": "dusk",
        "value": "#140E10",
        "usage": "Warm near-black. The dark brand ground (decks, app icon, social) and light-theme ink."
      },
      {
        "name": "paper",
        "value": "#F7F3EF",
        "usage": "Warm off-white. Light brand ground and light-theme page background."
      },
      {
        "name": "afterglow",
        "value": "#E8A33D",
        "usage": "The one accent: the last light of dusk. Sparing highlights, data series two, badges. Never for text on light grounds; use afterglow-text."
      },
      {
        "name": "surface",
        "value": {
          "light": "{paper}",
          "dark": "{dusk}"
        },
        "usage": "Page background."
      },
      {
        "name": "surface-raised",
        "value": {
          "light": "#FFFFFF",
          "dark": "#1F1719"
        },
        "usage": "Cards, menus, inputs."
      },
      {
        "name": "surface-sunken",
        "value": {
          "light": "#EFE8E3",
          "dark": "#0C0809"
        },
        "usage": "Wells, code blocks, table stripes."
      },
      {
        "name": "line",
        "value": {
          "light": "#E2D8D3",
          "dark": "#3A2F33"
        },
        "usage": "Hairline dividers and card borders (decorative, not a control boundary)."
      },
      {
        "name": "line-strong",
        "value": {
          "light": "#8C7E83",
          "dark": "#86777C"
        },
        "usage": "Input and control borders; holds 3:1 on surface and surface-raised in both themes."
      },
      {
        "name": "dusk-panel",
        "value": {
          "light": "{dusk}",
          "dark": "#2A1D21"
        },
        "usage": "Dark feature panels (Card tone dusk, slide frames). Lifted in the dark theme so it still reads as a panel. Text on it: #F5EFEB (15:1 / 13:1) and #C9BCC0."
      },
      {
        "name": "ink",
        "value": {
          "light": "{dusk}",
          "dark": "#F5EFEB"
        },
        "usage": "Primary text on surface, surface-raised and surface-sunken."
      },
      {
        "name": "ink-muted",
        "value": {
          "light": "#5F5357",
          "dark": "#B8ABAF"
        },
        "usage": "Secondary text, metadata, placeholders on surface, surface-raised and surface-sunken."
      },
      {
        "name": "ink-inverse",
        "value": {
          "light": "#FFFFFF",
          "dark": "{dusk}"
        },
        "usage": "Text on ink-coloured fills (tooltips, inverse chips)."
      },
      {
        "name": "accent",
        "value": {
          "light": "{twiligent-red}",
          "dark": "{twiligent-red}"
        },
        "usage": "Primary button fill, selected state, the mark. Pair with on-accent."
      },
      {
        "name": "accent-hover",
        "value": {
          "light": "{ember}",
          "dark": "#D93444"
        },
        "usage": "Hover/pressed of accent fills. on-accent still holds 4.5:1."
      },
      {
        "name": "on-accent",
        "value": {
          "light": "#FFFFFF",
          "dark": "#FFFFFF"
        },
        "usage": "Text and icons on accent and accent-hover."
      },
      {
        "name": "accent-text",
        "value": {
          "light": "#B01C2B",
          "dark": "#FF7A82"
        },
        "usage": "Red links and emphasis as text, on surface, surface-raised and accent-soft."
      },
      {
        "name": "accent-soft",
        "value": {
          "light": "#FBE7E8",
          "dark": "#3A1419"
        },
        "usage": "Tinted backgrounds behind accent-text: selected rows, red badges."
      },
      {
        "name": "afterglow-text",
        "value": {
          "light": "#7F4C00",
          "dark": "#F2B65E"
        },
        "usage": "Afterglow as text, on surface, surface-raised and afterglow-soft."
      },
      {
        "name": "afterglow-soft",
        "value": {
          "light": "#FCEFD9",
          "dark": "#3A2A12"
        },
        "usage": "Tinted backgrounds behind afterglow-text."
      },
      {
        "name": "success",
        "value": {
          "light": "#1E7349",
          "dark": "#5FCB95"
        },
        "usage": "Success text and icons on surface and surface-raised; always with a word or icon."
      },
      {
        "name": "success-soft",
        "value": {
          "light": "#E2F3E9",
          "dark": "#12301F"
        },
        "usage": "Behind success text."
      },
      {
        "name": "info",
        "value": {
          "light": "#2C5A99",
          "dark": "#8DB3EC"
        },
        "usage": "Informational text and icons on surface and surface-raised."
      },
      {
        "name": "info-soft",
        "value": {
          "light": "#E5EDF8",
          "dark": "#16243A"
        },
        "usage": "Behind info text."
      },
      {
        "name": "danger",
        "value": {
          "light": "{accent-text}",
          "dark": "{accent-text}"
        },
        "usage": "Errors share the brand red, so an error ALWAYS carries an icon and a word (\"Error\", \"Failed\"), never colour alone."
      },
      {
        "name": "focus-ring",
        "value": {
          "light": "#C11F2F",
          "dark": "#FF7A82"
        },
        "usage": "Keyboard focus: 2px solid ring, 2px offset in the surface colour. 3:1+ on every surface in both themes."
      }
    ]
  },
  "type": {
    "fonts": [
      {
        "family": "Sora",
        "file": "fonts/sora-latin-600-normal.woff2",
        "weight": "600"
      },
      {
        "family": "Sora",
        "file": "fonts/sora-latin-700-normal.woff2",
        "weight": "700"
      },
      {
        "family": "Manrope",
        "file": "fonts/manrope-latin-400-normal.woff2",
        "weight": "400"
      },
      {
        "family": "Manrope",
        "file": "fonts/manrope-latin-500-normal.woff2",
        "weight": "500"
      },
      {
        "family": "Manrope",
        "file": "fonts/manrope-latin-600-normal.woff2",
        "weight": "600"
      },
      {
        "family": "Manrope",
        "file": "fonts/manrope-latin-700-normal.woff2",
        "weight": "700"
      },
      {
        "family": "JetBrains Mono",
        "file": "fonts/jetbrains-mono-latin-400-normal.woff2",
        "weight": "400"
      },
      {
        "family": "JetBrains Mono",
        "file": "fonts/jetbrains-mono-latin-500-normal.woff2",
        "weight": "500"
      }
    ],
    "families": {
      "display": "\"Sora\", \"Manrope\", system-ui, sans-serif",
      "sans": "\"Manrope\", system-ui, -apple-system, \"Segoe UI\", sans-serif",
      "mono": "\"JetBrains Mono\", ui-monospace, \"SF Mono\", Menlo, monospace"
    },
    "groups": [
      {
        "name": "Display",
        "family": "display",
        "note": "Sora SemiBold, tight tracking. The wordmark face. Headlines only, never paragraphs.",
        "styles": [
          {
            "name": "display-xl",
            "fontSize": "64px",
            "lineHeight": "68px",
            "fontWeight": 600,
            "letterSpacing": "-0.03em",
            "sample": "Folded into everything.",
            "usage": "Hero headline, one per page; decks and social."
          },
          {
            "name": "display",
            "fontSize": "44px",
            "lineHeight": "50px",
            "fontWeight": 600,
            "letterSpacing": "-0.025em",
            "sample": "See further at dusk.",
            "usage": "Page titles and slide titles."
          },
          {
            "name": "h1",
            "fontSize": "32px",
            "lineHeight": "40px",
            "fontWeight": 600,
            "letterSpacing": "-0.02em",
            "sample": "Three sides, one ribbon",
            "usage": "Section titles."
          },
          {
            "name": "h2",
            "fontSize": "24px",
            "lineHeight": "32px",
            "fontWeight": 600,
            "letterSpacing": "-0.015em",
            "sample": "What changed this week",
            "usage": "Sub-sections, card titles in marketing."
          },
          {
            "name": "h3",
            "fontSize": "19px",
            "lineHeight": "26px",
            "fontWeight": 600,
            "letterSpacing": "-0.01em",
            "sample": "Connect a data source",
            "usage": "Card and panel titles in product UI."
          }
        ]
      },
      {
        "name": "Text",
        "family": "sans",
        "note": "Manrope for everything people read.",
        "styles": [
          {
            "name": "body-lg",
            "fontSize": "18px",
            "lineHeight": "28px",
            "fontWeight": 400,
            "sample": "Twiligent turns scattered signals into one clear picture.",
            "usage": "Lead paragraphs and marketing body."
          },
          {
            "name": "body",
            "fontSize": "16px",
            "lineHeight": "24px",
            "fontWeight": 400,
            "sample": "Your workspace is ready. Invite the team when you are.",
            "usage": "Default reading text in product and docs."
          },
          {
            "name": "body-strong",
            "fontSize": "16px",
            "lineHeight": "24px",
            "fontWeight": 600,
            "sample": "Sync paused",
            "usage": "Inline emphasis, button labels."
          },
          {
            "name": "small",
            "fontSize": "14px",
            "lineHeight": "20px",
            "fontWeight": 500,
            "sample": "Updated 4 minutes ago",
            "usage": "Metadata, helper text, table cells."
          },
          {
            "name": "eyebrow",
            "fontSize": "12px",
            "lineHeight": "16px",
            "fontWeight": 700,
            "letterSpacing": "0.12em",
            "sample": "RELEASE NOTES",
            "usage": "Uppercase labels above headlines. Set text-transform: uppercase."
          }
        ]
      },
      {
        "name": "Code",
        "family": "mono",
        "styles": [
          {
            "name": "code",
            "fontSize": "14px",
            "lineHeight": "22px",
            "fontWeight": 400,
            "sample": "twiligent sync --watch",
            "usage": "Code, CLI, IDs and numbers in tables."
          }
        ]
      }
    ]
  },
  "spacing": {
    "note": "4px base; the larger steps roughly follow the ribbon thickness ratio.",
    "tokens": [
      {
        "name": "space-1",
        "value": "4px",
        "usage": "Icon-to-label gap."
      },
      {
        "name": "space-2",
        "value": "8px",
        "usage": "Inside compact controls, badge padding."
      },
      {
        "name": "space-3",
        "value": "12px",
        "usage": "Between related rows and form fields."
      },
      {
        "name": "space-4",
        "value": "16px",
        "usage": "Control padding, card padding on mobile."
      },
      {
        "name": "space-5",
        "value": "24px",
        "usage": "Card padding, gutters."
      },
      {
        "name": "space-6",
        "value": "32px",
        "usage": "Between groups within a section."
      },
      {
        "name": "space-7",
        "value": "48px",
        "usage": "Between sections."
      },
      {
        "name": "space-8",
        "value": "64px",
        "usage": "Page top padding, slide margins."
      },
      {
        "name": "space-9",
        "value": "96px",
        "usage": "Hero spacing on marketing pages."
      }
    ]
  },
  "radius": {
    "note": "Capsules echo the rounded ribbon ends; containers stay softly squared.",
    "tokens": [
      {
        "name": "radius-sm",
        "value": "6px",
        "usage": "Inputs, small chips, code blocks."
      },
      {
        "name": "radius-md",
        "value": "10px",
        "usage": "Menus, tooltips, tiles."
      },
      {
        "name": "radius-lg",
        "value": "16px",
        "usage": "Cards and panels."
      },
      {
        "name": "radius-xl",
        "value": "24px",
        "usage": "Hero media, large feature blocks."
      },
      {
        "name": "radius-pill",
        "value": "999px",
        "usage": "Buttons and badges: the capsule, like the ribbon ends."
      }
    ]
  },
  "shadow": {
    "note": "Warm, low shadows tinted with dusk; deeper in dark.",
    "tokens": [
      {
        "name": "shadow-sm",
        "value": {
          "light": "0 1px 2px #140e100f, 0 1px 3px #140e1014",
          "dark": "0 1px 2px #00000066"
        },
        "usage": "Inputs, raised buttons."
      },
      {
        "name": "shadow-md",
        "value": {
          "light": "0 4px 12px #140e1014, 0 1px 3px #140e100f",
          "dark": "0 4px 16px #00000080"
        },
        "usage": "Cards on hover, menus."
      },
      {
        "name": "shadow-lg",
        "value": {
          "light": "0 16px 40px #140e101f",
          "dark": "0 16px 48px #000000a6"
        },
        "usage": "Dialogs and popovers."
      }
    ]
  },
  "gradient": {
    "note": "The one gradient: the ribbon turning into shadow.",
    "tokens": [
      {
        "name": "fold-gradient",
        "value": "linear-gradient(120deg, #C11F2F 0%, #C11F2F 35%, #9A1423 70%, #5E0B14 100%)",
        "usage": "Hero bands and covers only. Never behind body text; never with other hues."
      }
    ]
  }
}