@breathe-ds/ui 0.0.0-stage → 0.1.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.
package/theme.css ADDED
@@ -0,0 +1,40 @@
1
+ /*
2
+ @breathe-ds/ui — theme.css (tokens-first, v0.1)
3
+
4
+ Contrato de tokens da família Cuidado Global (ecossistema RTA/Mariangela).
5
+ As CORES são PAPÉIS: o valor de cada uma vem de uma CSS var `--cg-*` que
6
+ CADA SITE define (ttcab petróleo/creme, creeta petróleo/névoa/magenta…).
7
+ Assim os sites herdam a MESMA estrutura e nomes, com a própria paleta.
8
+
9
+ Uso no globals.css de um site (Tailwind v4):
10
+ @import "tailwindcss";
11
+ @import "@breathe-ds/ui/theme.css";
12
+ @import "@breathe-ds/ui/tokens/ttcab.css"; (ou defina os --cg-* inline)
13
+
14
+ Escalas fixas (tipografia-papel, raio, motion) são compartilhadas aqui.
15
+ Contrastes medidos de cada paleta: ver README.md e os arquivos tokens/*.
16
+ */
17
+ @theme {
18
+ /* ── Cores (papéis) — valor vem dos --cg-* do site ── */
19
+ --color-surface: var(--cg-surface); /* fundo base */
20
+ --color-surface-panel: var(--cg-surface-panel); /* painel escuro (footer/CTA) */
21
+ --color-ink: var(--cg-ink); /* texto principal / títulos */
22
+ --color-ink-soft: var(--cg-ink-soft); /* texto secundário */
23
+ --color-ink-body: var(--cg-ink-body); /* corpo de leitura */
24
+ --color-action: var(--cg-action); /* CTA/destaque — nunca texto puro */
25
+ --color-action-text: var(--cg-action-text); /* texto na cor de ação (AA) */
26
+ --color-on-action: var(--cg-on-action); /* texto SOBRE a cor de ação (botão) */
27
+ --color-line: var(--cg-line); /* hairlines/bordas */
28
+
29
+ /* ── Tipografia (papéis; família real vem dos --cg-font-*) ── */
30
+ --font-heading: var(--cg-font-heading, system-ui, sans-serif);
31
+ --font-body: var(--cg-font-body, Arial, system-ui, sans-serif);
32
+
33
+ /* ── Raio ── */
34
+ --radius-xl: 24px;
35
+ --radius-2xl: 28px;
36
+ --radius-pill: 9999px;
37
+
38
+ /* ── Motion — curva assinatura da família ── */
39
+ --ease-cg: cubic-bezier(0.2, 0.8, 0.2, 1);
40
+ }
@@ -0,0 +1,21 @@
1
+ /*
2
+ Paleta Creeta (clínica RTA em Floripa) — petróleo + névoa + magenta.
3
+ Valores do novo.creeta. Contrastes medidos (fórmula WCAG):
4
+ - surface #eef3f4 / ink #144753 ............ ~9,1:1 (AAA)
5
+ - surface #eef3f4 / ink-soft #52707a ....... ~4,7:1 (AA)
6
+ - action #ab2781 (magenta) é o CTA ("Agendar"); texto sobre ele = branco.
7
+ */
8
+ :root {
9
+ --cg-surface: #eef3f4; /* névoa */
10
+ --cg-surface-panel: #144753; /* petróleo */
11
+ --cg-ink: #144753; /* petróleo */
12
+ --cg-ink-soft: #52707a;
13
+ --cg-ink-body: #1e4f5b;
14
+ --cg-action: #ab2781; /* magenta (Agendar) */
15
+ --cg-action-text: #8f1f6c; /* magenta mais escuro p/ texto */
16
+ --cg-on-action: #ffffff; /* branco sobre magenta */
17
+ --cg-line: rgb(20 71 83 / 0.16);
18
+ --cg-font-heading: var(--font-quicksand), system-ui, sans-serif; /* Quicksand */
19
+ --cg-font-body: var(--font-figtree), system-ui, sans-serif; /* Figtree */
20
+ }
21
+ CSS
@@ -0,0 +1,21 @@
1
+ /*
2
+ Paleta NEUTRA — o padrão do Breathe. O design system é neutro de propósito:
3
+ a cor vem de CADA aplicação (ttcab, creeta…). Use isto como base e sobrescreva
4
+ os --cg-* no :root do seu site. Monocromático (cinza/quase-preto) pra deixar
5
+ claro que é um placeholder "traga sua cor".
6
+ - surface #ffffff / ink #18181b ............ ~17:1 (AAA)
7
+ - surface #ffffff / ink-soft #71717a ....... ~4,8:1 (AA)
8
+ */
9
+ :root {
10
+ --cg-surface: #ffffff;
11
+ --cg-surface-panel: #18181b;
12
+ --cg-ink: #18181b;
13
+ --cg-ink-soft: #71717a;
14
+ --cg-ink-body: #3f3f46;
15
+ --cg-action: #18181b;
16
+ --cg-action-text: #52525b;
17
+ --cg-on-action: #ffffff;
18
+ --cg-line: rgb(0 0 0 / 0.12);
19
+ --cg-font-heading: var(--font-quicksand), system-ui, sans-serif; /* Quicksand (fixo da família) */
20
+ --cg-font-body: var(--font-figtree), system-ui, sans-serif; /* Figtree (fixo da família) */
21
+ }
@@ -0,0 +1,22 @@
1
+ /*
2
+ Paleta TTCAB (petróleo + creme). Contrastes medidos:
3
+ - surface #fbf5e9 / ink #144753 ............ 9,41:1 (AAA)
4
+ - surface #fbf5e9 / ink-soft #54707a ....... 4,86:1 (AA)
5
+ - surface #fbf5e9 / ink-body #1e4f5b ....... 8,32:1 (AAA)
6
+ - surface #fbf5e9 / action-text #9a5d07 .... 4,90:1 (AA)
7
+ - surface-panel #144753 / surface (texto) .. 9,41:1 (AAA)
8
+ - action #f6a22a é DECORATIVO/CTA — nunca texto sobre creme.
9
+ */
10
+ :root {
11
+ --cg-surface: #fbf5e9;
12
+ --cg-surface-panel: #144753;
13
+ --cg-ink: #144753;
14
+ --cg-ink-soft: #54707a;
15
+ --cg-ink-body: #1e4f5b;
16
+ --cg-action: #f6a22a;
17
+ --cg-on-action: #144753; /* ink sobre orange */
18
+ --cg-action-text: #9a5d07;
19
+ --cg-line: rgb(20 71 83 / 0.16);
20
+ --cg-font-heading: var(--font-quicksand), system-ui, sans-serif; /* Quicksand */
21
+ --cg-font-body: var(--font-figtree), system-ui, sans-serif; /* Figtree */
22
+ }