@financinha/ui 0.0.0-stage → 0.10.1

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,72 @@
1
+ /**
2
+ * @financinha/ui — camada de estilo dos componentes (contrato shadcn/ui).
3
+ *
4
+ * Publicado como dist/components.css e importado por dist/styles.css (a
5
+ * entrada que o consumidor usa). As cores/radius vêm de @financinha/tokens;
6
+ * este arquivo só faz a ponte com o que o shadcn espera.
7
+ */
8
+
9
+ /*
10
+ * Vars cruas do contrato shadcn (`var(--popover)`, `var(--radius)`, …), usadas
11
+ * dentro de alguns componentes e em qualquer snippet copiado da doc do shadcn.
12
+ * Apontam para os `--ds-*` — declaradas também em `.dark` para recalcular
13
+ * quando o tema escuro é aplicado num subtree (não só no <html>).
14
+ */
15
+ :root,
16
+ .dark {
17
+ --background: var(--ds-background);
18
+ --foreground: var(--ds-foreground);
19
+ --card: var(--ds-card);
20
+ --card-foreground: var(--ds-card-foreground);
21
+ --popover: var(--ds-popover);
22
+ --popover-foreground: var(--ds-popover-foreground);
23
+ --primary: var(--ds-primary);
24
+ --primary-foreground: var(--ds-primary-foreground);
25
+ --secondary: var(--ds-secondary);
26
+ --secondary-foreground: var(--ds-secondary-foreground);
27
+ --muted: var(--ds-muted);
28
+ --muted-foreground: var(--ds-muted-foreground);
29
+ --accent: var(--ds-accent);
30
+ --accent-foreground: var(--ds-accent-foreground);
31
+ --destructive: var(--ds-destructive);
32
+ --border: var(--ds-border);
33
+ --input: var(--ds-input);
34
+ --ring: var(--ds-ring);
35
+ --chart-1: var(--ds-chart-1);
36
+ --chart-2: var(--ds-chart-2);
37
+ --chart-3: var(--ds-chart-3);
38
+ --chart-4: var(--ds-chart-4);
39
+ --chart-5: var(--ds-chart-5);
40
+ --sidebar: var(--ds-sidebar);
41
+ --sidebar-foreground: var(--ds-sidebar-foreground);
42
+ --sidebar-primary: var(--ds-sidebar-primary);
43
+ --sidebar-primary-foreground: var(--ds-sidebar-primary-foreground);
44
+ --sidebar-accent: var(--ds-sidebar-accent);
45
+ --sidebar-accent-foreground: var(--ds-sidebar-accent-foreground);
46
+ --sidebar-border: var(--ds-sidebar-border);
47
+ --sidebar-ring: var(--ds-sidebar-ring);
48
+ --radius: var(--ds-radius-lg); /* base 10px → sm 4 · md 6 · lg 10 */
49
+ }
50
+
51
+ /*
52
+ * Pulso do Skeleton: mais forte (vai até 40% de opacidade) e mais rápido (1,5 s) que o
53
+ * `animate-pulse` padrão do Tailwind (50%, 2 s).
54
+ */
55
+ @keyframes ds-skeleton-pulse {
56
+ 0%,
57
+ 100% {
58
+ opacity: 1;
59
+ }
60
+ 50% {
61
+ opacity: 0.4;
62
+ }
63
+ }
64
+
65
+ @layer base {
66
+ * {
67
+ @apply border-border outline-ring/40;
68
+ }
69
+ body {
70
+ @apply bg-background text-foreground font-sans;
71
+ }
72
+ }