# Themes

Markdown can be themed by specifying a theme attribute, e.g.;

```
<markdown theme="theme1">
 ...
</markdown>
```

When unspecified, this will default to a theme named `default`.&#x20;

This attribute allows you to target CSS directly on the markdown.

The default theme includes some basic table styling and nothing more.&#x20;

### Custom Themes

When a markdown element is converted to markdown it is wrapped in a DIV with an attribute of theme=theme-name, according to your specified theme or `default`.  &#x20;

This can be used in CSS for example;&#x20;

```scss
[theme=default] table {
    border-spacing: 10px 10px; 
    margin-bottom: 1rem; 
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://attr.sygnal.com/sa5-html/markdown/themes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
