@nuvler/cli 0.3.1 → 0.4.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/README.md +258 -38
- package/dist/api/client.js.map +1 -1
- package/dist/api/theme-registry.js.map +1 -1
- package/dist/commands/theme/create.js +74 -18
- package/dist/commands/theme/create.js.map +1 -1
- package/dist/commands/theme/migrate.js +117 -0
- package/dist/commands/theme/migrate.js.map +1 -0
- package/dist/config/developer-session.js.map +1 -1
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/dist/migrate/analyzer.js +479 -0
- package/dist/migrate/analyzer.js.map +1 -0
- package/dist/migrate/asset-copier.js +40 -0
- package/dist/migrate/asset-copier.js.map +1 -0
- package/dist/migrate/classifier.js +107 -0
- package/dist/migrate/classifier.js.map +1 -0
- package/dist/migrate/generator.js +500 -0
- package/dist/migrate/generator.js.map +1 -0
- package/dist/migrate/transformer.js +150 -0
- package/dist/migrate/transformer.js.map +1 -0
- package/dist/migrate/types.js +2 -0
- package/dist/migrate/types.js.map +1 -0
- package/dist/migrate/validator.js +40 -0
- package/dist/migrate/validator.js.map +1 -0
- package/dist/nuvler.js +1643 -33
- package/dist/nuvler.js.map +1 -1
- package/dist/preview/launcher.js.map +1 -1
- package/dist/templates/nuvler-atelier/README.md +17 -1
- package/dist/templates/nuvler-atelier/nuvler.theme.json +10 -3
- package/dist/templates/nuvler-atelier/package.json +3 -3
- package/dist/templates/nuvler-atelier/src/definition.tsx +11 -1
- package/dist/templates/nuvler-atelier/src/theme.css +26 -26
- package/dist/templates/nuvler-atelier/src/theme.tsx +12 -1
- package/dist/templates/nuvler-default/README.md +18 -4
- package/dist/templates/nuvler-default/nuvler.theme.json +10 -3
- package/dist/templates/nuvler-default/package.json +2 -2
- package/dist/templates/nuvler-default/src/definition.ts +11 -0
- package/dist/templates/nuvler-default/src/theme-component.tsx +11 -0
- package/dist/templates/nuvler-default/src/theme.css +27 -16
- package/dist/templates/starter/README.md +18 -1
- package/dist/templates/starter/nuvler.theme.json +9 -2
- package/dist/templates/starter/package.json +2 -2
- package/dist/templates/starter/src/definition.tsx +8 -1
- package/dist/templates/starter/src/theme.css +10 -10
- package/dist/templates/starter/src/theme.tsx +11 -0
- package/package.json +4 -3
- package/preview-host/index.html +1 -0
- package/preview-host/package.json +1 -1
- package/preview-host/public/nuvler-icon.ico +0 -0
- package/preview-host/public/nuvler-logo-white.png +0 -0
- package/preview-host/src/app/globals.css +28 -0
- package/preview-host/src/main.tsx +11 -1
- package/preview-host/vendor/theme-runtime/default-theme.tsx +24 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launcher.js","sourceRoot":"","sources":["../../src/preview/launcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIzC,KAAK,UAAU,kBAAkB;IAC/B,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,IAAI,EAAE,CAAC;IAC/D,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"launcher.js","sourceRoot":"","sources":["../../src/preview/launcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,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AAC;IACJ,CAAC;YAAS,CAAC;QACT,MAAM,EAAE,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACxD,CAAC;AACH,CAAC"}
|
|
@@ -7,14 +7,24 @@ no npm: `npm run pack` gera um artefato para o Theme Registry da Nuvler.
|
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
9
|
npm install
|
|
10
|
-
nuvler theme configure --key CHAVE_COPIADA_DO_PAINEL
|
|
10
|
+
npx nuvler theme configure --key CHAVE_COPIADA_DO_PAINEL
|
|
11
11
|
npm run validate
|
|
12
12
|
npm run dev
|
|
13
|
+
npm run typecheck
|
|
13
14
|
npm run build
|
|
14
15
|
npm run pack
|
|
15
16
|
npm run publish
|
|
16
17
|
```
|
|
17
18
|
|
|
19
|
+
| Comando | Finalidade |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| `npm run dev` | Preview local com dados públicos do tenant |
|
|
22
|
+
| `npm run validate` | Valida manifesto e compatibilidade |
|
|
23
|
+
| `npm run typecheck` | Verifica os tipos TypeScript |
|
|
24
|
+
| `npm run build` | Gera o bundle em `dist/` |
|
|
25
|
+
| `npm run pack` | Gera o artefato em `artifacts/` |
|
|
26
|
+
| `npm run publish` | Envia o tema ao Theme Registry |
|
|
27
|
+
|
|
18
28
|
O token fica na configuração global do usuário. A seleção do tenant fica em
|
|
19
29
|
`.nuvler/config.json`, ignorada pelo Git. Não é necessário criar ou editar `.env`.
|
|
20
30
|
|
|
@@ -28,3 +38,9 @@ Somente `manifest.json`, `theme.js`, `theme.css` e `assets/` entram no Registry.
|
|
|
28
38
|
|
|
29
39
|
O arquivo final será `artifacts/nuvler-atelier-0.1.0.nuvler-theme.tgz`.
|
|
30
40
|
`npm run publish` envia esse mesmo arquivo ao Theme Registry.
|
|
41
|
+
|
|
42
|
+
Antes de publicar uma alteração, incremente a versão do manifesto. Use
|
|
43
|
+
`npx nuvler theme publish --visibility unlisted` ou `--visibility public` para
|
|
44
|
+
mudar a visibilidade do tema do tenant. A opção `--official` exige uma sessão
|
|
45
|
+
`PLATFORM_ADMIN`.
|
|
46
|
+
Consulte todos os parâmetros com `npx nuvler theme <comando> --help`.
|
|
@@ -2,15 +2,22 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "nuvler-atelier",
|
|
4
4
|
"name": "Nuvler Atelier",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.1",
|
|
6
6
|
"runtimeVersion": "1",
|
|
7
|
-
"sdkVersion": "^1.
|
|
7
|
+
"sdkVersion": "^1.2.0",
|
|
8
8
|
"entry": "src/theme.tsx",
|
|
9
9
|
"styles": ["src/theme.css"],
|
|
10
10
|
"presentation": {
|
|
11
11
|
"description": "Tema editorial com composição assimétrica, imagens protagonistas e navegação refinada.",
|
|
12
12
|
"templateId": "nuvler-atelier",
|
|
13
|
-
"colors": {
|
|
13
|
+
"colors": {
|
|
14
|
+
"primary": "#153f3a", "primaryText": "#ffffff",
|
|
15
|
+
"secondary": "#ff6b3d", "secondaryText": "#17201e", "accent": "#ff6b3d",
|
|
16
|
+
"background": "#f3efe5", "surface": "#fffaf0", "surfaceAlt": "#e8e1d3",
|
|
17
|
+
"text": "#17201e", "textMuted": "#6b716e", "border": "#d5cdbd",
|
|
18
|
+
"headerBackground": "#f3efe5", "headerText": "#17201e",
|
|
19
|
+
"footerBackground": "#101c1a", "footerText": "#ffffff"
|
|
20
|
+
},
|
|
14
21
|
"layout": { "containerWidth": 1380, "borderRadius": 8 }
|
|
15
22
|
}
|
|
16
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuvler-theme-nuvler-atelier",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@nuvler/theme-sdk": "^1.
|
|
15
|
+
"@nuvler/theme-sdk": "^1.2.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"react": "^19.0.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@nuvler/cli": "^0.
|
|
21
|
+
"@nuvler/cli": "^0.4.1",
|
|
22
22
|
"@types/react": "^19.0.0",
|
|
23
23
|
"react": "^19.0.0",
|
|
24
24
|
"typescript": "^5.9.0"
|
|
@@ -182,7 +182,17 @@ function ProductDetail({ product, descriptionContent, onAddToCart }: ProductDeta
|
|
|
182
182
|
export const manifest = manifestData as ThemeManifest;
|
|
183
183
|
export const themeDefinition = defineTheme({
|
|
184
184
|
manifest,
|
|
185
|
-
tokens: {
|
|
185
|
+
tokens: {
|
|
186
|
+
colors: {
|
|
187
|
+
primary: "#153f3a", primaryText: "#ffffff",
|
|
188
|
+
secondary: "#ff6b3d", secondaryText: "#17201e", accent: "#ff6b3d",
|
|
189
|
+
background: "#f3efe5", surface: "#fffaf0", surfaceAlt: "#e8e1d3",
|
|
190
|
+
text: "#17201e", textMuted: "#6b716e", border: "#d5cdbd",
|
|
191
|
+
headerBackground: "#f3efe5", headerText: "#17201e",
|
|
192
|
+
footerBackground: "#101c1a", footerText: "#ffffff",
|
|
193
|
+
},
|
|
194
|
+
layout: { containerWidth: 1380, borderRadius: 8 },
|
|
195
|
+
},
|
|
186
196
|
template: {
|
|
187
197
|
announcement: "Curadoria, conteúdo e atendimento para escolhas melhores",
|
|
188
198
|
footerTagline: "Uma experiência editorial para marcas com personalidade.",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
html { scroll-behavior: smooth; }
|
|
3
3
|
body { margin: 0; }
|
|
4
4
|
.nuvler-atelier-theme {
|
|
5
|
-
--atelier-line:
|
|
5
|
+
--atelier-line: var(--atelier-border);
|
|
6
6
|
min-height: 100vh;
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
background: var(--atelier-background);
|
|
@@ -19,16 +19,16 @@ body { margin: 0; }
|
|
|
19
19
|
.atelier-kicker { display: block; color: var(--atelier-accent); font-size: 11px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
|
|
20
20
|
.atelier-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 28px; border: 0; border-radius: var(--atelier-radius); padding: 0 20px; font-weight: 800; }
|
|
21
21
|
.atelier-button b { font-size: 18px; }
|
|
22
|
-
.atelier-button-light { background: var(--atelier-
|
|
23
|
-
.atelier-button-dark { background: var(--atelier-primary); color:
|
|
22
|
+
.atelier-button-light { background: var(--atelier-secondary); color: var(--atelier-secondary-text); }
|
|
23
|
+
.atelier-button-dark { background: var(--atelier-primary); color: var(--atelier-primary-text); }
|
|
24
24
|
.atelier-text-link { border-bottom: 1px solid currentColor; padding-block: 5px; font-weight: 750; }
|
|
25
25
|
.atelier-image-placeholder { display: grid; place-items: center; background: color-mix(in srgb, var(--atelier-primary) 12%, #fff); color: var(--atelier-primary); }
|
|
26
26
|
.atelier-image-placeholder b { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: 28px; }
|
|
27
27
|
|
|
28
|
-
.atelier-announcement { background: var(--atelier-primary); color:
|
|
28
|
+
.atelier-announcement { background: var(--atelier-primary); color: var(--atelier-primary-text); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
|
|
29
29
|
.atelier-announcement > div { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 20px; }
|
|
30
|
-
.atelier-announcement span:last-child { color: color-mix(in srgb, var(--atelier-accent) 80%,
|
|
31
|
-
.atelier-header { position: relative; z-index: 30; background: var(--atelier-background); }
|
|
30
|
+
.atelier-announcement span:last-child { color: color-mix(in srgb, var(--atelier-accent) 80%, var(--atelier-primary-text)); }
|
|
31
|
+
.atelier-header { position: relative; z-index: 30; background: var(--atelier-header-background); color: var(--atelier-header-text); }
|
|
32
32
|
.atelier-header-main { display: grid; min-height: 106px; grid-template-columns: minmax(190px, .72fr) minmax(320px, 1.45fr) minmax(210px, .7fr); align-items: center; gap: 36px; }
|
|
33
33
|
.atelier-brand { display: flex; min-width: 0; align-items: center; gap: 12px; }
|
|
34
34
|
.atelier-brand > img, .atelier-brand > .atelier-image-placeholder { width: 62px; height: 48px; flex: 0 0 auto; object-fit: contain; }
|
|
@@ -42,23 +42,23 @@ body { margin: 0; }
|
|
|
42
42
|
.atelier-search input::placeholder { color: color-mix(in srgb, var(--atelier-text) 48%, transparent); }
|
|
43
43
|
.atelier-search button { display: flex; align-items: center; gap: 18px; border: 0; background: transparent; color: var(--atelier-text); font-size: 12px; font-weight: 850; text-transform: uppercase; }
|
|
44
44
|
.atelier-search button b { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--atelier-accent); font-size: 17px; }
|
|
45
|
-
.atelier-suggestions { position: absolute; z-index: 50; top: calc(100% + 12px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--atelier-line); border-radius: calc(var(--atelier-radius) * 1.5); background:
|
|
46
|
-
.atelier-suggestions > small { display: block; border-bottom: 1px solid
|
|
47
|
-
.atelier-suggestions > a:not(.atelier-suggestions-all) { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid
|
|
48
|
-
.atelier-suggestions > a:hover { background:
|
|
45
|
+
.atelier-suggestions { position: absolute; z-index: 50; top: calc(100% + 12px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--atelier-line); border-radius: calc(var(--atelier-radius) * 1.5); background: var(--atelier-surface); box-shadow: 0 24px 70px rgba(23,32,30,.16); }
|
|
46
|
+
.atelier-suggestions > small { display: block; border-bottom: 1px solid var(--atelier-line); padding: 11px 14px; color: var(--atelier-text-muted); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
|
|
47
|
+
.atelier-suggestions > a:not(.atelier-suggestions-all) { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--atelier-line); padding: 10px 14px; }
|
|
48
|
+
.atelier-suggestions > a:hover { background: var(--atelier-surface-alt); }
|
|
49
49
|
.atelier-suggestions img, .atelier-suggestions .atelier-image-placeholder { width: 52px; height: 52px; object-fit: contain; }
|
|
50
50
|
.atelier-suggestions .atelier-image-placeholder b { width: 24px; height: 24px; font-size: 12px; }
|
|
51
51
|
.atelier-suggestions a span { display: flex; min-width: 0; flex-direction: column; }
|
|
52
52
|
.atelier-suggestions a strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
|
|
53
|
-
.atelier-suggestions a em { color:
|
|
54
|
-
.atelier-suggestions > p { margin: 0; padding: 18px 14px; color:
|
|
53
|
+
.atelier-suggestions a em { color: var(--atelier-text-muted); font-size: 11px; font-style: normal; }
|
|
54
|
+
.atelier-suggestions > p { margin: 0; padding: 18px 14px; color: var(--atelier-text-muted); font-size: 13px; }
|
|
55
55
|
.atelier-suggestions-all { display: block; padding: 12px 14px; color: var(--atelier-primary) !important; text-align: center; font-size: 11px; font-weight: 850; text-transform: uppercase; }
|
|
56
56
|
.atelier-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
|
|
57
57
|
.atelier-header-actions > a { display: flex; flex-direction: column; }
|
|
58
58
|
.atelier-header-actions small { color: color-mix(in srgb, var(--atelier-text) 55%, transparent); font-size: 10px; }
|
|
59
59
|
.atelier-header-actions strong { font-size: 12px; }
|
|
60
60
|
.atelier-cart-button { display: flex; min-height: 44px; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--atelier-text); font-weight: 800; }
|
|
61
|
-
.atelier-cart-button b { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--atelier-primary); color:
|
|
61
|
+
.atelier-cart-button b { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--atelier-primary); color: var(--atelier-primary-text); font-size: 11px; }
|
|
62
62
|
.atelier-nav-shell { border-block: 1px solid var(--atelier-line); }
|
|
63
63
|
.atelier-nav { display: flex; min-height: 58px; align-items: stretch; gap: 0; }
|
|
64
64
|
.atelier-nav > a { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: center; gap: 8px; border-right: 1px solid var(--atelier-line); padding: 0 12px; font-size: 12px; font-weight: 750; white-space: nowrap; }
|
|
@@ -72,11 +72,11 @@ body { margin: 0; }
|
|
|
72
72
|
.atelier-more > div a { border-bottom: 1px solid var(--atelier-line); padding: 11px 8px; font-size: 12px; font-weight: 700; }
|
|
73
73
|
.atelier-mobile-menu { display: none; }
|
|
74
74
|
|
|
75
|
-
.atelier-hero { display: grid; min-height: 680px; grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr); overflow: hidden; background: var(--atelier-primary); color:
|
|
75
|
+
.atelier-hero { display: grid; min-height: 680px; grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr); overflow: hidden; background: var(--atelier-primary); color: var(--atelier-primary-text); }
|
|
76
76
|
.atelier-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(54px, 7vw, 110px); }
|
|
77
|
-
.atelier-hero-copy .atelier-kicker { color: color-mix(in srgb, var(--atelier-accent) 82%,
|
|
77
|
+
.atelier-hero-copy .atelier-kicker { color: color-mix(in srgb, var(--atelier-accent) 82%, var(--atelier-primary-text)); }
|
|
78
78
|
.atelier-hero-copy h1 { max-width: 760px; margin: 24px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 6vw, 94px); font-weight: 400; letter-spacing: -.055em; line-height: .91; }
|
|
79
|
-
.atelier-hero-copy > p { max-width: 570px; margin: 0; color:
|
|
79
|
+
.atelier-hero-copy > p { max-width: 570px; margin: 0; color: color-mix(in srgb, var(--atelier-primary-text), transparent 28%); font-size: 17px; line-height: 1.75; }
|
|
80
80
|
.atelier-hero-copy > div { display: flex; align-items: center; gap: 26px; margin-top: 42px; }
|
|
81
81
|
.atelier-hero-visual { position: relative; display: grid; min-height: 560px; place-items: center; overflow: hidden; background: var(--atelier-accent); }
|
|
82
82
|
.atelier-hero-visual > img, .atelier-hero-visual > .atelier-image-placeholder { position: relative; z-index: 2; width: 72%; height: 68%; object-fit: contain; filter: drop-shadow(0 24px 35px rgba(23,32,30,.2)); }
|
|
@@ -87,7 +87,7 @@ body { margin: 0; }
|
|
|
87
87
|
.atelier-hero-visual > a span { font-size: 11px; font-weight: 800; }
|
|
88
88
|
.atelier-orbit { position: absolute; width: 62%; aspect-ratio: 1; border: 1px solid rgba(23,63,58,.24); border-radius: 50%; }
|
|
89
89
|
.atelier-orbit.second { width: 84%; }
|
|
90
|
-
.atelier-marquee { overflow: hidden; border-bottom: 1px solid var(--atelier-line); background:
|
|
90
|
+
.atelier-marquee { overflow: hidden; border-bottom: 1px solid var(--atelier-line); background: var(--atelier-surface); }
|
|
91
91
|
.atelier-marquee > div { display: flex; width: max-content; animation: atelier-marquee 30s linear infinite; }
|
|
92
92
|
.atelier-marquee span { display: flex; min-height: 66px; align-items: center; gap: 12px; border-right: 1px solid #ddd9cf; padding: 0 34px; font-size: 12px; font-weight: 850; text-transform: uppercase; }
|
|
93
93
|
.atelier-marquee span b { color: var(--atelier-accent); }
|
|
@@ -101,8 +101,8 @@ body { margin: 0; }
|
|
|
101
101
|
.atelier-section-heading > a { border-bottom: 1px solid currentColor; padding-bottom: 5px; font-size: 12px; font-weight: 850; white-space: nowrap; }
|
|
102
102
|
.atelier-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--atelier-line); border-left: 1px solid var(--atelier-line); }
|
|
103
103
|
.atelier-products[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
104
|
-
.atelier-product-card { min-width: 0; border-right: 1px solid var(--atelier-line); border-bottom: 1px solid var(--atelier-line); background:
|
|
105
|
-
.atelier-product-media { position: relative; display: grid; aspect-ratio: 1 / .9; place-items: center; overflow: hidden; background:
|
|
104
|
+
.atelier-product-card { min-width: 0; border-right: 1px solid var(--atelier-line); border-bottom: 1px solid var(--atelier-line); background: var(--atelier-surface); }
|
|
105
|
+
.atelier-product-media { position: relative; display: grid; aspect-ratio: 1 / .9; place-items: center; overflow: hidden; background: var(--atelier-surface-alt); }
|
|
106
106
|
.atelier-product-media > img, .atelier-product-media > .atelier-image-placeholder { width: 78%; height: 78%; object-fit: contain; transition: transform .45s ease; }
|
|
107
107
|
.atelier-product-card:hover .atelier-product-media > img { transform: scale(1.055) rotate(-1deg); }
|
|
108
108
|
.atelier-product-index { position: absolute; z-index: 2; top: 14px; left: 14px; font-family: Georgia, serif; font-size: 11px; font-style: italic; }
|
|
@@ -111,8 +111,8 @@ body { margin: 0; }
|
|
|
111
111
|
.atelier-product-copy h3 { min-height: 2.4em; margin: 9px 0; font-family: Georgia, serif; font-size: 22px; font-weight: 500; line-height: 1.15; }
|
|
112
112
|
.atelier-product-copy > p { display: -webkit-box; min-height: 3.2em; margin: 0 0 18px; overflow: hidden; color: color-mix(in srgb, var(--atelier-text) 62%, transparent); font-size: 12px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
|
|
113
113
|
.atelier-product-copy > div { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--atelier-line); padding-top: 14px; font-size: 11px; font-weight: 800; }
|
|
114
|
-
.atelier-product-copy > div a { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--atelier-primary); color:
|
|
115
|
-
.atelier-services { background: var(--atelier-primary); color:
|
|
114
|
+
.atelier-product-copy > div a { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--atelier-primary); color: var(--atelier-primary-text); }
|
|
115
|
+
.atelier-services { background: var(--atelier-primary); color: var(--atelier-primary-text); padding-block: clamp(72px, 9vw, 130px); }
|
|
116
116
|
.atelier-services .atelier-kicker { color: var(--atelier-accent); }
|
|
117
117
|
.atelier-services header { max-width: 760px; margin-bottom: 52px; }
|
|
118
118
|
.atelier-services > div > div { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.22); border-left: 1px solid rgba(255,255,255,.22); }
|
|
@@ -169,7 +169,7 @@ body { margin: 0; }
|
|
|
169
169
|
.atelier-product-info legend { margin-bottom: 11px; font-size: 12px; }
|
|
170
170
|
.atelier-product-info fieldset > div { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
171
171
|
.atelier-product-info fieldset button { min-width: 52px; border: 1px solid var(--atelier-line); background: transparent; padding: 10px 14px; }
|
|
172
|
-
.atelier-product-info fieldset button.active { border-color: var(--atelier-primary); background: var(--atelier-primary); color:
|
|
172
|
+
.atelier-product-info fieldset button.active { border-color: var(--atelier-primary); background: var(--atelier-primary); color: var(--atelier-primary-text); }
|
|
173
173
|
.atelier-add { width: 100%; margin-top: 8px; }
|
|
174
174
|
.atelier-add:disabled { cursor: not-allowed; opacity: .45; }
|
|
175
175
|
.atelier-detail-benefits { display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; border-top: 1px solid var(--atelier-line); }
|
|
@@ -181,15 +181,15 @@ body { margin: 0; }
|
|
|
181
181
|
.atelier-article > p { max-width: 700px; margin: 38px auto; font-size: 17px; line-height: 1.9; }
|
|
182
182
|
.atelier-article > a { font-weight: 800; }
|
|
183
183
|
|
|
184
|
-
.atelier-footer { background:
|
|
184
|
+
.atelier-footer { background: var(--atelier-footer-background); color: var(--atelier-footer-text); padding: 82px 0 22px; }
|
|
185
185
|
.atelier-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .65fr); gap: 60px; }
|
|
186
186
|
.atelier-footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
|
|
187
187
|
.atelier-footer-grid > div > small { margin-bottom: 10px; color: var(--atelier-accent); font-size: 9px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
|
|
188
|
-
.atelier-footer-grid a { color:
|
|
189
|
-
.atelier-footer-grid p { margin: 0; color:
|
|
188
|
+
.atelier-footer-grid a { color: color-mix(in srgb, var(--atelier-footer-text), transparent 26%); font-size: 12px; }
|
|
189
|
+
.atelier-footer-grid p { margin: 0; color: color-mix(in srgb, var(--atelier-footer-text), transparent 48%); font-size: 12px; line-height: 1.75; }
|
|
190
190
|
.atelier-footer-brand h2 { margin: 10px 0 0; font-family: Georgia, serif; font-size: 36px; font-weight: 400; }
|
|
191
191
|
.atelier-footer-brand p { max-width: 360px; }
|
|
192
|
-
.atelier-footer-note { display: flex; justify-content: space-between; gap: 20px; margin-top: 66px; border-top: 1px solid
|
|
192
|
+
.atelier-footer-note { display: flex; justify-content: space-between; gap: 20px; margin-top: 66px; border-top: 1px solid color-mix(in srgb, var(--atelier-footer-text), transparent 84%); padding-top: 22px; color: color-mix(in srgb, var(--atelier-footer-text), transparent 54%); font-size: 10px; }
|
|
193
193
|
|
|
194
194
|
.atelier-cart-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; justify-content: flex-end; background: rgba(8,18,16,.62); backdrop-filter: blur(4px); }
|
|
195
195
|
.atelier-cart-drawer { display: flex; width: min(470px, 100%); height: 100%; flex-direction: column; background: var(--atelier-background); box-shadow: -30px 0 70px rgba(8,18,16,.2); }
|
|
@@ -44,9 +44,20 @@ export default function Theme({ context, route = { type: "home" }, sdk, adapters
|
|
|
44
44
|
};
|
|
45
45
|
const style = {
|
|
46
46
|
"--atelier-primary": tokens.colors.primary,
|
|
47
|
-
"--atelier-
|
|
47
|
+
"--atelier-primary-text": tokens.colors.primaryText,
|
|
48
|
+
"--atelier-secondary": tokens.colors.secondary,
|
|
49
|
+
"--atelier-secondary-text": tokens.colors.secondaryText,
|
|
50
|
+
"--atelier-accent": tokens.colors.accent,
|
|
48
51
|
"--atelier-background": tokens.colors.background,
|
|
52
|
+
"--atelier-surface": tokens.colors.surface,
|
|
53
|
+
"--atelier-surface-alt": tokens.colors.surfaceAlt,
|
|
49
54
|
"--atelier-text": tokens.colors.text,
|
|
55
|
+
"--atelier-text-muted": tokens.colors.textMuted,
|
|
56
|
+
"--atelier-border": tokens.colors.border,
|
|
57
|
+
"--atelier-header-background": tokens.colors.headerBackground,
|
|
58
|
+
"--atelier-header-text": tokens.colors.headerText,
|
|
59
|
+
"--atelier-footer-background": tokens.colors.footerBackground,
|
|
60
|
+
"--atelier-footer-text": tokens.colors.footerText,
|
|
50
61
|
"--atelier-radius": `${tokens.layout.borderRadius}px`,
|
|
51
62
|
"--atelier-container": `${tokens.layout.containerWidth}px`,
|
|
52
63
|
} as CSSProperties;
|
|
@@ -19,16 +19,30 @@ Store/preview host. Seus contratos vêm de `@nuvler/theme-sdk`.
|
|
|
19
19
|
Para executar:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
node packages/cli/dist/nuvler.js theme
|
|
22
|
+
node packages/cli/dist/nuvler.js theme configure \
|
|
23
23
|
--theme themes/nuvler-default \
|
|
24
|
-
--
|
|
25
|
-
|
|
24
|
+
--key CHAVE_COPIADA_DO_PAINEL
|
|
25
|
+
|
|
26
|
+
node packages/cli/dist/nuvler.js theme validate \
|
|
27
|
+
--theme themes/nuvler-default
|
|
28
|
+
|
|
29
|
+
npm run typecheck -w @nuvler/theme-nuvler-default
|
|
30
|
+
|
|
31
|
+
node packages/cli/dist/nuvler.js theme dev \
|
|
32
|
+
--theme themes/nuvler-default
|
|
26
33
|
```
|
|
27
34
|
|
|
28
|
-
Para gerar o artefato
|
|
35
|
+
Para compilar, gerar o artefato ou publicar, execute na raiz do tooling:
|
|
29
36
|
|
|
30
37
|
```bash
|
|
38
|
+
node packages/cli/dist/nuvler.js theme build --theme themes/nuvler-default
|
|
31
39
|
npm run pack:theme -- nuvler-default
|
|
40
|
+
node packages/cli/dist/nuvler.js theme publish --theme themes/nuvler-default --official
|
|
32
41
|
```
|
|
33
42
|
|
|
34
43
|
Resultado: `artifacts/nuvler-default-1.0.1.nuvler-theme.tgz`.
|
|
44
|
+
|
|
45
|
+
`--official` exige uma sessão `PLATFORM_ADMIN` e publica o tema como
|
|
46
|
+
`PLATFORM/PUBLIC`. Para testar temporariamente outra loja autorizada, use
|
|
47
|
+
`theme dev --store <slug>`; para ver todas as opções, acrescente `--help` ao
|
|
48
|
+
comando.
|
|
@@ -2,15 +2,22 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "nuvler-default",
|
|
4
4
|
"name": "Nuvler Default",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.2",
|
|
6
6
|
"runtimeVersion": "1",
|
|
7
|
-
"sdkVersion": "^1.
|
|
7
|
+
"sdkVersion": "^1.2.0",
|
|
8
8
|
"entry": "src/theme.tsx",
|
|
9
9
|
"styles": ["src/theme.css"],
|
|
10
10
|
"presentation": {
|
|
11
11
|
"description": "Tema oficial completo, indicado para produção e usado como base confiável.",
|
|
12
12
|
"templateId": "nuvler-default",
|
|
13
|
-
"colors": {
|
|
13
|
+
"colors": {
|
|
14
|
+
"primary": "#176b3a", "primaryText": "#ffffff",
|
|
15
|
+
"secondary": "#d99b31", "secondaryText": "#18221b", "accent": "#b45309",
|
|
16
|
+
"background": "#f7f7f2", "surface": "#ffffff", "surfaceAlt": "#eef2e9",
|
|
17
|
+
"text": "#18221b", "textMuted": "#657068", "border": "#dfe4dd",
|
|
18
|
+
"headerBackground": "#ffffff", "headerText": "#18221b",
|
|
19
|
+
"footerBackground": "#14251a", "footerText": "#f7f7f2"
|
|
20
|
+
},
|
|
14
21
|
"layout": { "containerWidth": 1280, "borderRadius": 18 }
|
|
15
22
|
}
|
|
16
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvler/theme-nuvler-default",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Tema padrão oficial da Nuvler",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react": "^19.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nuvler/theme-sdk": "^1.
|
|
33
|
+
"@nuvler/theme-sdk": "^1.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/react": "^19.0.0",
|
|
@@ -21,9 +21,20 @@ export const nuvlerDefaultTheme = defineTheme({
|
|
|
21
21
|
tokens: {
|
|
22
22
|
colors: {
|
|
23
23
|
primary: "#176b3a",
|
|
24
|
+
primaryText: "#ffffff",
|
|
24
25
|
secondary: "#d99b31",
|
|
26
|
+
secondaryText: "#18221b",
|
|
27
|
+
accent: "#b45309",
|
|
25
28
|
background: "#f7f7f2",
|
|
29
|
+
surface: "#ffffff",
|
|
30
|
+
surfaceAlt: "#eef2e9",
|
|
26
31
|
text: "#18221b",
|
|
32
|
+
textMuted: "#657068",
|
|
33
|
+
border: "#dfe4dd",
|
|
34
|
+
headerBackground: "#ffffff",
|
|
35
|
+
headerText: "#18221b",
|
|
36
|
+
footerBackground: "#14251a",
|
|
37
|
+
footerText: "#f7f7f2",
|
|
27
38
|
},
|
|
28
39
|
layout: { containerWidth: 1280, borderRadius: 18 },
|
|
29
40
|
},
|
|
@@ -58,9 +58,20 @@ export function createNuvlerDefaultRuntime(themeDefinition: NuvlerStoreThemeDefi
|
|
|
58
58
|
};
|
|
59
59
|
const style = {
|
|
60
60
|
"--color-primary": tokens.colors.primary,
|
|
61
|
+
"--color-primary-text": tokens.colors.primaryText,
|
|
61
62
|
"--color-secondary": tokens.colors.secondary,
|
|
63
|
+
"--color-secondary-text": tokens.colors.secondaryText,
|
|
64
|
+
"--color-accent": tokens.colors.accent,
|
|
62
65
|
"--store-background": tokens.colors.background,
|
|
66
|
+
"--store-surface": tokens.colors.surface,
|
|
67
|
+
"--store-surface-alt": tokens.colors.surfaceAlt,
|
|
63
68
|
"--store-text": tokens.colors.text,
|
|
69
|
+
"--store-muted": tokens.colors.textMuted,
|
|
70
|
+
"--store-line": tokens.colors.border,
|
|
71
|
+
"--store-header-background": tokens.colors.headerBackground,
|
|
72
|
+
"--store-header-text": tokens.colors.headerText,
|
|
73
|
+
"--store-footer-background": tokens.colors.footerBackground,
|
|
74
|
+
"--store-footer-text": tokens.colors.footerText,
|
|
64
75
|
"--container-width": `${tokens.layout.containerWidth}px`,
|
|
65
76
|
"--border-radius": `${tokens.layout.borderRadius}px`,
|
|
66
77
|
} as CSSProperties;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--color-primary: #176b3a;
|
|
3
|
+
--color-primary-text: #ffffff;
|
|
3
4
|
--color-secondary: #d99b31;
|
|
5
|
+
--color-secondary-text: #18221b;
|
|
6
|
+
--color-accent: #b45309;
|
|
4
7
|
--store-background: #f7f7f2;
|
|
5
8
|
--store-text: #18221b;
|
|
6
9
|
--container-width: 1280px;
|
|
@@ -8,6 +11,11 @@
|
|
|
8
11
|
--store-muted: #657068;
|
|
9
12
|
--store-line: #dfe4dd;
|
|
10
13
|
--store-surface: #ffffff;
|
|
14
|
+
--store-surface-alt: #eef2e9;
|
|
15
|
+
--store-header-background: #ffffff;
|
|
16
|
+
--store-header-text: #18221b;
|
|
17
|
+
--store-footer-background: #14251a;
|
|
18
|
+
--store-footer-text: #f7f7f2;
|
|
11
19
|
}
|
|
12
20
|
|
|
13
21
|
* {
|
|
@@ -218,8 +226,8 @@ select {
|
|
|
218
226
|
}
|
|
219
227
|
|
|
220
228
|
.announcement {
|
|
221
|
-
background: var(--
|
|
222
|
-
color:
|
|
229
|
+
background: var(--color-primary);
|
|
230
|
+
color: var(--color-primary-text);
|
|
223
231
|
font-size: 12px;
|
|
224
232
|
letter-spacing: 0.02em;
|
|
225
233
|
}
|
|
@@ -237,7 +245,8 @@ select {
|
|
|
237
245
|
z-index: 30;
|
|
238
246
|
top: 0;
|
|
239
247
|
border-bottom: 1px solid color-mix(in srgb, var(--store-line), transparent 20%);
|
|
240
|
-
background: color-mix(in srgb, var(--store-background), transparent 4%);
|
|
248
|
+
background: color-mix(in srgb, var(--store-header-background), transparent 4%);
|
|
249
|
+
color: var(--store-header-text);
|
|
241
250
|
backdrop-filter: blur(18px);
|
|
242
251
|
}
|
|
243
252
|
|
|
@@ -530,7 +539,8 @@ select {
|
|
|
530
539
|
|
|
531
540
|
.primary-nav-shell {
|
|
532
541
|
border-top: 1px solid var(--store-line);
|
|
533
|
-
background: var(--store-
|
|
542
|
+
background: var(--store-header-background);
|
|
543
|
+
color: var(--store-header-text);
|
|
534
544
|
}
|
|
535
545
|
|
|
536
546
|
.brand {
|
|
@@ -1033,7 +1043,7 @@ select {
|
|
|
1033
1043
|
|
|
1034
1044
|
.button-primary {
|
|
1035
1045
|
background: var(--color-primary);
|
|
1036
|
-
color:
|
|
1046
|
+
color: var(--color-primary-text);
|
|
1037
1047
|
box-shadow: 0 9px 24px color-mix(in srgb, var(--color-primary), transparent 76%);
|
|
1038
1048
|
}
|
|
1039
1049
|
|
|
@@ -1043,13 +1053,14 @@ select {
|
|
|
1043
1053
|
|
|
1044
1054
|
.button-secondary {
|
|
1045
1055
|
border-color: var(--store-line);
|
|
1046
|
-
background: var(--
|
|
1047
|
-
color: var(--
|
|
1056
|
+
background: var(--color-secondary);
|
|
1057
|
+
color: var(--color-secondary-text);
|
|
1048
1058
|
}
|
|
1049
1059
|
|
|
1050
1060
|
.button-secondary:hover {
|
|
1051
1061
|
border-color: var(--color-secondary);
|
|
1052
|
-
|
|
1062
|
+
background: color-mix(in srgb, var(--color-secondary), #000 7%);
|
|
1063
|
+
color: var(--color-secondary-text);
|
|
1053
1064
|
}
|
|
1054
1065
|
|
|
1055
1066
|
.button-block {
|
|
@@ -1689,7 +1700,7 @@ select {
|
|
|
1689
1700
|
display: block;
|
|
1690
1701
|
overflow: hidden;
|
|
1691
1702
|
aspect-ratio: 1 / 1;
|
|
1692
|
-
background:
|
|
1703
|
+
background: var(--store-surface-alt);
|
|
1693
1704
|
}
|
|
1694
1705
|
|
|
1695
1706
|
.product-card-image img,
|
|
@@ -1728,7 +1739,7 @@ select {
|
|
|
1728
1739
|
.product-category {
|
|
1729
1740
|
display: block;
|
|
1730
1741
|
margin-bottom: 8px;
|
|
1731
|
-
color: var(--color-
|
|
1742
|
+
color: var(--color-accent);
|
|
1732
1743
|
font-size: 10px;
|
|
1733
1744
|
font-weight: 900;
|
|
1734
1745
|
letter-spacing: 0.12em;
|
|
@@ -2478,8 +2489,8 @@ select {
|
|
|
2478
2489
|
}
|
|
2479
2490
|
|
|
2480
2491
|
.store-footer {
|
|
2481
|
-
background: var(--store-
|
|
2482
|
-
color:
|
|
2492
|
+
background: var(--store-footer-background);
|
|
2493
|
+
color: var(--store-footer-text);
|
|
2483
2494
|
padding: 64px 0 22px;
|
|
2484
2495
|
}
|
|
2485
2496
|
|
|
@@ -2511,13 +2522,13 @@ select {
|
|
|
2511
2522
|
.footer-grid span {
|
|
2512
2523
|
max-width: 480px;
|
|
2513
2524
|
margin: 0;
|
|
2514
|
-
color:
|
|
2525
|
+
color: color-mix(in srgb, var(--store-footer-text), transparent 38%);
|
|
2515
2526
|
font-size: 13px;
|
|
2516
2527
|
line-height: 1.65;
|
|
2517
2528
|
}
|
|
2518
2529
|
|
|
2519
2530
|
.footer-grid a:hover {
|
|
2520
|
-
color:
|
|
2531
|
+
color: var(--store-footer-text);
|
|
2521
2532
|
}
|
|
2522
2533
|
|
|
2523
2534
|
.footer-bottom {
|
|
@@ -2525,9 +2536,9 @@ select {
|
|
|
2525
2536
|
justify-content: space-between;
|
|
2526
2537
|
gap: 20px;
|
|
2527
2538
|
margin-top: 48px;
|
|
2528
|
-
border-top: 1px solid
|
|
2539
|
+
border-top: 1px solid color-mix(in srgb, var(--store-footer-text), transparent 88%);
|
|
2529
2540
|
padding-top: 22px;
|
|
2530
|
-
color:
|
|
2541
|
+
color: color-mix(in srgb, var(--store-footer-text), transparent 54%);
|
|
2531
2542
|
font-size: 11px;
|
|
2532
2543
|
}
|
|
2533
2544
|
|
|
@@ -77,14 +77,26 @@ O contrato completo está no
|
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
79
|
npm install
|
|
80
|
-
nuvler theme configure --key CHAVE_COPIADA_DO_PAINEL
|
|
80
|
+
npx nuvler theme configure --key CHAVE_COPIADA_DO_PAINEL
|
|
81
81
|
npm run validate
|
|
82
82
|
npm run dev
|
|
83
|
+
npm run typecheck
|
|
83
84
|
npm run build
|
|
84
85
|
npm run pack
|
|
85
86
|
npm run publish
|
|
86
87
|
```
|
|
87
88
|
|
|
89
|
+
| Comando | Finalidade |
|
|
90
|
+
| --- | --- |
|
|
91
|
+
| `npm run dev` | Preview local com os dados públicos da loja configurada |
|
|
92
|
+
| `npm run validate` | Valida manifesto, SDK, runtime, entrada e estilos |
|
|
93
|
+
| `npm run typecheck` | Verifica os tipos TypeScript |
|
|
94
|
+
| `npm run build` | Gera `dist/theme.js`, CSS e assets |
|
|
95
|
+
| `npm run pack` | Gera o `.nuvler-theme.tgz` em `artifacts/` |
|
|
96
|
+
| `npm run publish` | Compila, empacota e envia ao Theme Registry |
|
|
97
|
+
|
|
98
|
+
Use `npx nuvler theme <comando> --help` para consultar todas as opções.
|
|
99
|
+
|
|
88
100
|
O token fica na configuração global do usuário. A seleção do tenant fica em
|
|
89
101
|
`.nuvler/config.json`, ignorada pelo Git. Não é necessário criar ou editar `.env`.
|
|
90
102
|
|
|
@@ -98,3 +110,8 @@ Somente `manifest.json`, `theme.js`, `theme.css` e `assets/` entram no Registry.
|
|
|
98
110
|
|
|
99
111
|
O arquivo final será `artifacts/__NUVLER_THEME_ID__-0.1.0.nuvler-theme.tgz`.
|
|
100
112
|
`npm run publish` envia esse mesmo arquivo ao Theme Registry.
|
|
113
|
+
|
|
114
|
+
Antes de publicar uma alteração, incremente `version` em
|
|
115
|
+
`nuvler.theme.json`. Por padrão, o tema de um tenant é privado. Use
|
|
116
|
+
`npx nuvler theme publish --visibility unlisted` ou `--visibility public` para
|
|
117
|
+
outra visibilidade; `--official` é reservado a uma sessão `PLATFORM_ADMIN`.
|
|
@@ -4,13 +4,20 @@
|
|
|
4
4
|
"name": "__NUVLER_THEME_NAME__",
|
|
5
5
|
"version": "0.1.0",
|
|
6
6
|
"runtimeVersion": "1",
|
|
7
|
-
"sdkVersion": "^1.
|
|
7
|
+
"sdkVersion": "^1.2.0",
|
|
8
8
|
"entry": "src/theme.tsx",
|
|
9
9
|
"styles": ["src/theme.css"],
|
|
10
10
|
"presentation": {
|
|
11
11
|
"description": "Base enxuta para construir um tema Nuvler.",
|
|
12
12
|
"templateId": "starter",
|
|
13
|
-
"colors": {
|
|
13
|
+
"colors": {
|
|
14
|
+
"primary": "#1d4ed8", "primaryText": "#ffffff",
|
|
15
|
+
"secondary": "#f59e0b", "secondaryText": "#0f172a", "accent": "#d97706",
|
|
16
|
+
"background": "#f8fafc", "surface": "#ffffff", "surfaceAlt": "#f1f5f9",
|
|
17
|
+
"text": "#0f172a", "textMuted": "#64748b", "border": "#e2e8f0",
|
|
18
|
+
"headerBackground": "#ffffff", "headerText": "#0f172a",
|
|
19
|
+
"footerBackground": "#0f172a", "footerText": "#f8fafc"
|
|
20
|
+
},
|
|
14
21
|
"layout": { "containerWidth": 1200, "borderRadius": 16 }
|
|
15
22
|
}
|
|
16
23
|
}
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@nuvler/theme-sdk": "^1.
|
|
15
|
+
"@nuvler/theme-sdk": "^1.2.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"react": "^19.0.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@nuvler/cli": "^0.
|
|
21
|
+
"@nuvler/cli": "^0.4.1",
|
|
22
22
|
"@types/react": "^19.0.0",
|
|
23
23
|
"react": "^19.0.0",
|
|
24
24
|
"typescript": "^5.9.0"
|