corekit-ui 0.1.25 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # CoreKit UI
2
2
 
3
+ [![CI](https://github.com/soluciones-pc/corekit-ui/actions/workflows/pull-request-jobs.yml/badge.svg?branch=main)](https://github.com/soluciones-pc/corekit-ui/actions/workflows/pull-request-jobs.yml)
3
4
  [![Storybook](https://img.shields.io/badge/docs-storybook-ff4785?logo=storybook)](https://soluciones-pc.github.io/corekit-ui/)
4
5
  [![NPM Version](https://img.shields.io/npm/v/corekit-ui.svg)](https://www.npmjs.com/package/corekit-ui)
5
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
@@ -44,6 +45,16 @@ Importe la hoja de estilos global en el punto de entrada de su aplicación:
44
45
  import 'corekit-ui/styles.css';
45
46
  ```
46
47
 
48
+ ### Configuración de Tema
49
+
50
+ CoreKit UI respeta el tema que defina la aplicación consumidora mediante el atributo `data-theme` en la etiqueta `<html>`.
51
+
52
+ - `data-theme="light"` fuerza tema claro
53
+ - `data-theme="dark"` fuerza tema oscuro
54
+ - `data-theme` vacío o ausente deja que el sistema operativo decida según `prefers-color-scheme`
55
+
56
+ Si tu app ya administra el tema en `index.html` o desde su propio estado global, no necesitas una API adicional dentro de la librería.
57
+
47
58
  ## Guía de Desarrollo
48
59
 
49
60
  ### Scripts Disponibles