@dybo-ai/design 1.2.0 → 2.0.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.
- package/CLAUDE.md +35 -28
- package/README.md +59 -31
- package/dist/index.cjs +1417 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +396 -3
- package/dist/index.d.ts +396 -3
- package/dist/index.js +1382 -68
- package/dist/index.js.map +1 -1
- package/legacy-theme.css +1112 -0
- package/package.json +3 -1
- package/portal-tokens.css +8 -184
- package/theme.css +1649 -405
- package/tokens.cjs +219 -124
- package/tokens.json +223 -162
- package/tokens.mjs +199 -124
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dybo-ai/design",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "DYBO design system — tokens, Tailwind V4 theme, theme CSS, and React components.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"./tokens.json": "./tokens.json",
|
|
22
22
|
"./theme.css": "./theme.css",
|
|
23
|
+
"./legacy-theme.css": "./legacy-theme.css",
|
|
23
24
|
"./portal-tokens.css": "./portal-tokens.css",
|
|
24
25
|
"./assets/*": "./assets/*"
|
|
25
26
|
},
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
"tokens.mjs",
|
|
32
33
|
"tokens.cjs",
|
|
33
34
|
"theme.css",
|
|
35
|
+
"legacy-theme.css",
|
|
34
36
|
"portal-tokens.css",
|
|
35
37
|
"dist",
|
|
36
38
|
"assets",
|
package/portal-tokens.css
CHANGED
|
@@ -1,184 +1,8 @@
|
|
|
1
|
-
/*
|
|
2
|
-
DYBO
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
:root {
|
|
10
|
-
|
|
11
|
-
/* CORES SEMÂNTICAS */
|
|
12
|
-
--background: 216 25% 92%; /* cinza-azulado claro — fundo da página */
|
|
13
|
-
--foreground: 218 56% 9%; /* azul muito escuro — texto principal */
|
|
14
|
-
|
|
15
|
-
--card: 214 41% 97%; /* quase branco levemente azul — superfície de card */
|
|
16
|
-
--card-foreground: 218 56% 9%; /* igual ao foreground */
|
|
17
|
-
|
|
18
|
-
--popover: 0 0% 100%; /* branco puro — modais/dropdowns */
|
|
19
|
-
--popover-foreground: 218 56% 9%;
|
|
20
|
-
|
|
21
|
-
--primary: 218 56% 9%; /* azul muito escuro — ação principal */
|
|
22
|
-
--primary-foreground: 0 0% 100%; /* branco — texto sobre primary */
|
|
23
|
-
|
|
24
|
-
--secondary: 0 0% 100%; /* branco — ação secundária */
|
|
25
|
-
--secondary-foreground: 218 56% 9%;
|
|
26
|
-
|
|
27
|
-
--muted: 216 16% 88%; /* cinza-azulado — fundos sutis */
|
|
28
|
-
--muted-foreground: 216 31% 50%; /* azul médio — texto de suporte */
|
|
29
|
-
|
|
30
|
-
--accent: 219 52% 24%; /* índigo escuro — destaque/hover */
|
|
31
|
-
--accent-foreground: 214 41% 97%;
|
|
32
|
-
|
|
33
|
-
--destructive: 355 95% 60%; /* vermelho — erro/destruição */
|
|
34
|
-
--destructive-foreground: 0 0% 100%;
|
|
35
|
-
|
|
36
|
-
--border: 0 0% 100%; /* branco — borda em light mode (sutil) */
|
|
37
|
-
--input: 240 14% 96%; /* quase branco — fundo de inputs */
|
|
38
|
-
--ring: 219 52% 24%; /* índigo — foco/outline */
|
|
39
|
-
|
|
40
|
-
/* CORES DE STATUS */
|
|
41
|
-
--success: 150 68% 74%;
|
|
42
|
-
--success-foreground: 218 56% 9%;
|
|
43
|
-
--success-background: 151 45% 89%;
|
|
44
|
-
|
|
45
|
-
--warning: 30 100% 40%;
|
|
46
|
-
--warning-foreground: 218 56% 9%;
|
|
47
|
-
--warning-background: 30 100% 95%;
|
|
48
|
-
|
|
49
|
-
--error: 30 100% 40%;
|
|
50
|
-
--error-foreground: 0 0% 100%;
|
|
51
|
-
--error-background: 30 100% 95%;
|
|
52
|
-
|
|
53
|
-
--info: 216 31% 50%;
|
|
54
|
-
--info-foreground: 218 56% 9%;
|
|
55
|
-
--info-background: 216 31% 89%;
|
|
56
|
-
|
|
57
|
-
/* CORES DE MARCA */
|
|
58
|
-
--brand-dark-orb: 224 32% 12%; /* azul-marinho muito escuro */
|
|
59
|
-
--brand-indigo: 219 52% 24%; /* índigo — ícones inativos light */
|
|
60
|
-
--brand-blue-yonder: 216 31% 50%; /* azul médio — ícones inativos dark */
|
|
61
|
-
--brand-gainsboro: 216 16% 88%; /* cinza-azulado claro */
|
|
62
|
-
--brand-cultured: 214 41% 97%; /* quase branco */
|
|
63
|
-
--brand-dandelion: 54 81% 55%; /* amarelo — acento */
|
|
64
|
-
--brand-black: 0 0% 0%;
|
|
65
|
-
--brand-white: 0 0% 100%;
|
|
66
|
-
|
|
67
|
-
/* RAIOS DE BORDA */
|
|
68
|
-
--radius-none: 0px;
|
|
69
|
-
--radius-sm: 12px; /* padrão para inputs, selects, cards */
|
|
70
|
-
--radius-md: 20px; /* padrão para dropdowns, botões pill */
|
|
71
|
-
--radius-full: 999px; /* pílulas e avatares */
|
|
72
|
-
--radius: var(--radius-md);
|
|
73
|
-
|
|
74
|
-
/* OPACIDADES SEMÂNTICAS */
|
|
75
|
-
--opacity-semi-opaque: 0.40; /* desabilitado */
|
|
76
|
-
--opacity-intense: 0.64; /* texto secundário/labels */
|
|
77
|
-
--opacity-medium: 0.32;
|
|
78
|
-
--opacity-light: 0.16;
|
|
79
|
-
--opacity-semi-transparent:0.08;
|
|
80
|
-
|
|
81
|
-
/* SOMBRAS */
|
|
82
|
-
--shadow-level-1: 0px 4px 8px #1419271f; /* cards, sidebar pill */
|
|
83
|
-
--shadow-level-2: 0px 8px 28px #14192729; /* modais */
|
|
84
|
-
|
|
85
|
-
/* SUPERFÍCIES COM OPACIDADE FIXA */
|
|
86
|
-
--card-bg-with-opacity: rgba(240, 241, 244, 0.92); /* variante de card com alta opacidade — upload zones, painéis */
|
|
87
|
-
|
|
88
|
-
/* TIPOGRAFIA */
|
|
89
|
-
--font-display: "Urbanist", sans-serif;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/* ---- DARK MODE ---- */
|
|
93
|
-
.dark {
|
|
94
|
-
--card-bg-with-opacity: rgba(18, 26, 45, 0.92); /* variante dark do card com alta opacidade */
|
|
95
|
-
--background: 218 56% 9%; /* azul escuro */
|
|
96
|
-
--foreground: 244 20% 96%; /* quase branco */
|
|
97
|
-
|
|
98
|
-
--card: 218 35% 13%;
|
|
99
|
-
--card-foreground: 244 20% 96%;
|
|
100
|
-
|
|
101
|
-
--popover: 218 15% 12%;
|
|
102
|
-
--popover-foreground: 244 20% 96%;
|
|
103
|
-
|
|
104
|
-
--primary: 244 20% 96%; /* invertido: claro sobre escuro */
|
|
105
|
-
--primary-foreground: 218 56% 9%;
|
|
106
|
-
|
|
107
|
-
--secondary: 218 35% 13%;
|
|
108
|
-
--secondary-foreground: 244 20% 96%;
|
|
109
|
-
|
|
110
|
-
--muted: 210 15% 30%;
|
|
111
|
-
--muted-foreground: 244 20% 80%;
|
|
112
|
-
|
|
113
|
-
--accent: 216 31% 50%;
|
|
114
|
-
--accent-foreground: 244 20% 96%;
|
|
115
|
-
|
|
116
|
-
--destructive: 0 78% 55%;
|
|
117
|
-
--destructive-foreground: 244 20% 96%;
|
|
118
|
-
|
|
119
|
-
--border: 210 15% 30%; /* cinza escuro — borda visível em dark */
|
|
120
|
-
--input: 218 35% 13%;
|
|
121
|
-
--ring: 244 20% 96%;
|
|
122
|
-
|
|
123
|
-
--success-background: 150 68% 26%;
|
|
124
|
-
--warning-background: 30 100% 22%;
|
|
125
|
-
--error-background: 30 100% 22%;
|
|
126
|
-
--info-background: 216 31% 28%;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/* ============================================================
|
|
130
|
-
CLASSES UTILITÁRIAS CUSTOMIZADAS
|
|
131
|
-
(não geradas automaticamente pelo Tailwind)
|
|
132
|
-
============================================================ */
|
|
133
|
-
|
|
134
|
-
.opacity-intense { opacity: var(--opacity-intense); }
|
|
135
|
-
.opacity-medium { opacity: var(--opacity-medium); }
|
|
136
|
-
.opacity-light { opacity: var(--opacity-light); }
|
|
137
|
-
.opacity-semi-opaque { opacity: var(--opacity-semi-opaque); }
|
|
138
|
-
.opacity-semi-transparent{ opacity: var(--opacity-semi-transparent); }
|
|
139
|
-
|
|
140
|
-
.shadow-level-1 { box-shadow: var(--shadow-level-1); }
|
|
141
|
-
.shadow-level-2 { box-shadow: var(--shadow-level-2); }
|
|
142
|
-
|
|
143
|
-
.font-display { font-family: var(--font-display); }
|
|
144
|
-
.font-body { font-family: var(--font-display); }
|
|
145
|
-
|
|
146
|
-
.line-clamp-2 {
|
|
147
|
-
display: -webkit-box;
|
|
148
|
-
-webkit-line-clamp: 2;
|
|
149
|
-
-webkit-box-orient: vertical;
|
|
150
|
-
overflow: hidden;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/* ============================================================
|
|
154
|
-
ESTILOS BASE
|
|
155
|
-
============================================================ */
|
|
156
|
-
|
|
157
|
-
* { border-color: hsl(var(--border)); }
|
|
158
|
-
|
|
159
|
-
html { scrollbar-gutter: stable; }
|
|
160
|
-
|
|
161
|
-
body {
|
|
162
|
-
font-family: var(--font-display);
|
|
163
|
-
background-color: hsl(var(--background));
|
|
164
|
-
color: hsl(var(--foreground));
|
|
165
|
-
margin: 0;
|
|
166
|
-
line-height: 1.5;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/* Transição suave entre light/dark */
|
|
170
|
-
body,
|
|
171
|
-
[class*="bg-"],
|
|
172
|
-
[class*="text-"],
|
|
173
|
-
[class*="border-"] {
|
|
174
|
-
transition:
|
|
175
|
-
color .3s cubic-bezier(.4,0,.2,1),
|
|
176
|
-
background-color .3s cubic-bezier(.4,0,.2,1),
|
|
177
|
-
border-color .3s cubic-bezier(.4,0,.2,1);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/* Scrollbar customizada */
|
|
181
|
-
::-webkit-scrollbar { width: 8px; }
|
|
182
|
-
::-webkit-scrollbar-track { background-color: hsl(var(--secondary)); }
|
|
183
|
-
::-webkit-scrollbar-thumb { border-radius: var(--radius-full); background-color: hsl(var(--muted-foreground)); }
|
|
184
|
-
::-webkit-scrollbar-thumb:hover { background-color: hsl(var(--foreground)); }
|
|
1
|
+
/* =========================================================================
|
|
2
|
+
DYBO Client Portal tokens — DEPRECATED ALIAS
|
|
3
|
+
`portal` was promoted to the package default in 2.0.0: this file is now
|
|
4
|
+
identical to `theme.css`. Import `theme.css` directly instead — this file
|
|
5
|
+
is kept only so existing `<link>`/`@import` references keep working, and
|
|
6
|
+
will be removed in 3.0.
|
|
7
|
+
========================================================================= */
|
|
8
|
+
@import "./theme.css";
|