Build a Sanity UI theme from legacy CSS properties.
Properties to override the theme with. See LegacyThemeProps
import {buildLegacyTheme, defineConfig} from 'sanity'export default defineConfig({ // project configuration ... // Customize theming theme: buildLegacyTheme({ '--black': '#000', '--gray': '#777', '--focus-color': '#00f', })}) Copy
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
Build a Sanity UI theme from legacy CSS properties.