Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

GeneratedTheme

interfaz Since 1.4.0

Temas de la aplicación. Está vacía en el paquete: con theme en meeko.config.ts, la amplían las declaraciones generadas en .meeko/types/routes.d.ts (meeko check), y con ellas useTheme() tipa sus temas como la unión literal de themes. Sin esas declaraciones, los temas son string.

ts
import type { GeneratedTheme } from "@meekojs/meeko/framework";

Source code src/framework.ts:110

Declaración #

ts
interface GeneratedTheme {}

Example #

ts
// .meeko/types/routes.d.ts (generado por meeko routes / meeko check)
declare module "@meekojs/meeko/framework" {
  interface GeneratedTheme {
    readonly themes: "light" | "dark";
    readonly choices: "light" | "dark" | "system";
  }
}

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/framework.ts