@nuvler/cli 0.4.0 → 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.
Files changed (31) hide show
  1. package/dist/commands/theme/create.js +2 -2
  2. package/dist/index.js +1 -1
  3. package/dist/migrate/generator.js +49 -8
  4. package/dist/migrate/generator.js.map +1 -1
  5. package/dist/migrate/transformer.js +20 -4
  6. package/dist/migrate/transformer.js.map +1 -1
  7. package/dist/nuvler.js +125 -45
  8. package/dist/nuvler.js.map +1 -1
  9. package/dist/templates/nuvler-atelier/nuvler.theme.json +10 -3
  10. package/dist/templates/nuvler-atelier/package.json +3 -3
  11. package/dist/templates/nuvler-atelier/src/definition.tsx +11 -1
  12. package/dist/templates/nuvler-atelier/src/theme.css +26 -26
  13. package/dist/templates/nuvler-atelier/src/theme.tsx +12 -1
  14. package/dist/templates/nuvler-default/nuvler.theme.json +10 -3
  15. package/dist/templates/nuvler-default/package.json +2 -2
  16. package/dist/templates/nuvler-default/src/definition.ts +11 -0
  17. package/dist/templates/nuvler-default/src/theme-component.tsx +11 -0
  18. package/dist/templates/nuvler-default/src/theme.css +27 -16
  19. package/dist/templates/starter/nuvler.theme.json +9 -2
  20. package/dist/templates/starter/package.json +2 -2
  21. package/dist/templates/starter/src/definition.tsx +8 -1
  22. package/dist/templates/starter/src/theme.css +10 -10
  23. package/dist/templates/starter/src/theme.tsx +11 -0
  24. package/package.json +3 -3
  25. package/preview-host/index.html +1 -0
  26. package/preview-host/package.json +1 -1
  27. package/preview-host/public/nuvler-icon.ico +0 -0
  28. package/preview-host/public/nuvler-logo-white.png +0 -0
  29. package/preview-host/src/app/globals.css +28 -0
  30. package/preview-host/src/main.tsx +11 -1
  31. package/preview-host/vendor/theme-runtime/default-theme.tsx +24 -2
@@ -2,15 +2,22 @@
2
2
  "schemaVersion": 1,
3
3
  "id": "nuvler-atelier",
4
4
  "name": "Nuvler Atelier",
5
- "version": "0.1.0",
5
+ "version": "0.1.1",
6
6
  "runtimeVersion": "1",
7
- "sdkVersion": "^1.1.0",
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": { "primary": "#153f3a", "secondary": "#ff6b3d", "background": "#f3efe5", "text": "#17201e" },
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.0",
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.1.0"
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.3.1",
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: { colors: { primary: "#153f3a", secondary: "#ff6b3d", background: "#f3efe5", text: "#17201e" }, layout: { containerWidth: 1380, borderRadius: 8 } },
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: color-mix(in srgb, var(--atelier-text) 18%, transparent);
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-background); color: var(--atelier-text); }
23
- .atelier-button-dark { background: var(--atelier-primary); color: #fff; }
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: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
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%, #fff); }
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: #fff; box-shadow: 0 24px 70px rgba(23,32,30,.16); }
46
- .atelier-suggestions > small { display: block; border-bottom: 1px solid #ecebe7; padding: 11px 14px; color: #6d726f; 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 #ecebe7; padding: 10px 14px; }
48
- .atelier-suggestions > a:hover { background: #f5f3ed; }
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: #7b7f7d; font-size: 11px; font-style: normal; }
54
- .atelier-suggestions > p { margin: 0; padding: 18px 14px; color: #6d726f; font-size: 13px; }
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: #fff; font-size: 11px; }
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: #fff; }
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%, #fff); }
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: rgba(255,255,255,.72); font-size: 17px; line-height: 1.75; }
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: #fff; }
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: color-mix(in srgb, var(--atelier-background) 94%, #fff); }
105
- .atelier-product-media { position: relative; display: grid; aspect-ratio: 1 / .9; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--atelier-primary) 6%, #fff); }
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: #fff; }
115
- .atelier-services { background: var(--atelier-primary); color: #fff; padding-block: clamp(72px, 9vw, 130px); }
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: #fff; }
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: #101c1a; color: #fff; padding: 82px 0 22px; }
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: rgba(255,255,255,.74); font-size: 12px; }
189
- .atelier-footer-grid p { margin: 0; color: rgba(255,255,255,.52); font-size: 12px; line-height: 1.75; }
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 rgba(255,255,255,.16); padding-top: 22px; color: rgba(255,255,255,.46); font-size: 10px; }
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-accent": tokens.colors.secondary,
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;
@@ -2,15 +2,22 @@
2
2
  "schemaVersion": 1,
3
3
  "id": "nuvler-default",
4
4
  "name": "Nuvler Default",
5
- "version": "1.0.1",
5
+ "version": "1.0.2",
6
6
  "runtimeVersion": "1",
7
- "sdkVersion": "^1.1.0",
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": { "primary": "#176b3a", "secondary": "#d99b31", "background": "#f7f7f2", "text": "#18221b" },
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.1",
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.1.0"
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(--store-text);
222
- color: #fff;
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-surface);
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: #fff;
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(--store-surface);
1047
- color: var(--store-text);
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
- color: var(--color-secondary);
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: #eef0ea;
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-secondary);
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-text);
2482
- color: #fff;
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: rgba(255, 255, 255, 0.62);
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: #fff;
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 rgba(255, 255, 255, 0.12);
2539
+ border-top: 1px solid color-mix(in srgb, var(--store-footer-text), transparent 88%);
2529
2540
  padding-top: 22px;
2530
- color: rgba(255, 255, 255, 0.46);
2541
+ color: color-mix(in srgb, var(--store-footer-text), transparent 54%);
2531
2542
  font-size: 11px;
2532
2543
  }
2533
2544
 
@@ -4,13 +4,20 @@
4
4
  "name": "__NUVLER_THEME_NAME__",
5
5
  "version": "0.1.0",
6
6
  "runtimeVersion": "1",
7
- "sdkVersion": "^1.1.0",
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": { "primary": "#1d4ed8", "secondary": "#f59e0b", "background": "#f8fafc", "text": "#0f172a" },
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.1.0"
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.4.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"
@@ -37,7 +37,14 @@ export const manifest = manifestData as ThemeManifest;
37
37
  export const themeDefinition = defineTheme({
38
38
  manifest,
39
39
  tokens: {
40
- colors: { primary: "#1d4ed8", secondary: "#f59e0b", background: "#f8fafc", text: "#0f172a" },
40
+ colors: {
41
+ primary: "#1d4ed8", primaryText: "#ffffff",
42
+ secondary: "#f59e0b", secondaryText: "#0f172a", accent: "#d97706",
43
+ background: "#f8fafc", surface: "#ffffff", surfaceAlt: "#f1f5f9",
44
+ text: "#0f172a", textMuted: "#64748b", border: "#e2e8f0",
45
+ headerBackground: "#ffffff", headerText: "#0f172a",
46
+ footerBackground: "#0f172a", footerText: "#f8fafc",
47
+ },
41
48
  layout: { containerWidth: 1200, borderRadius: 16 },
42
49
  },
43
50
  template: {
@@ -2,20 +2,20 @@
2
2
  body { margin: 0; }
3
3
  .nuvler-starter-theme { min-height: 100vh; background: var(--theme-background); color: var(--theme-text); font-family: Inter, system-ui, sans-serif; }
4
4
  .theme-header, .theme-footer, .theme-section, .theme-hero { width: min(calc(100% - 32px), var(--theme-container)); margin-inline: auto; }
5
- .theme-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
5
+ .theme-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--theme-header-background); color: var(--theme-header-text); }
6
6
  .theme-brand { color: var(--theme-primary); font-size: 20px; font-weight: 800; text-decoration: none; }
7
7
  .theme-header form { display: flex; gap: 8px; }
8
- .theme-header input { min-width: 260px; border: 1px solid #cbd5e1; border-radius: var(--theme-radius); padding: 11px 14px; }
9
- .theme-header button, .theme-product-detail button { border: 0; border-radius: var(--theme-radius); background: var(--theme-primary); color: white; padding: 12px 18px; font-weight: 700; }
10
- .theme-hero { margin-block: 32px; border-radius: calc(var(--theme-radius) * 1.5); background: var(--theme-primary); color: white; padding: clamp(40px, 8vw, 96px); }
11
- .theme-hero span { color: var(--theme-secondary); font-size: 12px; font-weight: 800; text-transform: uppercase; }
8
+ .theme-header input { min-width: 260px; border: 1px solid var(--theme-border); border-radius: var(--theme-radius); background: var(--theme-surface); color: var(--theme-header-text); padding: 11px 14px; }
9
+ .theme-header button, .theme-product-detail button { border: 0; border-radius: var(--theme-radius); background: var(--theme-primary); color: var(--theme-primary-text); padding: 12px 18px; font-weight: 700; }
10
+ .theme-hero { margin-block: 32px; border-radius: calc(var(--theme-radius) * 1.5); background: var(--theme-primary); color: var(--theme-primary-text); padding: clamp(40px, 8vw, 96px); }
11
+ .theme-hero span { color: var(--theme-accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
12
12
  .theme-hero h1 { max-width: 760px; margin: 12px 0; font-size: clamp(40px, 7vw, 80px); line-height: .95; }
13
- .theme-hero a { display: inline-block; margin-top: 16px; border-radius: var(--theme-radius); background: var(--theme-secondary); color: var(--theme-text); padding: 13px 18px; font-weight: 800; text-decoration: none; }
13
+ .theme-hero a { display: inline-block; margin-top: 16px; border-radius: var(--theme-radius); background: var(--theme-secondary); color: var(--theme-secondary-text); padding: 13px 18px; font-weight: 800; text-decoration: none; }
14
14
  .theme-section { padding-block: 48px; }
15
15
  .theme-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
16
- .theme-products article { min-height: 180px; border: 1px solid #e2e8f0; border-radius: var(--theme-radius); background: white; padding: 20px; }
16
+ .theme-products article { min-height: 180px; border: 1px solid var(--theme-border); border-radius: var(--theme-radius); background: var(--theme-surface); padding: 20px; }
17
17
  .theme-products a { display: flex; height: 100%; flex-direction: column; justify-content: flex-end; color: inherit; text-decoration: none; }
18
- .theme-products span { margin-top: 8px; color: #64748b; font-size: 13px; }
19
- .theme-product-detail { display: grid; gap: 32px; grid-template-columns: 1fr auto; align-items: end; border-radius: var(--theme-radius); background: white; padding: clamp(24px, 5vw, 56px); }
20
- .theme-footer { display: flex; justify-content: space-between; border-top: 1px solid #e2e8f0; padding-block: 32px; }
18
+ .theme-products span { margin-top: 8px; color: var(--theme-text-muted); font-size: 13px; }
19
+ .theme-product-detail { display: grid; gap: 32px; grid-template-columns: 1fr auto; align-items: end; border-radius: var(--theme-radius); background: var(--theme-surface); padding: clamp(24px, 5vw, 56px); }
20
+ .theme-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--theme-border); background: var(--theme-footer-background); color: var(--theme-footer-text); padding: 32px 20px; }
21
21
  @media (max-width: 700px) { .theme-header { align-items: stretch; flex-direction: column; padding-block: 16px; } .theme-header form, .theme-header input { width: 100%; min-width: 0; } .theme-product-detail { grid-template-columns: 1fr; } }
@@ -15,9 +15,20 @@ export default function Theme({ context, route = { type: "home" }, sdk }: Nuvler
15
15
  };
16
16
  const style = {
17
17
  "--theme-primary": tokens.colors.primary,
18
+ "--theme-primary-text": tokens.colors.primaryText,
18
19
  "--theme-secondary": tokens.colors.secondary,
20
+ "--theme-secondary-text": tokens.colors.secondaryText,
21
+ "--theme-accent": tokens.colors.accent,
19
22
  "--theme-background": tokens.colors.background,
23
+ "--theme-surface": tokens.colors.surface,
24
+ "--theme-surface-alt": tokens.colors.surfaceAlt,
20
25
  "--theme-text": tokens.colors.text,
26
+ "--theme-text-muted": tokens.colors.textMuted,
27
+ "--theme-border": tokens.colors.border,
28
+ "--theme-header-background": tokens.colors.headerBackground,
29
+ "--theme-header-text": tokens.colors.headerText,
30
+ "--theme-footer-background": tokens.colors.footerBackground,
31
+ "--theme-footer-text": tokens.colors.footerText,
21
32
  "--theme-radius": `${tokens.layout.borderRadius}px`,
22
33
  "--theme-container": `${tokens.layout.containerWidth}px`,
23
34
  } as CSSProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvler/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "CLI oficial para criação, validação, preview e empacotamento de temas Nuvler",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,8 +20,8 @@
20
20
  "typecheck": "tsc -p tsconfig.json --noEmit"
21
21
  },
22
22
  "dependencies": {
23
- "@nuvler/theme-schema": "^1.1.0",
24
- "@nuvler/theme-sdk": "^1.1.0",
23
+ "@nuvler/theme-schema": "^1.2.0",
24
+ "@nuvler/theme-sdk": "^1.2.0",
25
25
  "@vitejs/plugin-react": "^6.0.5",
26
26
  "commander": "^15.0.0",
27
27
  "react": "19.2.8",
@@ -4,6 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <meta name="description" content="Preview local de temas Nuvler" />
7
+ <link rel="icon" href="/nuvler-icon.ico" sizes="any" />
7
8
  <title>Nuvler Theme Preview</title>
8
9
  </head>
9
10
  <body>
@@ -10,7 +10,7 @@
10
10
  "typecheck": "tsc -p tsconfig.json --noEmit"
11
11
  },
12
12
  "dependencies": {
13
- "@nuvler/theme-sdk": "1.1.0",
13
+ "@nuvler/theme-sdk": "1.2.0",
14
14
  "react": "19.2.8",
15
15
  "react-dom": "19.2.8"
16
16
  },