---
title: themeSourceAliases
description: >-
  Vite aliases that point each workspace theme at its source, by exact id. A
  string alias also captures subpaths, so `@svartz/theme-minimal` would rewrite
  another listed theme's `@svartz/theme-minimal/runtime` import.
updated_at: '2026-10-27T21:08:13+01:00'
created_at: '2026-10-27T21:08:13+01:00'
symbol:
  kind: function
  name: themeSourceAliases
  signatures:
    - >-
      themeSourceAliases(sources: Readonly<Record<string, string>>): { find:
      RegExp; replacement: string }[]
  parameters:
    - name: sources
      type: 'Readonly<Record<string, string>>'
  returns:
    type: '{ find: RegExp; replacement: string }[]'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/vite/src/theme-aliases.ts#L6
---

# themeSourceAliases
