Sanity Library Reference Docs
    Preparing search index...

    Function buildLegacyTheme

    • Build a Sanity UI theme from legacy CSS properties.

      Parameters

      Returns StudioTheme

      import {buildLegacyTheme, defineConfig} from 'sanity'

      export default defineConfig({
      // project configuration ...

      // Customize theming
      theme: buildLegacyTheme({
      '--black': '#000',
      '--gray': '#777',
      '--focus-color': '#00f',
      })
      })

      Legacy theming will be deprecated in a future version of Sanity Studio