nebius/SWE-bench-extra huggingface dataset:
Repository: altair-viz/altair

Issue:
Support built-in vega themes
See [vega-themes](https://github.com/vega/vega-themes). Themes should be supported via the current theme infrastructure, maybe something like this:
```python
alt.themes.enable('vega.themes.dark')
```
We'll have to think about how to best populate the list of available themes, and how to make this work cleanly with user-specified themes from within Altair.

Comments:

Patch:
diff --git a/altair/vegalite/v3/theme.py b/altair/vegalite/v3/theme.py
index 54fc6e58..9d7b67b7 100644
--- a/altair/vegalite/v3/theme.py
+++ b/altair/vegalite/v3/theme.py
@@ -2,6 +2,23 @@
 
 from ...utils.theme import ThemeRegistry
 
+VEGA_THEMES = ['ggplot2', 'quartz', 'vox', 'fivethirtyeight', 'dark', 'latimes']
+
+
+class VegaTheme(object):
+    """Implementation of a builtin vega theme."""
+    def __init__(self, theme):
+        self.theme = theme
+        
+    def __call__(self):
+        return {"usermeta": {"embedOptions": {"theme": self.theme}},
+                "config": {"view": {"width": 400, "height": 300},
+                           "mark": {"tooltip": None}}}
+
+    def __repr__(self):
+        return "VegaTheme({!r})".format(self.theme)
+
+
 # The entry point group that can be used by other packages to declare other
 # renderers that will be auto-detected. Explicit registration is also
 # allowed by the PluginRegistery API.
@@ -14,4 +31,8 @@ themes.register('opaque', lambda: {"config": {"background": "white",
                                               "view": {"width": 400, "height": 300},
                                               "mark": {"tooltip": None}}})
 themes.register('none', lambda: {})
+  
+for theme in VEGA_THEMES:
+    themes.register(theme, VegaTheme(theme))
+
 themes.enable('default')


Test patch:
diff --git a/altair/vegalite/v3/tests/test_theme.py b/altair/vegalite/v3/tests/test_theme.py
new file mode 100644
index 00000000..5e1fa361
--- /dev/null
+++ b/altair/vegalite/v3/tests/test_theme.py
@@ -0,0 +1,17 @@
+import pytest
+
+import altair.vegalite.v3 as alt
+from altair.vegalite.v3.theme import VEGA_THEMES
+
+
+@pytest.fixture
+def chart():
+    return alt.Chart('data.csv').mark_bar().encode(x='x:Q')
+
+def test_vega_themes(chart):
+    for theme in VEGA_THEMES:
+        with alt.themes.enable(theme):
+            dct = chart.to_dict()
+        assert dct['usermeta'] == {'embedOptions': {'theme': theme}}
+        assert dct['config'] == {"view": {"width": 400, "height": 300},
+                                 "mark": {"tooltip": None}}