id.skiddle.themePreset

A saved design for the site's theme: its colours, fonts, text size, line heights, corners, spacing and terminal touches, the same fields as id.skiddle.theme's design, by the same rules. Applying a preset in the admin app copies its design into id.skiddle.theme (key 'self') and keeps the theme's mode, accent and cards' design. The site never reads presets. The key is made from the name when the preset is saved, and stays when it's renamed. A field left out is today's look, so a preset with only a name is today's look.

Repository @skiddle.blue did:plc:xaj6j6abvpgwps5v6k4t6clv namespace authority
Details · record, key any
Kindrecord
Record keyany
Authorityskiddle.id
Commit rev3n3dspyboqj2y
Indexed
cid bafyreiad6mdl6zdp3fffupi43vr4g3zy7nhx5rmuovowub6r3dmqnftuzi

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A saved design for the site's theme: its colours, fonts, text size, line heights, corners, spacing and terminal touches, the same fields as id.skiddle.theme's design, by the same rules. Applying a preset in the admin app copies its design into id.skiddle.theme (key 'self') and keeps the theme's mode, accent and cards' design. The site never reads presets. The key is made from the name when the preset is saved, and stays when it's renamed. A field left out is today's look, so a preset with only a name is today's look.",
      "key": "any",
      "record": {
        "properties": {
          "colors": {
            "description": "The site's colours, for dark and for light. A colour left out keeps today's.",
            "ref": "id.skiddle.theme#colors",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "fonts": {
            "description": "The site's fonts. A font left out keeps today's: Geist Mono, and Geist for post text.",
            "ref": "id.skiddle.theme#fonts",
            "type": "ref"
          },
          "name": {
            "description": "The preset's name, as the admin app lists it, e.g. 'Today's look, warmer'.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "noCursor": {
            "description": "Hide the blinking cursor. Left out, or false, shows it, as today.",
            "type": "boolean"
          },
          "noHeadingMarks": {
            "description": "Hide the '#' and '##' before headings. Left out, or false, shows them, as today.",
            "type": "boolean"
          },
          "noPrompt": {
            "description": "Hide the terminal prompts ('skiddle@web:~$') above sections and in the search. Left out, or false, shows them, as today.",
            "type": "boolean"
          },
          "postLineHeight": {
            "description": "The line height of a post's text: 'normal' is today's.",
            "knownValues": [
              "tight",
              "normal",
              "loose"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "radius": {
            "description": "The corners of cards, buttons and images: 'small' is today's.",
            "knownValues": [
              "none",
              "small",
              "round"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "spacing": {
            "description": "The space around and between things: 'normal' is today's.",
            "knownValues": [
              "compact",
              "normal",
              "roomy"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "textLineHeight": {
            "description": "The line height of the site's text: 'normal' is today's.",
            "knownValues": [
              "tight",
              "normal",
              "loose"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "textSize": {
            "description": "The base text size, in steps: 'normal' is today's. Every size and the spacing follow it.",
            "knownValues": [
              "small",
              "normal",
              "large",
              "larger"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "name",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "id.skiddle.themePreset",
  "lexicon": 1
}