Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options.theme Not working and unclear what it should do #104

Open
mitchuman opened this issue Jun 5, 2024 · 0 comments
Open

options.theme Not working and unclear what it should do #104

mitchuman opened this issue Jun 5, 2024 · 0 comments

Comments

@mitchuman
Copy link

If you find a security vulnerability, do NOT open an issue. Email [email protected] instead.

Describe the bug

The theme option does not seem to work? Should it update the theme inside the Sanity Studio or does it set the default theme name in the JSON output?

To Reproduce

defineField({
	type: 'code',
	options: {
		theme: 'dark-plus', // 👈
		withFilename: true,
	},
})

Expected behavior

Also not mentioned in documentation what the option specifically does.

Which versions of Sanity are you using?

@sanity/cli (global)          3.38.0 (latest: 3.45.0)
@sanity/code-input             4.1.4 (up to date)
@sanity/dashboard              3.1.6 (up to date)
@sanity/eslint-config-studio   4.0.0 (up to date)
@sanity/vision                3.45.0 (up to date)
sanity                        3.45.0 (up to date)

What operating system are you using?
macOS Sonoma 14.5

Which versions of Node.js / npm are you running?

9.5.0
v18.15.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant