# us.polhem.skywrite.preferences.theme

> A Skywrite theme: the colors of the app's menu, toolbar, links and buttons, as light mode shows them (dark mode darkens them). The same four colors as site.standard.theme.basic. Skywrite's built-in themes are records in skywritecms.bsky.social's repo; anyone's own themes are records in their repo. The theme in use is named by its AT URI in us.polhem.skywrite.preferences.app.

- Kind: record
- Record key: any
- Authority: preferences.skywrite.polhem.us
- Lexicon: 1
- Published by [polhem.us](https://lexicon.garden/identity/did:plc:p5a4pydyirvdkmc3lhw2iykp), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:p5a4pydyirvdkmc3lhw2iykp/us.polhem.skywrite.preferences.theme)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:p5a4pydyirvdkmc3lhw2iykp/us.polhem.skywrite.preferences.theme/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:p5a4pydyirvdkmc3lhw2iykp/us.polhem.skywrite.preferences.theme/analytics)

## Record (`us.polhem.skywrite.preferences.theme`)

Type: record · key any

### Properties

- `accent` (union, required): The current menu item, links and buttons.
  - One of: `site.standard.theme.color#rgb`
- `accentForeground` (union, required): Text on the accent.
  - One of: `site.standard.theme.color#rgb`
- `background` (union, required): The menu and toolbar.
  - One of: `site.standard.theme.color#rgb`
- `description` (string): A few words on how it looks, such as 'A charcoal menu with blue'.
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `foreground` (union, required): Text in the menu and toolbar.
  - One of: `site.standard.theme.color#rgb`
- `name` (string, required): The theme's name, such as 'Classic'.
  - Constraints: minLength: 1, maxLength: 640, maxGraphemes: 64

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A Skywrite theme: the colors of the app's menu, toolbar, links and buttons, as light mode shows them (dark mode darkens them). The same four colors as site.standard.theme.basic. Skywrite's built-in themes are records in skywritecms.bsky.social's repo; anyone's own themes are records in their repo. The theme in use is named by its AT URI in us.polhem.skywrite.preferences.app.",
      "key": "any",
      "record": {
        "properties": {
          "accent": {
            "description": "The current menu item, links and buttons.",
            "refs": [
              "site.standard.theme.color#rgb"
            ],
            "type": "union"
          },
          "accentForeground": {
            "description": "Text on the accent.",
            "refs": [
              "site.standard.theme.color#rgb"
            ],
            "type": "union"
          },
          "background": {
            "description": "The menu and toolbar.",
            "refs": [
              "site.standard.theme.color#rgb"
            ],
            "type": "union"
          },
          "description": {
            "description": "A few words on how it looks, such as 'A charcoal menu with blue'.",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "foreground": {
            "description": "Text in the menu and toolbar.",
            "refs": [
              "site.standard.theme.color#rgb"
            ],
            "type": "union"
          },
          "name": {
            "description": "The theme's name, such as 'Classic'.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name",
          "background",
          "foreground",
          "accent",
          "accentForeground"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "us.polhem.skywrite.preferences.theme",
  "lexicon": 1
}
```
