
# Temos

shikiphp apima **visą Shiki temų rinkinį**: visas 65 VS Code temas iš [`tm-themes`](https://github.com/shikijs/textmate-grammars-themes) 1.12.2, t. y. rinkinį, kurį pateikia Shiki 3.23.0. 44 temos tamsios, o 21 šviesi. Tarp populiarių identifikatorių yra `github-dark`, `github-light`, `nord`, `dracula`, `vitesse-dark`, `vitesse-light`, `one-dark-pro`, `monokai`, `solarized-dark`, taip pat `catppuccin-*` ir `material-theme-*` šeimos.

Naudokite vieną temą su parinktimi [`theme`](https://shikiphp.inline0.dev/lt/docs/options#theme) arba dvi (ar daugiau) temas su [`themes`](https://shikiphp.inline0.dev/lt/docs/options#themes), kad gautumėte šviesios ir tamsios temos išvestį su CSS kintamaisiais. Žr. [Pradžia](https://shikiphp.inline0.dev/lt/docs/getting-started#dual-themes-light-and-dark).

```php
use Shikiphp\Shikiphp;

echo Shikiphp::codeToHtml('const answer = 42', [
    'lang'   => 'js',
    'themes' => ['light' => 'github-light', 'dark' => 'github-dark'],
]);
```

Jei rinkinyje nėra temos identifikatoriaus, iškeliama `Shikiphp\Exceptions\Highlight` su pranešimu `Unknown theme "…"`.

## Ką valdo tema

Tema nustato bloko priekinio plano ir fono spalvas (įrašomas `<pre>` elemente), taip pat kiekvieno žetono spalvą ir šrifto stilių (kursyvą, paryškinimą, pabraukimą ir perbraukimą); tai parenkama pagal parinkiklio specifiškumą. `lang: 'ansi'` atveju jos `terminal.ansi*` spalvos tampa ANSI palete (žr. [ANSI](https://shikiphp.inline0.dev/lt/docs/ansi)). Jei norite keisti atskiras spalvas neredaguodami temos, naudokite [`colorReplacements`](https://shikiphp.inline0.dev/lt/docs/options#colorreplacements).

## Įtrauktų temų sąrašas

Iš PHP:

```php
use Shikiphp\Shikiphp;

$highlighter = Shikiphp::highlighter();

$highlighter->bundledThemes(); // list<string> — ids shipped in the box
$highlighter->loadedThemes();  // list<string> — bundled plus any you registered
```

Arba komandinėje eilutėje, po vieną identifikatorių eilutėje, abėcėlės tvarka:

```bash
vendor/bin/shikiphp themes
```

## Katalogas

Tipas nurodo, ar rinkinys kiekvienai temai priskiria `light`, ar `dark` tipą. Tai naudinga renkantis porą parinkčiai `themes`.

| Tema | Identifikatorius | Tipas |
| --- | --- | --- |
| Andromeeda | `andromeeda` | tamsi |
| Aurora X | `aurora-x` | tamsi |
| Ayu Dark | `ayu-dark` | tamsi |
| Ayu Light | `ayu-light` | šviesi |
| Ayu Mirage | `ayu-mirage` | tamsi |
| Catppuccin Frappé | `catppuccin-frappe` | tamsi |
| Catppuccin Latte | `catppuccin-latte` | šviesi |
| Catppuccin Macchiato | `catppuccin-macchiato` | tamsi |
| Catppuccin Mocha | `catppuccin-mocha` | tamsi |
| Dark Plus | `dark-plus` | tamsi |
| Dracula Theme | `dracula` | tamsi |
| Dracula Theme Soft | `dracula-soft` | tamsi |
| Everforest Dark | `everforest-dark` | tamsi |
| Everforest Light | `everforest-light` | šviesi |
| GitHub Dark | `github-dark` | tamsi |
| GitHub Dark Default | `github-dark-default` | tamsi |
| GitHub Dark Dimmed | `github-dark-dimmed` | tamsi |
| GitHub Dark High Contrast | `github-dark-high-contrast` | tamsi |
| GitHub Light | `github-light` | šviesi |
| GitHub Light Default | `github-light-default` | šviesi |
| GitHub Light High Contrast | `github-light-high-contrast` | šviesi |
| Gruvbox Dark Hard | `gruvbox-dark-hard` | tamsi |
| Gruvbox Dark Medium | `gruvbox-dark-medium` | tamsi |
| Gruvbox Dark Soft | `gruvbox-dark-soft` | tamsi |
| Gruvbox Light Hard | `gruvbox-light-hard` | šviesi |
| Gruvbox Light Medium | `gruvbox-light-medium` | šviesi |
| Gruvbox Light Soft | `gruvbox-light-soft` | šviesi |
| Horizon | `horizon` | tamsi |
| Horizon Bright | `horizon-bright` | šviesi |
| Houston | `houston` | tamsi |
| Kanagawa Dragon | `kanagawa-dragon` | tamsi |
| Kanagawa Lotus | `kanagawa-lotus` | šviesi |
| Kanagawa Wave | `kanagawa-wave` | tamsi |
| LaserWave | `laserwave` | tamsi |
| Light Plus | `light-plus` | šviesi |
| Material Theme | `material-theme` | tamsi |
| Material Theme Darker | `material-theme-darker` | tamsi |
| Material Theme Lighter | `material-theme-lighter` | šviesi |
| Material Theme Ocean | `material-theme-ocean` | tamsi |
| Material Theme Palenight | `material-theme-palenight` | tamsi |
| Min Dark | `min-dark` | tamsi |
| Min Light | `min-light` | šviesi |
| Monokai | `monokai` | tamsi |
| Night Owl | `night-owl` | tamsi |
| Night Owl Light | `night-owl-light` | šviesi |
| Nord | `nord` | tamsi |
| One Dark Pro | `one-dark-pro` | tamsi |
| One Light | `one-light` | šviesi |
| Plastic | `plastic` | tamsi |
| Poimandres | `poimandres` | tamsi |
| Red | `red` | tamsi |
| Rosé Pine | `rose-pine` | tamsi |
| Rosé Pine Dawn | `rose-pine-dawn` | šviesi |
| Rosé Pine Moon | `rose-pine-moon` | tamsi |
| Slack Dark | `slack-dark` | tamsi |
| Slack Ochin | `slack-ochin` | šviesi |
| Snazzy Light | `snazzy-light` | šviesi |
| Solarized Dark | `solarized-dark` | tamsi |
| Solarized Light | `solarized-light` | šviesi |
| Synthwave '84 | `synthwave-84` | tamsi |
| Tokyo Night | `tokyo-night` | tamsi |
| Vesper | `vesper` | tamsi |
| Vitesse Black | `vitesse-black` | tamsi |
| Vitesse Dark | `vitesse-dark` | tamsi |
| Vitesse Light | `vitesse-light` | šviesi |

## Savo kalbos pridėjimas

Užregistruokite pasirinktinę VS Code temą JSON per `loadTheme`. Žr. [Pasirinktinės kalbos ir temos](https://shikiphp.inline0.dev/lt/docs/custom-languages-themes).
