# club.userstyles.alpha.userstyle

> Published by [userstyles.club](https://lexicon.garden/identity/did:plc:z6a2tfjek74wmqinw5vjzbed)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.userstyle)
- [Documentation](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.userstyle/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:z6a2tfjek74wmqinw5vjzbed/club.userstyles.alpha.userstyle/examples)

## Definitions

### `club.userstyles.alpha.userstyle`

**Type**: `record`

Record declaring a userstyle's contents and metadata.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `title` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `updatedAt` | `string` (datetime) | No |  |
| `sourceCode` | `string` | Yes |  |
| `description` | `string` | No |  |
| `previewImage` | `blob` | No |  |

## Raw Schema

```json
{
  "id": "club.userstyles.alpha.userstyle",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "title",
          "sourceCode",
          "createdAt"
        ],
        "properties": {
          "title": {
            "type": "string",
            "maxGraphemes": 140,
            "minGraphemes": 1
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          },
          "sourceCode": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "maxGraphemes": 300
          },
          "previewImage": {
            "type": "blob",
            "accept": [
              "image/*"
            ],
            "maxSize": 1000000
          }
        }
      },
      "description": "Record declaring a userstyle's contents and metadata."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
