@toski-labs/ds 0.7.0 → 0.8.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/CHANGELOG.md +62 -0
- package/build/css/theme.css +0 -1
- package/build/css/tokens.css +0 -3
- package/build/json/app-tokens.json +2 -130
- package/build/json/app-tokens.koti.json +2 -130
- package/build/json/app-tokens.pawta.json +2 -146
- package/build/json/mobile.json +4 -71
- package/build/json/web.json +0 -2
- package/build/json/web.koti.json +0 -2
- package/build/json/web.pawta.json +0 -18
- package/build/swift/ToskiColors.swift +28 -101
- package/build/swift/ToskiThemeKoti.swift +0 -6
- package/build/swift/ToskiThemePawta.swift +0 -16
- package/build/swift/ToskiTokens.swift +3 -8
- package/dist/generated/tokens.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/build/json/mobile.json
CHANGED
|
@@ -19,33 +19,11 @@
|
|
|
19
19
|
"accentDeep": "#7E3C14",
|
|
20
20
|
"onAccent": "#FFF8EE",
|
|
21
21
|
"critical": "#A3341A",
|
|
22
|
-
"criticalBackground": "#F8E0D4",
|
|
23
|
-
"criticalBorder": "#EBC0AA",
|
|
24
|
-
"success": "#3F6E3B",
|
|
25
|
-
"successBackground": "#E4EEDC",
|
|
26
|
-
"segmentSelected": "#FFFFFF",
|
|
27
|
-
"tabBar": "#FFFDF9",
|
|
28
22
|
"tabIdle": "#7D6858",
|
|
29
23
|
"onCritical": "#FFF8EE",
|
|
30
|
-
"switchOff": "#DCCDB9",
|
|
31
|
-
"toastBackground": "#231B17",
|
|
32
|
-
"toastText": "#F7F1E8",
|
|
33
24
|
"toastAction": "#E8B27C",
|
|
34
25
|
"scrim": "rgba(20,14,10,0.45)",
|
|
35
|
-
"faint": "#B3A190",
|
|
36
26
|
"divider": "#EDE3D6",
|
|
37
|
-
"borderStrong": "#DCCDB9",
|
|
38
|
-
"barInactive": "#DCCDB9",
|
|
39
|
-
"featureCard": "#A9541F",
|
|
40
|
-
"onFeatureCard": "#FFF8EE",
|
|
41
|
-
"onAccentSubtle": "rgba(255,248,238,.18)",
|
|
42
|
-
"lockBackground": "#DB9A5B",
|
|
43
|
-
"onLock": "#FFF8EE",
|
|
44
|
-
"alertBackground": "#F7F1E8",
|
|
45
|
-
"bannerBackground": "rgba(255,253,249,.92)",
|
|
46
|
-
"previewBackdrop": "#EDE3D6",
|
|
47
|
-
"themePreviewCard": "rgba(169,84,31,.35)",
|
|
48
|
-
"unreadBackground": "#F6F7FC",
|
|
49
27
|
"neutralFill": "#F3E4CF",
|
|
50
28
|
"glass": "rgba(255,253,249,0.62)",
|
|
51
29
|
"glassBorder": "#958373",
|
|
@@ -69,33 +47,11 @@
|
|
|
69
47
|
"accentDeep": "#E8B27C",
|
|
70
48
|
"onAccent": "#231B17",
|
|
71
49
|
"critical": "#F09A78",
|
|
72
|
-
"criticalBackground": "#45261A",
|
|
73
|
-
"criticalBorder": "#6A3A26",
|
|
74
|
-
"success": "#9CC48F",
|
|
75
|
-
"successBackground": "#2C3A27",
|
|
76
|
-
"segmentSelected": "#4A3A2E",
|
|
77
|
-
"tabBar": "#1B1511",
|
|
78
50
|
"tabIdle": "#A08B78",
|
|
79
51
|
"onCritical": "#231B17",
|
|
80
|
-
"switchOff": "#5A4A3D",
|
|
81
|
-
"toastBackground": "#F7F1E8",
|
|
82
|
-
"toastText": "#231B17",
|
|
83
52
|
"toastAction": "#A9541F",
|
|
84
53
|
"scrim": "rgba(20,14,10,0.45)",
|
|
85
|
-
"faint": "#6E5D50",
|
|
86
54
|
"divider": "#43352B",
|
|
87
|
-
"borderStrong": "#5A4A3D",
|
|
88
|
-
"barInactive": "#6E5D50",
|
|
89
|
-
"featureCard": "#7E3C14",
|
|
90
|
-
"onFeatureCard": "#FFF8EE",
|
|
91
|
-
"onAccentSubtle": "rgba(255,248,238,.18)",
|
|
92
|
-
"lockBackground": "#3A2D23",
|
|
93
|
-
"onLock": "#F7F1E8",
|
|
94
|
-
"alertBackground": "#3A2D23",
|
|
95
|
-
"bannerBackground": "rgba(46,36,29,.92)",
|
|
96
|
-
"previewBackdrop": "#1B1511",
|
|
97
|
-
"themePreviewCard": "rgba(169,84,31,.35)",
|
|
98
|
-
"unreadBackground": "#33292A",
|
|
99
55
|
"neutralFill": "#3A2D23",
|
|
100
56
|
"glass": "rgba(46,36,29,0.62)",
|
|
101
57
|
"glassBorder": "#806E5E",
|
|
@@ -233,19 +189,8 @@
|
|
|
233
189
|
}
|
|
234
190
|
},
|
|
235
191
|
"radius": {
|
|
236
|
-
"iconBox": 12,
|
|
237
|
-
"button": 14,
|
|
238
|
-
"card": 18,
|
|
239
|
-
"sheet": 28,
|
|
240
|
-
"checkbox": 7,
|
|
241
|
-
"swatch": 3,
|
|
242
192
|
"pdfPage": 4,
|
|
243
|
-
"
|
|
244
|
-
"buttonSmall": 12,
|
|
245
|
-
"segmentTrack": 12,
|
|
246
|
-
"input": 14,
|
|
247
|
-
"tile": 16,
|
|
248
|
-
"notification": 22,
|
|
193
|
+
"inset": 14,
|
|
249
194
|
"appIcon": {
|
|
250
195
|
"radius": 22,
|
|
251
196
|
"side": 96
|
|
@@ -305,13 +250,6 @@
|
|
|
305
250
|
}
|
|
306
251
|
},
|
|
307
252
|
"spacing": {
|
|
308
|
-
"xs": 4,
|
|
309
|
-
"s": 8,
|
|
310
|
-
"m": 12,
|
|
311
|
-
"l": 16,
|
|
312
|
-
"xl": 20,
|
|
313
|
-
"xxl": 24,
|
|
314
|
-
"screenPadding": 20,
|
|
315
253
|
"screenMargin": 24,
|
|
316
254
|
"block": 14
|
|
317
255
|
},
|
|
@@ -338,18 +276,13 @@
|
|
|
338
276
|
"button": {
|
|
339
277
|
"large": {
|
|
340
278
|
"height": 54,
|
|
341
|
-
"radius": "
|
|
279
|
+
"radius": "surface",
|
|
342
280
|
"fontSize": 17,
|
|
343
281
|
"secondaryFontSize": 16
|
|
344
282
|
},
|
|
345
|
-
"card": {
|
|
346
|
-
"height": 46,
|
|
347
|
-
"radius": "buttonSmall",
|
|
348
|
-
"fontSize": 15
|
|
349
|
-
},
|
|
350
283
|
"text": {
|
|
351
|
-
"height":
|
|
352
|
-
"radius": "
|
|
284
|
+
"height": 44,
|
|
285
|
+
"radius": "surface",
|
|
353
286
|
"fontSize": 16,
|
|
354
287
|
"horizontalPadding": 4
|
|
355
288
|
},
|
package/build/json/web.json
CHANGED
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"critical-bg": "#F8E0D4",
|
|
23
23
|
"critical-line": "#EBC0AA",
|
|
24
24
|
"success": "#3F6E3B",
|
|
25
|
-
"success-bg": "#E4EEDC",
|
|
26
25
|
"segment": "#FFFFFF",
|
|
27
26
|
"tabbar": "#FFFDF9",
|
|
28
27
|
"tab-idle": "#7D6858",
|
|
@@ -49,7 +48,6 @@
|
|
|
49
48
|
"critical-bg": "#45261A",
|
|
50
49
|
"critical-line": "#6A3A26",
|
|
51
50
|
"success": "#9CC48F",
|
|
52
|
-
"success-bg": "#2C3A27",
|
|
53
51
|
"segment": "#4A3A2E",
|
|
54
52
|
"tabbar": "#1B1511",
|
|
55
53
|
"tab-idle": "#A08B78",
|
package/build/json/web.koti.json
CHANGED
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"critical-bg": "#F8E0D4",
|
|
23
23
|
"critical-line": "#EBC0AA",
|
|
24
24
|
"success": "#3F6E3B",
|
|
25
|
-
"success-bg": "#E4EEDC",
|
|
26
25
|
"segment": "#FFFFFF",
|
|
27
26
|
"tabbar": "#FFFDF9",
|
|
28
27
|
"tab-idle": "#7D6858",
|
|
@@ -49,7 +48,6 @@
|
|
|
49
48
|
"critical-bg": "#45261A",
|
|
50
49
|
"critical-line": "#6A3A26",
|
|
51
50
|
"success": "#9CC48F",
|
|
52
|
-
"success-bg": "#2C3A27",
|
|
53
51
|
"segment": "#4A3A2E",
|
|
54
52
|
"tabbar": "#1B1511",
|
|
55
53
|
"tab-idle": "#A08B78",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"critical-bg": "#F8E0D4",
|
|
23
23
|
"critical-line": "#EBC0AA",
|
|
24
24
|
"success": "#3F6E3B",
|
|
25
|
-
"success-bg": "#E4EEDC",
|
|
26
25
|
"segment": "#FFFFFF",
|
|
27
26
|
"tabbar": "#FFFDF9",
|
|
28
27
|
"tab-idle": "#7D6858",
|
|
@@ -49,7 +48,6 @@
|
|
|
49
48
|
"critical-bg": "#45261A",
|
|
50
49
|
"critical-line": "#6A3A26",
|
|
51
50
|
"success": "#9CC48F",
|
|
52
|
-
"success-bg": "#2C3A27",
|
|
53
51
|
"segment": "#4A3A2E",
|
|
54
52
|
"tabbar": "#1B1511",
|
|
55
53
|
"tab-idle": "#A08B78",
|
|
@@ -241,22 +239,6 @@
|
|
|
241
239
|
"lilas-claro": "#E3E6F5",
|
|
242
240
|
"circulo-icone": "#5C69A4"
|
|
243
241
|
},
|
|
244
|
-
"mascots": {
|
|
245
|
-
"dog": "#B88250",
|
|
246
|
-
"dogEar": "#6E4529",
|
|
247
|
-
"cat": "#7C8199",
|
|
248
|
-
"catEarInner": "#E8B4B0",
|
|
249
|
-
"catNose": "#D98C8C",
|
|
250
|
-
"outline": {
|
|
251
|
-
"light": "#231B17",
|
|
252
|
-
"dark": "#F4E4CC"
|
|
253
|
-
},
|
|
254
|
-
"eye": {
|
|
255
|
-
"light": "#231B17",
|
|
256
|
-
"dark": "#100C0A"
|
|
257
|
-
},
|
|
258
|
-
"description": "Contorno na cor oposta ao fundo; olhos e focinho escuros."
|
|
259
|
-
},
|
|
260
242
|
"assets": [
|
|
261
243
|
{
|
|
262
244
|
"name": "pawta-icon-light",
|
|
@@ -29,104 +29,60 @@ public enum ToskiColors {
|
|
|
29
29
|
// MARK: Semânticas — compartilhadas com a web
|
|
30
30
|
|
|
31
31
|
/// Fundo das telas
|
|
32
|
-
public static let background
|
|
32
|
+
public static let background = dynamic(light: 0xF7F1E8, dark: 0x231B17)
|
|
33
33
|
/// Cards, listas, campos
|
|
34
|
-
public static let surface
|
|
34
|
+
public static let surface = dynamic(light: 0xFFFFFF, dark: 0x2E241D)
|
|
35
35
|
/// Fundos suaves, caixas de ícone, chips
|
|
36
|
-
public static let tint
|
|
36
|
+
public static let tint = dynamic(light: 0xF3E4CF, dark: 0x3A2D23)
|
|
37
37
|
/// Círculo atrás da Paçoca
|
|
38
|
-
public static let heroBackground
|
|
38
|
+
public static let heroBackground = dynamic(light: 0xEFDCC2, dark: 0x33271F)
|
|
39
39
|
/// Texto principal
|
|
40
|
-
public static let textPrimary
|
|
40
|
+
public static let textPrimary = dynamic(light: 0x231B17, dark: 0xF7F1E8)
|
|
41
41
|
/// Texto de apoio, rótulos
|
|
42
|
-
public static let textSecondary
|
|
42
|
+
public static let textSecondary = dynamic(light: 0x6B5648, dark: 0xC2AE98)
|
|
43
43
|
/// Bordas e divisores
|
|
44
|
-
public static let border
|
|
44
|
+
public static let border = dynamic(light: 0xE6D8C4, dark: 0x43352B)
|
|
45
45
|
/// Botão principal, aba ativa, links
|
|
46
|
-
public static let accent
|
|
46
|
+
public static let accent = dynamic(light: 0xA9541F, dark: 0xDB9A5B)
|
|
47
47
|
/// Ferrugem escura (no escuro, caramelo claro): botão de texto da tela Erro, links ao passar o mouse
|
|
48
|
-
public static let accentDeep
|
|
48
|
+
public static let accentDeep = dynamic(light: 0x7E3C14, dark: 0xE8B27C)
|
|
49
49
|
/// Texto sobre o destaque
|
|
50
|
-
public static let onAccent
|
|
50
|
+
public static let onAccent = dynamic(light: 0xFFF8EE, dark: 0x231B17)
|
|
51
51
|
/// Atrasados, alertas, ações destrutivas
|
|
52
|
-
public static let critical
|
|
53
|
-
/// Fundo de alertas
|
|
54
|
-
public static let criticalBackground = dynamic(light: 0xF8E0D4, dark: 0x45261A)
|
|
55
|
-
/// Borda de cards atrasados
|
|
56
|
-
public static let criticalBorder = dynamic(light: 0xEBC0AA, dark: 0x6A3A26)
|
|
57
|
-
/// Em dia, concluído
|
|
58
|
-
public static let success = dynamic(light: 0x3F6E3B, dark: 0x9CC48F)
|
|
59
|
-
/// Fundo de status positivo
|
|
60
|
-
public static let successBackground = dynamic(light: 0xE4EEDC, dark: 0x2C3A27)
|
|
61
|
-
/// Opção selecionada do controle segmentado
|
|
62
|
-
public static let segmentSelected = dynamic(light: 0xFFFFFF, dark: 0x4A3A2E)
|
|
63
|
-
/// Barra de abas
|
|
64
|
-
public static let tabBar = dynamic(light: 0xFFFDF9, dark: 0x1B1511)
|
|
52
|
+
public static let critical = dynamic(light: 0xA3341A, dark: 0xF09A78)
|
|
65
53
|
/// Aba inativa
|
|
66
|
-
public static let tabIdle
|
|
54
|
+
public static let tabIdle = dynamic(light: 0x7D6858, dark: 0xA08B78)
|
|
67
55
|
|
|
68
56
|
// MARK: Semânticas — só do app
|
|
69
57
|
|
|
70
58
|
/// Texto sobre crítico
|
|
71
|
-
public static let onCritical
|
|
72
|
-
/// Interruptor desligado
|
|
73
|
-
public static let switchOff = dynamic(light: 0xDCCDB9, dark: 0x5A4A3D)
|
|
74
|
-
/// Fundo do toast (invertido)
|
|
75
|
-
public static let toastBackground = dynamic(light: 0x231B17, dark: 0xF7F1E8)
|
|
76
|
-
/// Texto do toast
|
|
77
|
-
public static let toastText = dynamic(light: 0xF7F1E8, dark: 0x231B17)
|
|
59
|
+
public static let onCritical = dynamic(light: 0xFFF8EE, dark: 0x231B17)
|
|
78
60
|
/// Ação do toast (Desfazer, Abrir)
|
|
79
|
-
public static let toastAction
|
|
61
|
+
public static let toastAction = dynamic(light: 0xE8B27C, dark: 0xA9541F)
|
|
80
62
|
/// Fundo atrás de painéis
|
|
81
|
-
public static let scrim
|
|
82
|
-
/// Texto e elementos apagados (dia fora do mês, texto miúdo do PDF)
|
|
83
|
-
public static let faint = dynamic(light: 0xB3A190, dark: 0x6E5D50)
|
|
63
|
+
public static let scrim = dynamic(light: 0x140E0A, lightAlpha: 0.45, dark: 0x140E0A, darkAlpha: 0.45)
|
|
84
64
|
/// Linhas finas internas (grade do gráfico, linhas do PDF)
|
|
85
|
-
public static let divider
|
|
86
|
-
/// Borda mais forte (botão do Google no login)
|
|
87
|
-
public static let borderStrong = dynamic(light: 0xDCCDB9, dark: 0x5A4A3D)
|
|
88
|
-
/// Barra do valor antigo (troca de ração)
|
|
89
|
-
public static let barInactive = dynamic(light: 0xDCCDB9, dark: 0x6E5D50)
|
|
90
|
-
/// Cartão de destaque (plano de saúde, Fase 2)
|
|
91
|
-
public static let featureCard = dynamic(light: 0xA9541F, dark: 0x7E3C14)
|
|
92
|
-
/// Texto sobre o cartão de destaque
|
|
93
|
-
public static let onFeatureCard = dynamic(light: 0xFFF8EE, dark: 0xFFF8EE)
|
|
94
|
-
/// Caixa translúcida sobre o destaque
|
|
95
|
-
public static let onAccentSubtle = dynamic(light: 0xFFF8EE, lightAlpha: 0.18, dark: 0xFFF8EE, darkAlpha: 0.18)
|
|
96
|
-
/// Fundo do cadeado (recurso do Plus, pet congelado)
|
|
97
|
-
public static let lockBackground = dynamic(light: 0xDB9A5B, dark: 0x3A2D23)
|
|
98
|
-
/// Ícone do cadeado
|
|
99
|
-
public static let onLock = dynamic(light: 0xFFF8EE, dark: 0xF7F1E8)
|
|
100
|
-
/// Fundo do alerta do sistema (ex.: desconectar calendário)
|
|
101
|
-
public static let alertBackground = dynamic(light: 0xF7F1E8, dark: 0x3A2D23)
|
|
102
|
-
/// Fundo do aviso de notificação
|
|
103
|
-
public static let bannerBackground = dynamic(light: 0xFFFDF9, lightAlpha: 0.92, dark: 0x2E241D, darkAlpha: 0.92)
|
|
104
|
-
/// Fundo atrás da prévia do PDF
|
|
105
|
-
public static let previewBackdrop = dynamic(light: 0xEDE3D6, dark: 0x1B1511)
|
|
106
|
-
/// Cartões das miniaturas de tema (Aparência)
|
|
107
|
-
public static let themePreviewCard = dynamic(light: 0xA9541F, lightAlpha: 0.35, dark: 0xA9541F, darkAlpha: 0.35)
|
|
108
|
-
/// Fundo de um aviso não lido na central de notificações
|
|
109
|
-
public static let unreadBackground = dynamic(light: 0xF6F7FC, dark: 0x33292A)
|
|
65
|
+
public static let divider = dynamic(light: 0xEDE3D6, dark: 0x43352B)
|
|
110
66
|
/// Preenchimento neutro da Nova XP: fundo dos botões secundários, chips e ícones em círculo
|
|
111
|
-
public static let neutralFill
|
|
67
|
+
public static let neutralFill = dynamic(light: 0xF3E4CF, dark: 0x3A2D23)
|
|
112
68
|
/// Vidro: botões e cartões translúcidos sobre o fundo (Nova XP). Junto com glassBorder e a sombra glass
|
|
113
|
-
public static let glass
|
|
69
|
+
public static let glass = dynamic(light: 0xFFFDF9, lightAlpha: 0.62, dark: 0x2E241D, darkAlpha: 0.62)
|
|
114
70
|
/// Borda de 1 pt do vidro
|
|
115
|
-
public static let glassBorder
|
|
71
|
+
public static let glassBorder = dynamic(light: 0x958373, dark: 0x806E5E)
|
|
116
72
|
/// Barra de abas em vidro (Nova XP)
|
|
117
|
-
public static let tabGlass
|
|
73
|
+
public static let tabGlass = dynamic(light: 0xFFFDF9, lightAlpha: 0.78, dark: 0x1B1511, darkAlpha: 0.8)
|
|
118
74
|
/// Contorno do círculo de marcar como feito
|
|
119
|
-
public static let checkLine
|
|
75
|
+
public static let checkLine = dynamic(light: 0x7D6858, dark: 0xA08B78)
|
|
120
76
|
/// Fundo do selo (contador, aviso) sobre o fundo da tela
|
|
121
|
-
public static let badgeBg
|
|
77
|
+
public static let badgeBg = dynamic(light: 0xFFFFFF, dark: 0x2E241D)
|
|
122
78
|
/// Fundo A do retrato do pet (igual nas duas paletas)
|
|
123
|
-
public static let petA
|
|
79
|
+
public static let petA = dynamic(light: 0xF3E4CF, dark: 0x3A2D23)
|
|
124
80
|
/// Fundo B do retrato do pet (igual nas duas paletas)
|
|
125
|
-
public static let petB
|
|
81
|
+
public static let petB = dynamic(light: 0xE4EEDC, dark: 0x2C3A27)
|
|
126
82
|
/// Linha do mascote
|
|
127
|
-
public static let mLine
|
|
83
|
+
public static let mLine = dynamic(light: 0x231B17, dark: 0xF4E4CC)
|
|
128
84
|
/// Olho e focinho do mascote
|
|
129
|
-
public static let mInk
|
|
85
|
+
public static let mInk = dynamic(light: 0x231B17, dark: 0x100C0A)
|
|
130
86
|
|
|
131
87
|
// MARK: Pets
|
|
132
88
|
|
|
@@ -187,32 +143,10 @@ public enum ToskiColors {
|
|
|
187
143
|
}
|
|
188
144
|
|
|
189
145
|
public enum ToskiRadius {
|
|
190
|
-
/// Caixa de ícone
|
|
191
|
-
public static let iconBox: CGFloat = 12
|
|
192
|
-
/// Botões
|
|
193
|
-
public static let button: CGFloat = 14
|
|
194
|
-
/// Cards
|
|
195
|
-
public static let card: CGFloat = 18
|
|
196
|
-
/// Painéis, faixas e painel inferior
|
|
197
|
-
public static let sheet: CGFloat = 28
|
|
198
|
-
/// Caixa de seleção
|
|
199
|
-
public static let checkbox: CGFloat = 7
|
|
200
|
-
/// Amostra de cor
|
|
201
|
-
public static let swatch: CGFloat = 3
|
|
202
146
|
/// Página do PDF
|
|
203
147
|
public static let pdfPage: CGFloat = 4
|
|
204
|
-
///
|
|
205
|
-
public static let
|
|
206
|
-
/// Botão de card
|
|
207
|
-
public static let buttonSmall: CGFloat = 12
|
|
208
|
-
/// Trilho do controle segmentado
|
|
209
|
-
public static let segmentTrack: CGFloat = 12
|
|
210
|
-
/// Campos
|
|
211
|
-
public static let input: CGFloat = 14
|
|
212
|
-
/// Tiles
|
|
213
|
-
public static let tile: CGFloat = 16
|
|
214
|
-
/// Aviso de notificação
|
|
215
|
-
public static let notification: CGFloat = 22
|
|
148
|
+
/// Alerta e miniaturas da Aparência
|
|
149
|
+
public static let inset: CGFloat = 14
|
|
216
150
|
/// Ícone do app: raio 22 num lado de referência 96 (escala com o lado)
|
|
217
151
|
public static let appIconRadius: CGFloat = 22
|
|
218
152
|
public static let appIconSide: CGFloat = 96
|
|
@@ -262,13 +196,6 @@ public enum ToskiShadow {
|
|
|
262
196
|
}
|
|
263
197
|
|
|
264
198
|
public enum ToskiSpacing {
|
|
265
|
-
public static let xs: CGFloat = 4
|
|
266
|
-
public static let s: CGFloat = 8
|
|
267
|
-
public static let m: CGFloat = 12
|
|
268
|
-
public static let l: CGFloat = 16
|
|
269
|
-
public static let xl: CGFloat = 20
|
|
270
|
-
public static let xxl: CGFloat = 24
|
|
271
|
-
public static let screenPadding: CGFloat = 20
|
|
272
199
|
public static let screenMargin: CGFloat = 24
|
|
273
200
|
public static let block: CGFloat = 14
|
|
274
201
|
}
|
|
@@ -34,12 +34,6 @@ public enum ToskiKotiTheme {
|
|
|
34
34
|
public static let onAccent = dynamic(light: 0xFFF8EE, dark: 0x231B17)
|
|
35
35
|
/// Ação do toast (Desfazer, Abrir)
|
|
36
36
|
public static let toastAction = dynamic(light: 0xE6BFDB, dark: 0x7A3F6E)
|
|
37
|
-
/// Cartão de destaque (plano de saúde, Fase 2)
|
|
38
|
-
public static let featureCard = dynamic(light: 0x7A3F6E, dark: 0x5E2F55)
|
|
39
|
-
/// Fundo do cadeado (recurso do Plus, pet congelado)
|
|
40
|
-
public static let lockBackground = dynamic(light: 0x8A5280, dark: 0x3A2436)
|
|
41
|
-
/// Cartões das miniaturas de tema (Aparência)
|
|
42
|
-
public static let themePreviewCard = dynamic(light: 0x7A3F6E, lightAlpha: 0.35, dark: 0x7A3F6E, darkAlpha: 0.35)
|
|
43
37
|
|
|
44
38
|
// MARK: Membros da casa
|
|
45
39
|
|
|
@@ -36,22 +36,6 @@ public enum ToskiPawtaTheme {
|
|
|
36
36
|
public static let onAccent = dynamic(light: 0xFFF8EE, dark: 0x231B17)
|
|
37
37
|
/// Ação do toast (Desfazer, Abrir)
|
|
38
38
|
public static let toastAction = dynamic(light: 0xB7C0EE, dark: 0x3E4C8A)
|
|
39
|
-
/// Cartão de destaque (plano de saúde, Fase 2)
|
|
40
|
-
public static let featureCard = dynamic(light: 0x3E4C8A, dark: 0x2C376A)
|
|
41
|
-
/// Fundo do cadeado (recurso do Plus, pet congelado)
|
|
42
|
-
public static let lockBackground = dynamic(light: 0x5C69A4, dark: 0x3A2D23)
|
|
43
|
-
/// Cartões das miniaturas de tema (Aparência)
|
|
44
|
-
public static let themePreviewCard = dynamic(light: 0x3E4C8A, lightAlpha: 0.35, dark: 0x3E4C8A, darkAlpha: 0.35)
|
|
45
|
-
|
|
46
|
-
// MARK: Mascotes
|
|
47
|
-
|
|
48
|
-
public static let dog = fixed(0xB88250)
|
|
49
|
-
public static let dogEar = fixed(0x6E4529)
|
|
50
|
-
public static let cat = fixed(0x7C8199)
|
|
51
|
-
public static let catEarInner = fixed(0xE8B4B0)
|
|
52
|
-
public static let catNose = fixed(0xD98C8C)
|
|
53
|
-
public static let outline = dynamic(light: 0x231B17, dark: 0xF4E4CC)
|
|
54
|
-
public static let eye = dynamic(light: 0x231B17, dark: 0x100C0A)
|
|
55
39
|
|
|
56
40
|
// MARK: Black Friday
|
|
57
41
|
|
|
@@ -12,18 +12,13 @@ public enum ToskiComponent {
|
|
|
12
12
|
public enum Button {
|
|
13
13
|
public enum Large {
|
|
14
14
|
public static let height: CGFloat = 54
|
|
15
|
-
public static let radius = "
|
|
15
|
+
public static let radius = "surface"
|
|
16
16
|
public static let fontSize: CGFloat = 17
|
|
17
17
|
public static let secondaryFontSize: CGFloat = 16
|
|
18
18
|
}
|
|
19
|
-
public enum Card {
|
|
20
|
-
public static let height: CGFloat = 46
|
|
21
|
-
public static let radius = "buttonSmall"
|
|
22
|
-
public static let fontSize: CGFloat = 15
|
|
23
|
-
}
|
|
24
19
|
public enum Text {
|
|
25
|
-
public static let height: CGFloat =
|
|
26
|
-
public static let radius = "
|
|
20
|
+
public static let height: CGFloat = 44
|
|
21
|
+
public static let radius = "surface"
|
|
27
22
|
public static let fontSize: CGFloat = 16
|
|
28
23
|
public static let horizontalPadding: CGFloat = 4
|
|
29
24
|
}
|
|
@@ -21,7 +21,6 @@ export declare const tokens: {
|
|
|
21
21
|
readonly "critical-bg": "#F8E0D4";
|
|
22
22
|
readonly "critical-line": "#EBC0AA";
|
|
23
23
|
readonly success: "#3F6E3B";
|
|
24
|
-
readonly "success-bg": "#E4EEDC";
|
|
25
24
|
readonly segment: "#FFFFFF";
|
|
26
25
|
readonly tabbar: "#FFFDF9";
|
|
27
26
|
readonly "tab-idle": "#7D6858";
|
|
@@ -48,7 +47,6 @@ export declare const tokens: {
|
|
|
48
47
|
readonly "critical-bg": "#45261A";
|
|
49
48
|
readonly "critical-line": "#6A3A26";
|
|
50
49
|
readonly success: "#9CC48F";
|
|
51
|
-
readonly "success-bg": "#2C3A27";
|
|
52
50
|
readonly segment: "#4A3A2E";
|
|
53
51
|
readonly tabbar: "#1B1511";
|
|
54
52
|
readonly "tab-idle": "#A08B78";
|
package/dist/index.js
CHANGED
|
@@ -765,7 +765,6 @@ var x = {
|
|
|
765
765
|
"critical-bg": "#F8E0D4",
|
|
766
766
|
"critical-line": "#EBC0AA",
|
|
767
767
|
success: "#3F6E3B",
|
|
768
|
-
"success-bg": "#E4EEDC",
|
|
769
768
|
segment: "#FFFFFF",
|
|
770
769
|
tabbar: "#FFFDF9",
|
|
771
770
|
"tab-idle": "#7D6858",
|
|
@@ -792,7 +791,6 @@ var x = {
|
|
|
792
791
|
"critical-bg": "#45261A",
|
|
793
792
|
"critical-line": "#6A3A26",
|
|
794
793
|
success: "#9CC48F",
|
|
795
|
-
"success-bg": "#2C3A27",
|
|
796
794
|
segment: "#4A3A2E",
|
|
797
795
|
tabbar: "#1B1511",
|
|
798
796
|
"tab-idle": "#A08B78",
|