@celke/kole-react 0.1.0 → 0.3.0

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.
@@ -0,0 +1,82 @@
1
+ /* ============================================================
2
+ Celke Kole — ponte com o Tailwind 4 (opcional).
3
+ Importe no CSS do app, DEPOIS do Tailwind:
4
+
5
+ @layer theme, base, kole, components, utilities;
6
+ @import 'tailwindcss';
7
+ @import '@celke/kole-react/tailwind.css';
8
+
9
+ - `dark:` passa a seguir o tema do kole (<html data-theme>), não o do
10
+ sistema — com `data-theme="system"`, segue o sistema.
11
+ - Os tokens viram utilitários com o MESMO nome: --pri → bg-pri,
12
+ --ink → text-ink, --border → border-border, --r-card → rounded-card.
13
+ São `var(--token)`, então trocam de tema junto com o kole.
14
+ ============================================================ */
15
+
16
+ @custom-variant dark {
17
+ &:where([data-theme='dark'], [data-theme='dark'] *, .theme-dark, .theme-dark *) {
18
+ @slot;
19
+ }
20
+ @media (prefers-color-scheme: dark) {
21
+ &:where([data-theme='system'], [data-theme='system'] *) {
22
+ @slot;
23
+ }
24
+ }
25
+ }
26
+
27
+ @theme inline {
28
+ /* superfícies e texto */
29
+ --color-bg: var(--bg);
30
+ --color-surface: var(--surface);
31
+ --color-surf-2: var(--surf-2);
32
+ --color-surf-3: var(--surf-3);
33
+ --color-surf-raised: var(--surf-raised);
34
+ --color-border: var(--border);
35
+ --color-border-2: var(--border-2);
36
+ --color-ink: var(--ink);
37
+ --color-t2: var(--t2);
38
+ --color-t3: var(--t3);
39
+ --color-t4: var(--t4);
40
+ --color-t5: var(--t5);
41
+ --color-tdis: var(--tdis);
42
+
43
+ /* marca e ação */
44
+ --color-pri: var(--pri);
45
+ --color-pri-bg: var(--pri-bg);
46
+ --color-pri-bd: var(--pri-bd);
47
+ --color-pri-ink: var(--pri-ink);
48
+ --color-on-pri: var(--on-pri);
49
+ --color-navy: var(--navy);
50
+ --color-acento: var(--acento);
51
+ --color-destaque-ink: var(--destaque-ink);
52
+ --color-destaque-fg: var(--destaque-fg);
53
+
54
+ /* severidades */
55
+ --color-ok-fg: var(--ok-fg);
56
+ --color-ok-bg: var(--ok-bg);
57
+ --color-ok-bd: var(--ok-bd);
58
+ --color-ok-solid: var(--ok-solid);
59
+ --color-warn-fg: var(--warn-fg);
60
+ --color-warn-bg: var(--warn-bg);
61
+ --color-warn-bd: var(--warn-bd);
62
+ --color-warn-solid: var(--warn-solid);
63
+ --color-err-fg: var(--err-fg);
64
+ --color-err-bg: var(--err-bg);
65
+ --color-err-bd: var(--err-bd);
66
+ --color-err-solid: var(--err-solid);
67
+ --color-info-fg: var(--info-fg);
68
+ --color-info-bg: var(--info-bg);
69
+ --color-info-bd: var(--info-bd);
70
+ --color-info-solid: var(--info-solid);
71
+
72
+ /* raios */
73
+ --radius-field: var(--r-field);
74
+ --radius-btn: var(--r-btn);
75
+ --radius-card: var(--r-card);
76
+ --radius-dialog: var(--r-dialog);
77
+ --radius-pill: var(--r-pill);
78
+
79
+ /* fontes: o font-sans/font-mono do Tailwind viram as do kole */
80
+ --font-sans: var(--font-ui);
81
+ --font-mono: var(--lp-font-mono);
82
+ }