---
title: themeTokenCss
description: >-
  The CSS for `theme.tokens`, or nothing when there are none. The selector is
  `html:root` so it outranks the `:root` rules in the Svartz defaults and in
  every theme. Names and values that could escape the rule are dropped.
updated_at: '2026-09-25T11:30:49+02:00'
created_at: '2026-09-25T11:30:49+02:00'
symbol:
  kind: function
  name: themeTokenCss
  signatures:
    - 'themeTokenCss(tokens: unknown): string | undefined'
  parameters:
    - name: tokens
      type: unknown
  returns:
    type: string | undefined
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/ui/src/lib/theme-tokens.ts#L33
---

# themeTokenCss
