Files
fn_registry/functions/tui/default_styles.md
T
egutierrez 62dcadceb8 feat: 29 funciones TUI — constructores, runners y helpers del dominio tui
16 constructores puros (NewList, NewSpinner, NewProgress, DefaultStyles...),
4 runners impuros (RunModel, RunFullscreen, RunWithMouseSupport, Confirm),
5 print helpers impuros (PrintSuccess/Error/Warning/Info/Muted) y
4 utilidades puras (Quit, ClearScreen, HideCursor, ShowCursor).
Stubs que documentan devfactory/tui para el registry.
2026-03-28 03:58:12 +01:00

33 lines
701 B
Markdown

---
name: default_styles
kind: function
lang: go
domain: tui
version: "1.0.0"
purity: pure
signature: "func DefaultStyles() Styles"
description: "Construye estilos por defecto combinando DefaultTheme con NewStyles. Atajo conveniente para el caso comun."
tags: [tui, styles, constructor]
uses_functions: []
uses_types: []
returns: [styles_go_tui]
returns_optional: false
error_type: ""
imports: []
tested: false
tests: []
test_file_path: ""
file_path: "functions/tui/default_styles.go"
---
## Ejemplo
```go
styles := DefaultStyles()
model := NewSpinnerWithStyle("Cargando...", styles)
```
## Notas
Equivalente a NewStyles(DefaultTheme()). Usa esta funcion cuando no necesitas personalizar el tema.