---
title: DocSymbol
description: >-
  The `symbol` frontmatter schema: one exported symbol per note, written by hand
  or generated from types. Signatures, types, `extends`, `implements`, and
  defaults may use `[[Name]]` or `[[path/to/Name|Name]]` to link to other
  symbols.
updated_at: '2026-11-26T01:25:23+01:00'
created_at: '2026-09-25T10:30:20+02:00'
symbol:
  kind: interface
  name: DocSymbol
  signatures:
    - interface DocSymbol
  members:
    - name: kind
      kind: property
      signature: >-
        readonly kind: "function" | "type" | "namespace" | "class" | "interface"
        | "enum" | "variable" | "method" | "property" | "constructor" |
        "accessor"
    - name: name
      kind: property
      signature: 'readonly name: string'
    - name: signatures
      kind: property
      signature: 'readonly signatures: readonly string[]'
    - name: typeParameters
      kind: property
      signature: >-
        readonly typeParameters: readonly
        [[reference/api/theme-docs/SymbolParameter|SymbolParameter]][]
    - name: parameters
      kind: property
      signature: >-
        readonly parameters: readonly
        [[reference/api/theme-docs/SymbolParameter|SymbolParameter]][]
    - name: returns
      kind: property
      signature: 'readonly returns?: { … }'
    - name: returns.type
      kind: property
      signature: 'readonly type: string'
    - name: returns.description
      kind: property
      signature: 'readonly description?: string'
    - name: throws
      kind: property
      signature: >-
        readonly throws: readonly { readonly type: string; readonly
        description?: string }[]
    - name: extends
      kind: property
      signature: 'readonly extends: readonly string[]'
    - name: implements
      kind: property
      signature: 'readonly implements: readonly string[]'
    - name: members
      kind: property
      signature: >-
        readonly members: readonly
        [[reference/api/theme-docs/SymbolMember|SymbolMember]][]
    - name: source
      kind: property
      signature: 'readonly source?: string'
    - name: since
      kind: property
      signature: 'readonly since?: string'
    - name: deprecated
      kind: property
      signature: 'readonly deprecated?: string'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/themes/docs/src/lib/symbols.ts#L75
---

# DocSymbol

```yaml
symbol:
  kind: function
  name: defineTheme
  signature: "defineTheme(factory: ThemeFactory): ThemeFactory"   # or signatures: [...]
  parameters: [{ name: factory, type: "[[ThemeFactory]]", description: … }]
  returns: { type: ThemeFactory, description: … }
  source: https://github.com/…/define-theme.ts
  since: 1.0.0
```
