@altafusion/fugue-theme 0.5.0 → 0.6.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @altafusion/fugue-theme
2
2
 
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @altafusion/fugue-nuxt-ui@0.6.1
8
+ - @altafusion/nuxt-base@0.6.1
9
+
10
+ ## 0.6.0
11
+
12
+ ### Patch Changes
13
+
14
+ - @altafusion/fugue-nuxt-ui@0.6.0
15
+ - @altafusion/nuxt-base@0.6.0
16
+
3
17
  ## 0.5.0
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@altafusion/fugue-theme",
3
3
  "type": "module",
4
- "version": "0.5.0",
4
+ "version": "0.6.1",
5
5
  "description": "Optional Fugue theme layer — neutral tokens, theme CSS, Tailwind entry, dark-canvas",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/altafusion/fugue/tree/main/packages-fugue/fugue-theme#readme",
@@ -30,9 +30,9 @@
30
30
  "nuxt": ">=4.0.0"
31
31
  },
32
32
  "dependencies": {
33
- "@altafusion/fugue-nuxt-ui": "0.5.0",
34
- "@altafusion/nuxt-base": "0.5.0",
35
- "@iconify-json/lucide": "^1.2.159",
33
+ "@altafusion/fugue-nuxt-ui": "0.6.1",
34
+ "@altafusion/nuxt-base": "0.6.1",
35
+ "@iconify-json/lucide": "^1.2.160",
36
36
  "@iconify-json/simple-icons": "^1.2.104",
37
37
  "@nuxt/eslint": "^1.17.0",
38
38
  "@nuxt/icon": "^2.6.3",
@@ -40,8 +40,8 @@
40
40
  "tailwindcss": "^4.3.5"
41
41
  },
42
42
  "devDependencies": {
43
- "@altafusion/eslint-config": "0.5.0",
44
- "@types/node": "^26.6.10",
43
+ "@altafusion/eslint-config": "0.6.1",
44
+ "@types/node": "^26.6.11",
45
45
  "eslint": "^10.15.0",
46
46
  "nuxt": "^4.7.0",
47
47
  "typescript": "^6.0.3",
@@ -49,6 +49,7 @@
49
49
  },
50
50
  "files": [
51
51
  "**",
52
+ "!playground",
52
53
  "!**/*.test.ts",
53
54
  "!**/.nuxt",
54
55
  "!**/.output",
@@ -1,15 +0,0 @@
1
- # Fugue Theme Playground
2
-
3
- Private Nuxt app on port 7010. Extends `@altafusion/fugue-theme` and `@altafusion/shell` with no product palette, so heading, body, muted, dimmed, and toned roles can be judged in light and dark.
4
-
5
- ## Run
6
-
7
- From the repo root:
8
-
9
- ```bash
10
- pnpm --filter @altafusion/fugue-theme dev
11
- ```
12
-
13
- Open http://localhost:7010. The shell header toggles color mode.
14
-
15
- The workflow playground (`packages-fugue/fugue-workflow/playground`) extends only `@altafusion/fugue-workflow` and does not load fugue-theme, so it still uses Nuxt UI default contrast.
@@ -1,11 +0,0 @@
1
- export default defineAppConfig({
2
- brand: {
3
- name: 'Fugue Theme',
4
- },
5
- ui: {
6
- colors: {
7
- primary: 'blue',
8
- neutral: 'slate',
9
- },
10
- },
11
- })
@@ -1,7 +0,0 @@
1
- <template>
2
- <UApp>
3
- <NuxtLayout>
4
- <NuxtPage />
5
- </NuxtLayout>
6
- </UApp>
7
- </template>
@@ -1,29 +0,0 @@
1
- <script setup lang="ts">
2
- import type { BrandId } from '@altafusion/shell/utils/altafusionBrandTheme'
3
-
4
- const { brand, setBrand, brands } = useBrandTheme()
5
-
6
- const items = computed(() => brands.map(entry => ({
7
- label: entry.label,
8
- value: entry.id,
9
- })))
10
-
11
- const brandIds = new Set<BrandId>(['default', 'violet', 'green'])
12
-
13
- function onSelect(value: unknown) {
14
- if (typeof value !== 'string' || !brandIds.has(value as BrandId))
15
- return
16
- setBrand(value as BrandId)
17
- }
18
- </script>
19
-
20
- <template>
21
- <USelect
22
- :model-value="brand"
23
- :items="items"
24
- size="sm"
25
- class="w-28"
26
- aria-label="Color Theme"
27
- @update:model-value="onSelect"
28
- />
29
- </template>
@@ -1,402 +0,0 @@
1
- <script setup lang="ts">
2
- const sections = [
3
- { id: 'typography', label: 'Typography' },
4
- { id: 'buttons', label: 'Buttons' },
5
- { id: 'badges', label: 'Badges' },
6
- { id: 'alerts', label: 'Alerts' },
7
- { id: 'cards', label: 'Cards' },
8
- { id: 'tables', label: 'Tables' },
9
- { id: 'forms', label: 'Forms' },
10
- { id: 'navs', label: 'Navs' },
11
- { id: 'breadcrumb', label: 'Breadcrumb' },
12
- { id: 'accordion', label: 'Accordion' },
13
- { id: 'progress', label: 'Progress' },
14
- { id: 'pagination', label: 'Pagination' },
15
- { id: 'dropdown', label: 'Dropdown' },
16
- ] as const
17
-
18
- const activeId = ref<string>(sections[0].id)
19
- let observer: IntersectionObserver | undefined
20
-
21
- onMounted(() => {
22
- observer = new IntersectionObserver((entries) => {
23
- const hit = entries
24
- .filter(entry => entry.isIntersecting)
25
- .sort((a, b) => b.intersectionRatio - a.intersectionRatio)[0]
26
- const id = hit?.target.id
27
- if (id)
28
- activeId.value = id
29
- }, {
30
- rootMargin: '-15% 0px -70% 0px',
31
- threshold: [0, 0.25, 1],
32
- })
33
-
34
- for (const section of sections) {
35
- const el = document.getElementById(section.id)
36
- if (el)
37
- observer.observe(el)
38
- }
39
- })
40
-
41
- onUnmounted(() => observer?.disconnect())
42
-
43
- const buttonColors = [
44
- 'primary',
45
- 'neutral',
46
- 'success',
47
- 'info',
48
- 'warning',
49
- 'error',
50
- ] as const
51
- const buttonVariants = [
52
- 'solid',
53
- 'outline',
54
- 'soft',
55
- 'subtle',
56
- 'ghost',
57
- 'link',
58
- ] as const
59
-
60
- function colorLabel(color: typeof buttonColors[number]) {
61
- return color.charAt(0).toUpperCase() + color.slice(1)
62
- }
63
-
64
- const people = [
65
- {
66
- id: 1,
67
- first: 'Mark',
68
- last: 'Otto',
69
- handle: '@mdo',
70
- },
71
- {
72
- id: 2,
73
- first: 'Jacob',
74
- last: 'Thornton',
75
- handle: '@fat',
76
- },
77
- {
78
- id: 3,
79
- first: 'John',
80
- last: 'Doe',
81
- handle: '@social',
82
- },
83
- ]
84
- const columns = [
85
- { accessorKey: 'id', header: '#' },
86
- { accessorKey: 'first', header: 'First' },
87
- { accessorKey: 'last', header: 'Last' },
88
- { accessorKey: 'handle', header: 'Handle' },
89
- ]
90
-
91
- const name = ref('')
92
- const email = ref('')
93
- const role = ref('Editor')
94
- const agree = ref(false)
95
- const updates = ref(true)
96
- const choice = ref('one')
97
- const page = ref(1)
98
-
99
- const roles = [
100
- { label: 'Editor', value: 'Editor' },
101
- { label: 'Admin', value: 'Admin' },
102
- { label: 'Viewer', value: 'Viewer' },
103
- ]
104
- const radioItems = [
105
- { label: 'One', value: 'one' },
106
- { label: 'Two', value: 'two' },
107
- ]
108
- const tabs = [
109
- { label: 'Home', content: 'Placeholder content for the Home tab.' },
110
- { label: 'Profile', content: 'Placeholder content for the Profile tab.' },
111
- { label: 'Contact', content: 'Placeholder content for the Contact tab.' },
112
- ]
113
- const crumbs = [
114
- { label: 'Home', to: '/' },
115
- { label: 'Expanded Theme', to: '/expanded-theme' },
116
- { label: 'Current' },
117
- ]
118
- const accordion = [
119
- { label: 'Accordion Item 1', content: 'The first panel. Open it to see body text on an elevated surface.' },
120
- { label: 'Accordion Item 2', content: 'The second panel. Spacing and borders should follow the theme.' },
121
- { label: 'Accordion Item 3', content: 'The third panel. This one starts closed.' },
122
- ]
123
- const menuItems = [
124
- { label: 'Edit' },
125
- { label: 'Duplicate' },
126
- { label: 'Delete' },
127
- ]
128
-
129
- useSeoMeta({ title: 'Expanded Theme' })
130
- </script>
131
-
132
- <template>
133
- <div class="mx-auto flex max-w-6xl gap-10 px-4 py-8 lg:px-6">
134
- <div class="flex min-w-0 flex-1 flex-col gap-12">
135
- <header>
136
- <h1 class="text-3xl font-semibold text-highlighted">
137
- Expanded Theme
138
- </h1>
139
- <p class="mt-3 text-lg text-muted">
140
- Every common control on one page, in the same spirit as the Bootstrap cheatsheet.
141
- </p>
142
- <UButton
143
- to="/"
144
- label="Theme Playground"
145
- variant="link"
146
- class="mt-2"
147
- />
148
- </header>
149
-
150
- <section id="typography" class="scroll-mt-24">
151
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
152
- Typography
153
- </h2>
154
- <div class="flex flex-col gap-2">
155
- <h1 class="text-4xl font-semibold text-highlighted">
156
- Heading 1
157
- </h1>
158
- <h2 class="text-3xl font-semibold text-highlighted">
159
- Heading 2
160
- </h2>
161
- <h3 class="text-2xl font-semibold text-highlighted">
162
- Heading 3
163
- </h3>
164
- <h4 class="text-xl font-semibold text-highlighted">
165
- Heading 4
166
- </h4>
167
- <h5 class="text-lg font-semibold text-highlighted">
168
- Heading 5
169
- </h5>
170
- <h6 class="text-base font-semibold text-highlighted">
171
- Heading 6
172
- </h6>
173
- </div>
174
- <p class="mt-4 text-lg text-muted">
175
- This is a lead paragraph. It stands out from regular paragraphs.
176
- </p>
177
- <p class="mt-3 text-default">
178
- Body copy sits on the default text role. You can use it for a paragraph you read at length.
179
- </p>
180
- <p class="mt-3 text-muted">
181
- Muted text is for secondary lines and supporting detail.
182
- </p>
183
- <p class="mt-3 text-dimmed">
184
- Dimmed text is the quietest role on the canvas.
185
- </p>
186
- <p class="mt-3 text-default">
187
- Inline <strong class="text-highlighted">bold</strong> and <em>italic</em> emphasis in body copy.
188
- </p>
189
- <blockquote class="mt-4 border-s-4 border-default ps-4 text-muted">
190
- A well-known quote, contained in a blockquote.
191
- </blockquote>
192
- <ul class="mt-4 list-disc ps-5 text-default">
193
- <li>First item.</li>
194
- <li>Second item.</li>
195
- <li>Third item.</li>
196
- </ul>
197
- </section>
198
-
199
- <section id="buttons" class="scroll-mt-24">
200
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
201
- Buttons
202
- </h2>
203
- <div
204
- v-for="variant in buttonVariants"
205
- :key="variant"
206
- class="mb-3 flex flex-wrap items-center gap-2"
207
- >
208
- <span class="w-16 shrink-0 text-xs capitalize text-dimmed">{{ variant }}</span>
209
- <UButton
210
- v-for="color in buttonColors"
211
- :key="`${variant}-${color}`"
212
- :color="color"
213
- :variant="variant"
214
- :label="colorLabel(color)"
215
- />
216
- </div>
217
- </section>
218
-
219
- <section id="badges" class="scroll-mt-24">
220
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
221
- Badges
222
- </h2>
223
- <div class="mb-3 flex flex-wrap gap-2">
224
- <UBadge
225
- v-for="color in buttonColors"
226
- :key="`badge-${color}`"
227
- :color="color"
228
- :label="colorLabel(color)"
229
- />
230
- </div>
231
- <div class="flex flex-wrap gap-2">
232
- <UBadge
233
- v-for="color in buttonColors"
234
- :key="`badge-subtle-${color}`"
235
- :color="color"
236
- variant="subtle"
237
- :label="colorLabel(color)"
238
- />
239
- </div>
240
- </section>
241
-
242
- <section id="alerts" class="scroll-mt-24">
243
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
244
- Alerts
245
- </h2>
246
- <div class="flex flex-col gap-3">
247
- <UAlert
248
- color="info"
249
- variant="subtle"
250
- title="Info"
251
- description="A quiet notice with supporting detail."
252
- />
253
- <UAlert
254
- color="success"
255
- variant="subtle"
256
- title="Success"
257
- description="Something finished without errors."
258
- />
259
- <UAlert
260
- color="warning"
261
- variant="subtle"
262
- title="Warning"
263
- description="Review this before you continue."
264
- />
265
- <UAlert
266
- color="error"
267
- variant="subtle"
268
- title="Error"
269
- description="This action could not be completed."
270
- />
271
- <UAlert
272
- color="primary"
273
- variant="subtle"
274
- title="Well Done"
275
- description="A longer alert so you can see spacing, title weight, and body text together."
276
- />
277
- </div>
278
- </section>
279
-
280
- <section id="cards" class="scroll-mt-24">
281
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
282
- Cards
283
- </h2>
284
- <div class="grid gap-4 sm:grid-cols-3">
285
- <UCard
286
- title="Card Title"
287
- description="Some quick example text to build on the card title."
288
- />
289
- <UCard
290
- title="Card Title"
291
- description="Some quick example text to build on the card title."
292
- />
293
- <UCard
294
- title="Card Title"
295
- description="Some quick example text to build on the card title."
296
- />
297
- </div>
298
- </section>
299
-
300
- <section id="tables" class="scroll-mt-24">
301
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
302
- Tables
303
- </h2>
304
- <UTable :data="people" :columns="columns" />
305
- </section>
306
-
307
- <section id="forms" class="scroll-mt-24">
308
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
309
- Forms
310
- </h2>
311
- <form class="flex max-w-md flex-col gap-4" @submit.prevent>
312
- <UFormField label="Name">
313
- <UInput v-model="name" placeholder="Ada Lovelace" class="w-full" />
314
- </UFormField>
315
- <UFormField label="Email">
316
- <UInput v-model="email" type="email" placeholder="ada@example.com" class="w-full" />
317
- </UFormField>
318
- <UFormField label="Role">
319
- <USelect v-model="role" :items="roles" class="w-full" />
320
- </UFormField>
321
- <UFormField label="Note">
322
- <UTextarea placeholder="A short note" :rows="3" class="w-full" />
323
- </UFormField>
324
- <UFormField label="Disabled">
325
- <UInput model-value="Read only" disabled class="w-full" />
326
- </UFormField>
327
- <URadioGroup v-model="choice" :items="radioItems" />
328
- <UCheckbox v-model="agree" label="I agree" />
329
- <USwitch v-model="updates" label="Send updates" />
330
- </form>
331
- </section>
332
-
333
- <section id="navs" class="scroll-mt-24">
334
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
335
- Navs
336
- </h2>
337
- <UTabs :items="tabs" class="w-full" />
338
- </section>
339
-
340
- <section id="breadcrumb" class="scroll-mt-24">
341
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
342
- Breadcrumb
343
- </h2>
344
- <UBreadcrumb :items="crumbs" />
345
- </section>
346
-
347
- <section id="accordion" class="scroll-mt-24">
348
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
349
- Accordion
350
- </h2>
351
- <UAccordion :items="accordion" />
352
- </section>
353
-
354
- <section id="progress" class="scroll-mt-24">
355
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
356
- Progress
357
- </h2>
358
- <div class="flex flex-col gap-3">
359
- <UProgress :model-value="25" color="primary" class="w-full" />
360
- <UProgress :model-value="50" color="success" class="w-full" />
361
- <UProgress :model-value="75" color="warning" class="w-full" />
362
- <UProgress :model-value="90" color="error" class="w-full" />
363
- </div>
364
- </section>
365
-
366
- <section id="pagination" class="scroll-mt-24">
367
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
368
- Pagination
369
- </h2>
370
- <UPagination v-model:page="page" :total="100" />
371
- </section>
372
-
373
- <section id="dropdown" class="scroll-mt-24">
374
- <h2 class="sticky top-0 z-10 -mx-1 mb-4 border-b border-default bg-default/95 px-1 py-3 text-lg font-semibold text-highlighted backdrop-blur">
375
- Dropdown
376
- </h2>
377
- <UDropdownMenu :items="menuItems">
378
- <UButton label="Menu" color="neutral" variant="outline" />
379
- </UDropdownMenu>
380
- </section>
381
- </div>
382
-
383
- <aside class="hidden w-44 shrink-0 lg:block">
384
- <nav class="sticky top-6" aria-label="On This Page">
385
- <p class="mb-3 text-xs font-semibold text-dimmed">
386
- On This Page
387
- </p>
388
- <ul class="flex flex-col gap-1.5 text-sm">
389
- <li v-for="section in sections" :key="section.id">
390
- <a
391
- :href="`#${section.id}`"
392
- class="block rounded px-2 py-1"
393
- :class="activeId === section.id ? 'bg-elevated font-medium text-highlighted' : 'text-muted hover:text-highlighted'"
394
- >
395
- {{ section.label }}
396
- </a>
397
- </li>
398
- </ul>
399
- </nav>
400
- </aside>
401
- </div>
402
- </template>
@@ -1,189 +0,0 @@
1
- <script setup lang="ts">
2
- const name = ref('')
3
- const note = ref('')
4
- const role = ref('Editor')
5
- const notify = ref(true)
6
-
7
- const roles = [
8
- { label: 'Editor', value: 'Editor' },
9
- { label: 'Admin', value: 'Admin' },
10
- { label: 'Viewer', value: 'Viewer' },
11
- ]
12
-
13
- useSeoMeta({ title: 'Fugue Theme Playground' })
14
- </script>
15
-
16
- <template>
17
- <UContainer class="py-10">
18
- <div class="flex flex-col gap-12">
19
- <header class="max-w-2xl">
20
- <h1 class="text-3xl font-semibold text-highlighted">
21
- Theme Playground
22
- </h1>
23
- <p class="mt-3 text-lg text-muted">
24
- Canvas, text roles, and the controls a page actually uses. Switch color mode in the header.
25
- </p>
26
- </header>
27
-
28
- <section>
29
- <h2 class="mb-4 text-lg font-semibold text-highlighted">
30
- Surfaces
31
- </h2>
32
- <div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
33
- <div class="rounded-lg border border-default bg-default p-4">
34
- <p class="font-medium text-highlighted">
35
- Canvas
36
- </p>
37
- <p class="mt-1 text-sm text-muted">
38
- The page surface.
39
- </p>
40
- <p class="mt-3 text-xs text-dimmed">
41
- <code>bg-default</code>
42
- </p>
43
- </div>
44
- <div class="rounded-lg border border-default bg-muted p-4">
45
- <p class="font-medium text-highlighted">
46
- Muted
47
- </p>
48
- <p class="mt-1 text-sm text-muted">
49
- A quiet inset.
50
- </p>
51
- <p class="mt-3 text-xs text-dimmed">
52
- <code>bg-muted</code>
53
- </p>
54
- </div>
55
- <div class="rounded-lg border border-default bg-elevated p-4">
56
- <p class="font-medium text-highlighted">
57
- Elevated
58
- </p>
59
- <p class="mt-1 text-sm text-muted">
60
- Cards and menus.
61
- </p>
62
- <p class="mt-3 text-xs text-dimmed">
63
- <code>bg-elevated</code>
64
- </p>
65
- </div>
66
- <div class="rounded-lg border border-default bg-accented p-4">
67
- <p class="font-medium text-highlighted">
68
- Accented
69
- </p>
70
- <p class="mt-1 text-sm text-muted">
71
- A stronger fill.
72
- </p>
73
- <p class="mt-3 text-xs text-dimmed">
74
- <code>bg-accented</code>
75
- </p>
76
- </div>
77
- </div>
78
- </section>
79
-
80
- <section class="grid gap-8 lg:grid-cols-2">
81
- <div>
82
- <h2 class="mb-4 text-lg font-semibold text-highlighted">
83
- Text
84
- </h2>
85
- <div class="flex flex-col gap-3 rounded-lg border border-default p-5">
86
- <p class="text-2xl font-semibold text-highlighted">
87
- Heading
88
- </p>
89
- <p class="text-default">
90
- Body copy sits on the default text role. This is the paragraph you read at length.
91
- </p>
92
- <p class="text-muted">
93
- Muted copy is for ledes and secondary lines.
94
- </p>
95
- <p class="text-toned">
96
- Toned copy sits between body and muted.
97
- </p>
98
- <p class="text-dimmed">
99
- Dimmed copy is the quietest role.
100
- </p>
101
- <p class="text-primary">
102
- Primary color on a sentence.
103
- </p>
104
- </div>
105
- </div>
106
-
107
- <div>
108
- <h2 class="mb-4 text-lg font-semibold text-highlighted">
109
- Actions
110
- </h2>
111
- <div class="flex flex-col gap-4 rounded-lg border border-default p-5">
112
- <div class="flex flex-wrap items-center gap-3">
113
- <UButton label="Primary" />
114
- <UButton label="Soft" variant="soft" />
115
- <UButton label="Outline" variant="outline" />
116
- <UButton label="Ghost" color="neutral" variant="ghost" />
117
- </div>
118
- <div class="flex flex-wrap items-center gap-3">
119
- <UButton label="Neutral" color="neutral" variant="outline" />
120
- <UButton label="Link" variant="link" />
121
- <NuxtLink to="/" class="text-primary">
122
- Text Link
123
- </NuxtLink>
124
- </div>
125
- </div>
126
- </div>
127
- </section>
128
-
129
- <section class="grid gap-8 lg:grid-cols-2">
130
- <div>
131
- <h2 class="mb-4 text-lg font-semibold text-highlighted">
132
- Fields
133
- </h2>
134
- <form class="flex flex-col gap-4 rounded-lg border border-default p-5" @submit.prevent>
135
- <UFormField label="Name">
136
- <UInput v-model="name" placeholder="Ada Lovelace" class="w-full" />
137
- </UFormField>
138
- <UFormField label="Role">
139
- <USelect v-model="role" :items="roles" class="w-full" />
140
- </UFormField>
141
- <UFormField label="Note">
142
- <UTextarea v-model="note" placeholder="A short note" :rows="3" class="w-full" />
143
- </UFormField>
144
- <USwitch v-model="notify" label="Send updates" />
145
- </form>
146
- </div>
147
-
148
- <div>
149
- <h2 class="mb-4 text-lg font-semibold text-highlighted">
150
- Status
151
- </h2>
152
- <div class="flex flex-col gap-4">
153
- <div class="flex flex-wrap gap-2">
154
- <UBadge label="Primary" />
155
- <UBadge label="Neutral" color="neutral" variant="subtle" />
156
- <UBadge label="Success" color="success" variant="subtle" />
157
- <UBadge label="Warning" color="warning" variant="subtle" />
158
- <UBadge label="Error" color="error" variant="subtle" />
159
- </div>
160
- <UAlert
161
- color="info"
162
- variant="subtle"
163
- title="Info"
164
- description="A quiet notice on the canvas."
165
- />
166
- <UAlert
167
- color="success"
168
- variant="subtle"
169
- title="Success"
170
- description="Something finished cleanly."
171
- />
172
- <UAlert
173
- color="warning"
174
- variant="subtle"
175
- title="Warning"
176
- description="Check this before continuing."
177
- />
178
- <UAlert
179
- color="error"
180
- variant="subtle"
181
- title="Error"
182
- description="This step did not complete."
183
- />
184
- </div>
185
- </div>
186
- </section>
187
- </div>
188
- </UContainer>
189
- </template>
@@ -1,14 +0,0 @@
1
- import PlaygroundThemeSelect from '../components/PlaygroundThemeSelect.vue'
2
-
3
- export default defineNuxtPlugin(() => {
4
- setAppNavItems([
5
- {
6
- label: 'Expanded Theme',
7
- to: '/expanded-theme',
8
- icon: 'lucide:info',
9
- id: 'expanded-theme',
10
- },
11
- ])
12
-
13
- setShellHeaderActions(PlaygroundThemeSelect)
14
- })
@@ -1,9 +0,0 @@
1
- // @ts-check
2
- import { createVuePackageEslintConfig } from '@altafusion/eslint-config'
3
-
4
- /** Playground app — same ESLint base as fugue-theme. */
5
- export default createVuePackageEslintConfig({
6
- rules: {
7
- 'no-unused-vars': 'off',
8
- },
9
- })
@@ -1,15 +0,0 @@
1
- import { devPorts, devServerOptions, devViteServerOptions } from '@altafusion/nuxt-base/dev/ports'
2
-
3
- /**
4
- * Specimen app for fugue-theme tokens plus shell chrome.
5
- * No palette override — product brands stay in their own apps.
6
- */
7
- export default defineNuxtConfig({
8
- extends: ['@altafusion/fugue-theme', '@altafusion/shell'],
9
-
10
- devServer: devServerOptions(devPorts.themePlayground),
11
-
12
- vite: {
13
- server: devViteServerOptions(),
14
- },
15
- })
@@ -1,27 +0,0 @@
1
- {
2
- "name": "@altafusion/fugue-theme-playground",
3
- "type": "module",
4
- "version": "0.1.0",
5
- "private": true,
6
- "description": "Standalone Nuxt app that extends fugue-theme and shell so text roles can be test-driven without a product palette",
7
- "scripts": {
8
- "dev": "nuxt dev",
9
- "build": "nuxt build",
10
- "lint": "eslint .",
11
- "lint:fix": "eslint . --fix",
12
- "postinstall": "nuxt prepare"
13
- },
14
- "dependencies": {
15
- "@altafusion/fugue-theme": "workspace:*",
16
- "@altafusion/nuxt-base": "workspace:*",
17
- "@altafusion/shell": "workspace:*",
18
- "nuxt": "catalog:apps",
19
- "vue": "catalog:apps"
20
- },
21
- "devDependencies": {
22
- "@altafusion/eslint-config": "workspace:*",
23
- "@types/node": "catalog:dev",
24
- "eslint": "catalog:dev",
25
- "typescript": "catalog:dev"
26
- }
27
- }
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "./.nuxt/tsconfig.json",
3
- "include": [
4
- "**/*.ts",
5
- "**/*.vue",
6
- "types/**/*.d.ts",
7
- ".nuxt/nuxt.d.ts",
8
- ".nuxt/**/*.d.ts"
9
- ]
10
- }