# Set Mito Spreadsheet Theme

## Example

Use the `theme` argument to set the text and background colors used in the spreadsheet.&#x20;

```python
from mitosheet.mito_dash.v1 import Spreadsheet, activate_mito
from dash import Dash, html
import pandas as pd

app = Dash(__name__)
activate_mito(app)

df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/gapminder2007.csv')

app.layout = html.Div([
    html.H1('Simple Theme Example'),
    Spreadsheet(
        df, 
        id={'type': 'spreadsheet', 'id': 'sheet'}, 
        theme={
            'primaryColor': '#f5c107', 
            'backgroundColor': '#0f0f0f', 
            'secondaryBackgroundColor': '#515251', 
            'textColor': '#ffffff'
        }
    ),
])

if __name__ == '__main__':
    app.run_server(debug=True)
```

<figure><img src="https://2294704369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MP_U5ZCmiamDOXEOOTC%2Fuploads%2FdbQfX7lEUUiFTTz1sXze%2FScreenshot%202024-07-09%20at%2011.24.40%E2%80%AFAM.png?alt=media&#x26;token=e843ef6f-7335-4747-8b62-7bc9b1841f81" alt=""><figcaption></figcaption></figure>
