kmcom-nuxt-layers 2.6.2 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/ARCHITECTURE.md +21 -17
- package/docs/FEEDS.md +42 -34
- package/docs/IMPROVE-AUDIT-README.md +9 -10
- package/docs/IMPROVE-AUDIT-RESULTS.md +16 -17
- package/docs/IMPROVE-DEEP-AUDIT-RESULTS.md +29 -29
- package/docs/LAYERS-FIXES.md +1 -0
- package/docs/LAYOUT.md +91 -86
- package/docs/MIGRATION.md +93 -60
- package/docs/UPAGE-GRID-INTEGRATION.md +12 -10
- package/docs/USAGE.md +29 -38
- package/layers/animations/app/utils/pointerMotion.ts +1 -4
- package/layers/baseline/app/components/BaselineStatus.vue +13 -13
- package/layers/baseline/app/plugins/baseline-status.client.ts +4 -1
- package/layers/canvas/app/composables/useRendererCapabilities.ts +2 -2
- package/layers/content/app/components/Blog/Card.vue +1 -0
- package/layers/content/app/components/Gallery/Card.vue +1 -1
- package/layers/content/app/components/Gallery/Detail.vue +8 -1
- package/layers/content/app/components/Portfolio/Card.vue +1 -0
- package/layers/content/app/components/Portfolio/ColorPalette.vue +8 -1
- package/layers/content/app/components/Portfolio/Typography.vue +12 -2
- package/layers/content/app/composables/useGalleryItems.ts +3 -2
- package/layers/content/app/composables/usePortfolioItems.ts +3 -2
- package/layers/core/app/components/DiagnosticsPage.vue +15 -3
- package/layers/core/app/utils/featureClasses.test.ts +1 -3
- package/layers/core/app/utils/featureClasses.ts +1 -3
- package/layers/core/app/utils/helpers.test.ts +6 -2
- package/layers/core/nuxt.config.ts +2 -0
- package/layers/feeds/app/assets/css/feeds.css +3 -2
- package/layers/feeds/app/components/Feeds/Index.vue +36 -6
- package/layers/feeds/app/components/Feeds/RouteCard.vue +1 -3
- package/layers/feeds/app/plugins/feed-head.ts +2 -2
- package/layers/feeds/package.json +1 -1
- package/layers/feeds/public/feed/style.css +9 -9
- package/layers/feeds/server/utils/content-adapter.test.ts +3 -4
- package/layers/feeds/server/utils/content-adapter.ts +1 -1
- package/layers/feeds/server/utils/feed-author.test.ts +3 -3
- package/layers/feeds/server/utils/feed-config.test.ts +28 -6
- package/layers/feeds/server/utils/feed-config.ts +1 -4
- package/layers/feeds/server/utils/feed-service.ts +1 -1
- package/layers/feeds/server/utils/formats/rss.ts +1 -1
- package/layers/feeds/server/utils/formats.test.ts +1 -1
- package/layers/forms/app/utils/fieldProps.ts +1 -2
- package/layers/forms/server/api/contact.post.ts +4 -1
- package/layers/layout/app/assets/css/layout/grids.css +12 -3
- package/layers/layout/app/assets/css/layout/modes/fluid.css +9 -0
- package/layers/layout/app/components/Layout/Section/Sidebar.vue +11 -4
- package/layers/layout/app/utils/gridPlacementStyle.test.ts +3 -9
- package/layers/layout/app/utils/gridPlacementStyle.ts +10 -7
- package/layers/mailer/server/utils/email.ts +4 -3
- package/layers/mailer/server/utils/hooks.ts +1 -1
- package/layers/metadata/app/composables/useMetadataItem.ts +6 -2
- package/layers/metadata/app/composables/useMetadataSearch.ts +6 -2
- package/layers/metadata/providers/comicvine/server/utils/metadata-comicvine/client.ts +5 -5
- package/layers/metadata/providers/comicvine/server/utils/metadata-comicvine/provider.ts +11 -3
- package/layers/metadata/providers/google-books/server/utils/metadata-google-books/client.ts +9 -6
- package/layers/metadata/providers/google-books/server/utils/metadata-google-books/provider.ts +6 -3
- package/layers/metadata/providers/openlibrary/server/utils/metadata-openlibrary/normalise.test.ts +3 -1
- package/layers/metadata/providers/openlibrary/server/utils/metadata-openlibrary/provider.ts +4 -2
- package/layers/metadata/providers/themoviedb/server/utils/metadata-tmdb/client.test.ts +1 -3
- package/layers/metadata/providers/themoviedb/server/utils/metadata-tmdb/provider.ts +3 -1
- package/layers/metadata/server/api/metadata/status.get.ts +13 -18
- package/layers/metadata/server/utils/metadata/provider-registry.test.ts +1 -1
- package/layers/metadata/server/utils/metadata/search.test.ts +18 -18
- package/layers/metadata/server/utils/metadata/search.ts +16 -8
- package/layers/navigation/app/utils/site.test.ts +1 -3
- package/layers/scroll/app/components/Motion/PinnedSection.vue +11 -1
- package/layers/scroll/app/composables/useSectionProgress.ts +1 -1
- package/layers/scroll/app/plugins/locomotive-scroll.client.ts +6 -0
- package/layers/scroll/app/utils/scroll.ts +5 -1
- package/layers/seo/app/utils/seoConfig.test.ts +1 -1
- package/layers/shader/app/assets/css/shader.css +1 -1
- package/layers/shader/app/components/Material/AmbientAurora.client.vue +16 -4
- package/layers/shader/app/components/Material/AmbientFlow.client.vue +21 -5
- package/layers/shader/app/components/Material/AmbientGradientMesh.client.vue +21 -5
- package/layers/shader/app/components/Material/AmbientNebula.client.vue +21 -5
- package/layers/shader/app/components/Material/AmbientOcean.client.vue +16 -4
- package/layers/shader/app/components/Material/Gradient.client.vue +1 -1
- package/layers/shader/app/components/Material/Image.client.vue +1 -1
- package/layers/shader/app/components/Material/Noise.client.vue +11 -3
- package/layers/shader/app/composables/useAmbientMaterials.ts +0 -1
- package/layers/shader/app/shaders/common/blend.ts +5 -1
- package/layers/shader/app/shaders/common/grain.ts +5 -1
- package/layers/shader/app/shaders/common/lighting.ts +1 -6
- package/layers/shader/app/shaders/common/noise.ts +3 -1
- package/layers/shader/app/shaders/common/patterns.ts +1 -1
- package/layers/shader/app/shaders/common/shapes.ts +5 -1
- package/layers/shader/app/shaders/common/uv.ts +19 -2
- package/layers/shader/app/shaders/createMaterial.ts +11 -6
- package/layers/shader/app/shaders/layers/shaderGradient.ts +2 -12
- package/layers/shader/app/shaders/types.ts +1 -1
- package/layers/shader/app/types/uniforms.ts +1 -0
- package/layers/shader/app/utils/tsl/animation.ts +34 -36
- package/layers/starter/app/components/StarterDesignSystem.vue +120 -120
- package/layers/starter/app/components/StarterHome.vue +233 -208
- package/layers/theme/app/assets/css/theme.css +1 -1
- package/layers/theme/server/utils/accent-css.test.ts +17 -2
- package/layers/theme/server/utils/fouc-config.test.ts +7 -3
- package/layers/theme/server/utils/fouc-config.ts +24 -12
- package/layers/transitions/app/assets/css/transitions.css +6 -0
- package/layers/typography/app/assets/css/typography.css +313 -0
- package/layers/typography/app/components/Typography/Headline.vue +23 -14
- package/layers/typography/app/components/Typography/HeadlineScreen.vue +5 -12
- package/layers/typography/app/components/Typography/index.vue +4 -0
- package/layers/typography/app/composables/typography.ts +45 -5
- package/layers/typography/app/types/typography.ts +36 -7
- package/layers/typography/nuxt.config.ts +2 -0
- package/layers/visual/app/app.config.ts +1 -1
- package/layers/visual/app/assets/css/visual.css +1 -1
- package/layers/visual/app/composables/accent.ts +1 -2
- package/layers/visual/app/composables/tint.ts +1 -2
- package/layers/visual/app/types/media.ts +2 -2
- package/layers/visual/app/utils/gradientStyle.test.ts +1 -2
- package/layers/visual/app/utils/responsiveSizes.ts +0 -1
- package/package.json +36 -16
|
@@ -1,221 +1,247 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
useSeoMeta({
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
})
|
|
2
|
+
useSeoMeta({
|
|
3
|
+
title: 'kmcom-nuxt-layers Starter',
|
|
4
|
+
description:
|
|
5
|
+
'A production-ready Nuxt starter powered by kmcom-nuxt-layers. Composable, modular, and ready to ship.',
|
|
6
|
+
})
|
|
7
7
|
|
|
8
|
-
const { gsap, ScrollTrigger } = useGsap()
|
|
9
|
-
gsap.registerPlugin(ScrollTrigger)
|
|
8
|
+
const { gsap, ScrollTrigger } = useGsap()
|
|
9
|
+
gsap.registerPlugin(ScrollTrigger)
|
|
10
10
|
|
|
11
|
-
const heroRef =
|
|
12
|
-
const sectionsRef =
|
|
11
|
+
const heroRef = useTemplateRef<HTMLElement>('heroRef')
|
|
12
|
+
const sectionsRef = useTemplateRef<HTMLElement>('sectionsRef')
|
|
13
13
|
|
|
14
|
-
let ctx: ReturnType<typeof gsap.context> | null = null
|
|
14
|
+
let ctx: ReturnType<typeof gsap.context> | null = null
|
|
15
15
|
|
|
16
|
-
onMounted(() => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
onMounted(() => {
|
|
17
|
+
ctx = gsap.context(() => {
|
|
18
|
+
if (heroRef.value) {
|
|
19
|
+
gsap.from(Array.from(heroRef.value.children), {
|
|
20
|
+
y: 24,
|
|
21
|
+
opacity: 0,
|
|
22
|
+
duration: 0.7,
|
|
23
|
+
stagger: 0.1,
|
|
24
|
+
ease: 'power3.out',
|
|
25
|
+
})
|
|
26
|
+
}
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
if (sectionsRef.value) {
|
|
29
|
+
gsap.from(sectionsRef.value.querySelectorAll('.layer-card'), {
|
|
30
|
+
scrollTrigger: {
|
|
31
|
+
trigger: sectionsRef.value,
|
|
32
|
+
start: 'top 85%',
|
|
33
|
+
toggleActions: 'play none none none',
|
|
34
|
+
},
|
|
35
|
+
y: 32,
|
|
36
|
+
opacity: 0,
|
|
37
|
+
scale: 0.97,
|
|
38
|
+
duration: 0.5,
|
|
39
|
+
stagger: { amount: 0.5 },
|
|
40
|
+
ease: 'power3.out',
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
})
|
|
43
44
|
})
|
|
44
|
-
})
|
|
45
45
|
|
|
46
|
-
onUnmounted(() => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
})
|
|
46
|
+
onUnmounted(() => {
|
|
47
|
+
ctx?.revert()
|
|
48
|
+
ctx = null
|
|
49
|
+
})
|
|
50
50
|
|
|
51
|
-
const appConfig = useAppConfig()
|
|
52
|
-
const activeLayers = appConfig.layers ?? {}
|
|
51
|
+
const appConfig = useAppConfig()
|
|
52
|
+
const activeLayers = appConfig.layers ?? {}
|
|
53
53
|
|
|
54
|
-
type LayerDef = {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
54
|
+
type LayerDef = {
|
|
55
|
+
name: string
|
|
56
|
+
key: string
|
|
57
|
+
description: string
|
|
58
|
+
icon: string
|
|
59
|
+
features: string[]
|
|
60
|
+
borderColor: string
|
|
61
|
+
bgColor: string
|
|
62
|
+
iconBg: string
|
|
63
|
+
iconColor: string
|
|
64
|
+
}
|
|
65
65
|
|
|
66
|
-
const coreLayers: LayerDef[] = [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
]
|
|
66
|
+
const coreLayers: LayerDef[] = [
|
|
67
|
+
{
|
|
68
|
+
name: 'Core',
|
|
69
|
+
key: 'core',
|
|
70
|
+
description: 'Foundation utilities, error handling, device detection, PWA support',
|
|
71
|
+
icon: 'i-lucide-box',
|
|
72
|
+
features: ['Browser Detection', 'Screen Info', 'Network Status', 'Loading States', 'PWA'],
|
|
73
|
+
borderColor: 'border-blue-500/30',
|
|
74
|
+
bgColor: 'bg-blue-500/5',
|
|
75
|
+
iconBg: 'bg-blue-500/10',
|
|
76
|
+
iconColor: 'text-blue-500',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'UI',
|
|
80
|
+
key: 'ui',
|
|
81
|
+
description: 'Typography, navigation, visual primitives and the design system',
|
|
82
|
+
icon: 'i-lucide-palette',
|
|
83
|
+
features: ['Typography', 'Color Tokens', 'Navigation', 'Visual Primitives', 'Toast', 'Modal'],
|
|
84
|
+
borderColor: 'border-pink-500/30',
|
|
85
|
+
bgColor: 'bg-pink-500/5',
|
|
86
|
+
iconBg: 'bg-pink-500/10',
|
|
87
|
+
iconColor: 'text-pink-500',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Layout',
|
|
91
|
+
key: 'layout',
|
|
92
|
+
description: 'Swiss Grid system, sections, and page containers',
|
|
93
|
+
icon: 'i-lucide-layout',
|
|
94
|
+
features: ['18-Col Grid', 'Hero Section', 'Split Section', 'Gallery Section', 'Grid Debug'],
|
|
95
|
+
borderColor: 'border-amber-500/30',
|
|
96
|
+
bgColor: 'bg-amber-500/5',
|
|
97
|
+
iconBg: 'bg-amber-500/10',
|
|
98
|
+
iconColor: 'text-amber-500',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'Motion',
|
|
102
|
+
key: 'motion',
|
|
103
|
+
description: 'GSAP, Lenis smooth scroll, page transitions and animation effects',
|
|
104
|
+
icon: 'i-lucide-sparkles',
|
|
105
|
+
features: ['GSAP', 'ScrollTrigger', 'Lenis', 'Marquee', 'Magnetic', 'Tilt', 'Cursor'],
|
|
106
|
+
borderColor: 'border-emerald-500/30',
|
|
107
|
+
bgColor: 'bg-emerald-500/5',
|
|
108
|
+
iconBg: 'bg-emerald-500/10',
|
|
109
|
+
iconColor: 'text-emerald-500',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'Forms',
|
|
113
|
+
key: 'forms',
|
|
114
|
+
description: 'Config-driven form fields with Zod validation and type inference',
|
|
115
|
+
icon: 'i-lucide-file-input',
|
|
116
|
+
features: [
|
|
117
|
+
'Dynamic Fields',
|
|
118
|
+
'Zod Validation',
|
|
119
|
+
'Type Inference',
|
|
120
|
+
'Auto Icons',
|
|
121
|
+
'Contact Form',
|
|
122
|
+
],
|
|
123
|
+
borderColor: 'border-cyan-500/30',
|
|
124
|
+
bgColor: 'bg-cyan-500/5',
|
|
125
|
+
iconBg: 'bg-cyan-500/10',
|
|
126
|
+
iconColor: 'text-cyan-500',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'Theme',
|
|
130
|
+
key: 'theme',
|
|
131
|
+
description: 'Dark mode, accent color palettes and design token system',
|
|
132
|
+
icon: 'i-lucide-swatch-book',
|
|
133
|
+
features: ['Dark Mode', 'Accent Colors', 'Color Tokens', 'Color Mode'],
|
|
134
|
+
borderColor: 'border-neutral-400/30',
|
|
135
|
+
bgColor: 'bg-neutral-400/5',
|
|
136
|
+
iconBg: 'bg-neutral-400/10',
|
|
137
|
+
iconColor: 'text-neutral-400',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'Content',
|
|
141
|
+
key: 'content',
|
|
142
|
+
description: 'Markdown CMS with typed collections via @nuxt/content',
|
|
143
|
+
icon: 'i-lucide-file-text',
|
|
144
|
+
features: ['Markdown', 'Collections', 'Frontmatter', 'Content API', 'Zod Schemas'],
|
|
145
|
+
borderColor: 'border-rose-500/30',
|
|
146
|
+
bgColor: 'bg-rose-500/5',
|
|
147
|
+
iconBg: 'bg-rose-500/10',
|
|
148
|
+
iconColor: 'text-rose-500',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: 'Scripts',
|
|
152
|
+
key: 'scripts',
|
|
153
|
+
description: 'Third-party script management with performance-safe loading',
|
|
154
|
+
icon: 'i-lucide-code',
|
|
155
|
+
features: ['Lazy Loading', 'Analytics', 'Consent-Aware', 'Performance-Safe'],
|
|
156
|
+
borderColor: 'border-indigo-500/30',
|
|
157
|
+
bgColor: 'bg-indigo-500/5',
|
|
158
|
+
iconBg: 'bg-indigo-500/10',
|
|
159
|
+
iconColor: 'text-indigo-500',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'Routing',
|
|
163
|
+
key: 'routing',
|
|
164
|
+
description: 'Advanced routing utilities, typed middleware and navigation helpers',
|
|
165
|
+
icon: 'i-lucide-route',
|
|
166
|
+
features: ['Typed Routes', 'Middleware', 'Route Guards', 'Navigation Utils'],
|
|
167
|
+
borderColor: 'border-teal-500/30',
|
|
168
|
+
bgColor: 'bg-teal-500/5',
|
|
169
|
+
iconBg: 'bg-teal-500/10',
|
|
170
|
+
iconColor: 'text-teal-500',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'SEO',
|
|
174
|
+
key: 'seo',
|
|
175
|
+
description: 'Meta tags, Open Graph, JSON-LD, sitemap and robots.txt via @nuxtjs/seo',
|
|
176
|
+
icon: 'i-lucide-search',
|
|
177
|
+
features: ['Meta Tags', 'Open Graph', 'JSON-LD', 'Sitemap', 'Robots.txt', 'Schema.org'],
|
|
178
|
+
borderColor: 'border-sky-500/30',
|
|
179
|
+
bgColor: 'bg-sky-500/5',
|
|
180
|
+
iconBg: 'bg-sky-500/10',
|
|
181
|
+
iconColor: 'text-sky-500',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: 'Feeds',
|
|
185
|
+
key: 'feeds',
|
|
186
|
+
description: 'RSS and feed aggregation with display components',
|
|
187
|
+
icon: 'i-lucide-rss',
|
|
188
|
+
features: ['RSS Feeds', 'Feed Display', 'Feed Parser'],
|
|
189
|
+
borderColor: 'border-orange-500/30',
|
|
190
|
+
bgColor: 'bg-orange-500/5',
|
|
191
|
+
iconBg: 'bg-orange-500/10',
|
|
192
|
+
iconColor: 'text-orange-500',
|
|
193
|
+
},
|
|
194
|
+
]
|
|
189
195
|
|
|
190
|
-
const addonLayers: LayerDef[] = [
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
]
|
|
196
|
+
const addonLayers: LayerDef[] = [
|
|
197
|
+
{
|
|
198
|
+
name: 'Canvas',
|
|
199
|
+
key: 'canvas',
|
|
200
|
+
description: 'WebGL/WebGPU canvas foundation required by the shader layer',
|
|
201
|
+
icon: 'i-lucide-monitor',
|
|
202
|
+
features: ['WebGL', 'WebGPU', 'Canvas Composables', '3D Foundation'],
|
|
203
|
+
borderColor: 'border-purple-500/30',
|
|
204
|
+
bgColor: 'bg-purple-500/5',
|
|
205
|
+
iconBg: 'bg-purple-500/10',
|
|
206
|
+
iconColor: 'text-purple-500',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'Shader',
|
|
210
|
+
key: 'shader',
|
|
211
|
+
description: 'Three.js + TresJS shader system with TSL, noise and post-processing',
|
|
212
|
+
icon: 'i-lucide-shapes',
|
|
213
|
+
features: ['TSL Shaders', 'Noise', 'Gradients', 'Fresnel', 'Post-Processing', 'WebGPU'],
|
|
214
|
+
borderColor: 'border-violet-500/30',
|
|
215
|
+
bgColor: 'bg-violet-500/5',
|
|
216
|
+
iconBg: 'bg-violet-500/10',
|
|
217
|
+
iconColor: 'text-violet-500',
|
|
218
|
+
},
|
|
219
|
+
]
|
|
214
220
|
|
|
215
|
-
const marqueeItems = [
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
221
|
+
const marqueeItems = [
|
|
222
|
+
'Core',
|
|
223
|
+
'◆',
|
|
224
|
+
'UI',
|
|
225
|
+
'◆',
|
|
226
|
+
'Layout',
|
|
227
|
+
'◆',
|
|
228
|
+
'Motion',
|
|
229
|
+
'◆',
|
|
230
|
+
'Forms',
|
|
231
|
+
'◆',
|
|
232
|
+
'Theme',
|
|
233
|
+
'◆',
|
|
234
|
+
'Content',
|
|
235
|
+
'◆',
|
|
236
|
+
'SEO',
|
|
237
|
+
'◆',
|
|
238
|
+
'Scripts',
|
|
239
|
+
'◆',
|
|
240
|
+
'Routing',
|
|
241
|
+
'◆',
|
|
242
|
+
'Feeds',
|
|
243
|
+
'◆',
|
|
244
|
+
]
|
|
219
245
|
</script>
|
|
220
246
|
|
|
221
247
|
<template>
|
|
@@ -269,14 +295,14 @@ const marqueeItems = [
|
|
|
269
295
|
v-for="item in marqueeItems"
|
|
270
296
|
:key="item"
|
|
271
297
|
class="text-muted whitespace-nowrap text-xs font-semibold uppercase tracking-widest"
|
|
272
|
-
|
|
298
|
+
>{{ item }}</span
|
|
299
|
+
>
|
|
273
300
|
</MotionMarquee>
|
|
274
301
|
</div>
|
|
275
302
|
|
|
276
303
|
<div ref="sectionsRef">
|
|
277
304
|
<UContainer class="px-8 pb-8 pt-10">
|
|
278
305
|
<div class="space-y-12">
|
|
279
|
-
|
|
280
306
|
<!-- Core Layers -->
|
|
281
307
|
<section>
|
|
282
308
|
<div class="mb-6">
|
|
@@ -408,7 +434,6 @@ const marqueeItems = [
|
|
|
408
434
|
View Source
|
|
409
435
|
</UButton>
|
|
410
436
|
</div>
|
|
411
|
-
|
|
412
437
|
</div>
|
|
413
438
|
</UContainer>
|
|
414
439
|
</div>
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
[data-theme-transparency='reduced'] :where([class*='backdrop-blur']) {
|
|
38
38
|
backdrop-filter: none !important;
|
|
39
|
-
|
|
39
|
+
backdrop-filter: none !important;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
[data-theme-transparency='reduced'] :where([class*='bg-default/'], [class*='bg-elevated/']) {
|
|
@@ -4,8 +4,23 @@ import { describe, expect, it } from 'vitest'
|
|
|
4
4
|
import { buildAccentCSS } from './accent-css'
|
|
5
5
|
|
|
6
6
|
const ACCENTS = [
|
|
7
|
-
'red',
|
|
8
|
-
'
|
|
7
|
+
'red',
|
|
8
|
+
'orange',
|
|
9
|
+
'amber',
|
|
10
|
+
'yellow',
|
|
11
|
+
'lime',
|
|
12
|
+
'green',
|
|
13
|
+
'emerald',
|
|
14
|
+
'teal',
|
|
15
|
+
'cyan',
|
|
16
|
+
'sky',
|
|
17
|
+
'blue',
|
|
18
|
+
'indigo',
|
|
19
|
+
'violet',
|
|
20
|
+
'purple',
|
|
21
|
+
'fuchsia',
|
|
22
|
+
'pink',
|
|
23
|
+
'rose',
|
|
9
24
|
] as const
|
|
10
25
|
|
|
11
26
|
const SHADES = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950] as const
|
|
@@ -30,7 +30,9 @@ describe('buildThemeInitScript', () => {
|
|
|
30
30
|
expect(script).toContain("var ct=localStorage.getItem('theme-contrast');")
|
|
31
31
|
expect(script).toContain("var ctv=ct?JSON.parse(ct):'system';")
|
|
32
32
|
expect(script).toContain("if(ctv==='on'){h.setAttribute('data-theme-contrast','high')}")
|
|
33
|
-
expect(script).toContain(
|
|
33
|
+
expect(script).toContain(
|
|
34
|
+
"else if(ctv==='off'){h.setAttribute('data-theme-contrast','standard')}"
|
|
35
|
+
)
|
|
34
36
|
expect(script).toContain(
|
|
35
37
|
"else{h.setAttribute('data-theme-contrast',(window.matchMedia&&window.matchMedia('(prefers-contrast:more)').matches)?'high':'standard')}"
|
|
36
38
|
)
|
|
@@ -48,7 +50,9 @@ describe('buildThemeInitScript', () => {
|
|
|
48
50
|
it('emits a JSON-parsed tri-state block for theme-transparency', () => {
|
|
49
51
|
expect(script).toContain("var t=localStorage.getItem('theme-transparency');")
|
|
50
52
|
expect(script).toContain("if(tv==='on'){h.setAttribute('data-theme-transparency','reduced')}")
|
|
51
|
-
expect(script).toContain(
|
|
53
|
+
expect(script).toContain(
|
|
54
|
+
"else if(tv==='off'){h.setAttribute('data-theme-transparency','full')}"
|
|
55
|
+
)
|
|
52
56
|
expect(script).toContain(
|
|
53
57
|
"window.matchMedia('(prefers-reduced-transparency:reduce)').matches)?'reduced':'full'"
|
|
54
58
|
)
|
|
@@ -65,7 +69,7 @@ describe('buildThemeInitScript', () => {
|
|
|
65
69
|
})
|
|
66
70
|
|
|
67
71
|
it('does not JSON.parse the theme-mode value (jsonParsed: false)', () => {
|
|
68
|
-
expect(script).not.toContain(
|
|
72
|
+
expect(script).not.toContain('JSON.parse(dm)')
|
|
69
73
|
})
|
|
70
74
|
|
|
71
75
|
it('produces valid, evaluable JavaScript', () => {
|
|
@@ -20,40 +20,52 @@ const THEME_PREFERENCES: TriStatePreference[] = [
|
|
|
20
20
|
storageKey: 'theme-contrast',
|
|
21
21
|
attribute: 'data-theme-contrast',
|
|
22
22
|
jsonParsed: true,
|
|
23
|
-
conditionA: 'on',
|
|
24
|
-
|
|
23
|
+
conditionA: 'on',
|
|
24
|
+
valueA: 'high',
|
|
25
|
+
conditionB: 'off',
|
|
26
|
+
valueB: 'standard',
|
|
25
27
|
mediaQuery: '(prefers-contrast:more)',
|
|
26
|
-
mediaTrue: 'high',
|
|
28
|
+
mediaTrue: 'high',
|
|
29
|
+
mediaFalse: 'standard',
|
|
27
30
|
},
|
|
28
31
|
{
|
|
29
32
|
varName: 'm',
|
|
30
33
|
storageKey: 'theme-motion',
|
|
31
34
|
attribute: 'data-theme-motion',
|
|
32
35
|
jsonParsed: true,
|
|
33
|
-
conditionA: 'on',
|
|
34
|
-
|
|
36
|
+
conditionA: 'on',
|
|
37
|
+
valueA: 'reduced',
|
|
38
|
+
conditionB: 'off',
|
|
39
|
+
valueB: 'full',
|
|
35
40
|
mediaQuery: '(prefers-reduced-motion:reduce)',
|
|
36
|
-
mediaTrue: 'reduced',
|
|
41
|
+
mediaTrue: 'reduced',
|
|
42
|
+
mediaFalse: 'full',
|
|
37
43
|
},
|
|
38
44
|
{
|
|
39
45
|
varName: 't',
|
|
40
46
|
storageKey: 'theme-transparency',
|
|
41
47
|
attribute: 'data-theme-transparency',
|
|
42
48
|
jsonParsed: true,
|
|
43
|
-
conditionA: 'on',
|
|
44
|
-
|
|
49
|
+
conditionA: 'on',
|
|
50
|
+
valueA: 'reduced',
|
|
51
|
+
conditionB: 'off',
|
|
52
|
+
valueB: 'full',
|
|
45
53
|
mediaQuery: '(prefers-reduced-transparency:reduce)',
|
|
46
|
-
mediaTrue: 'reduced',
|
|
54
|
+
mediaTrue: 'reduced',
|
|
55
|
+
mediaFalse: 'full',
|
|
47
56
|
},
|
|
48
57
|
{
|
|
49
58
|
varName: 'dm',
|
|
50
59
|
storageKey: 'theme-mode',
|
|
51
60
|
attribute: 'data-theme-mode',
|
|
52
61
|
jsonParsed: false,
|
|
53
|
-
conditionA: 'dark',
|
|
54
|
-
|
|
62
|
+
conditionA: 'dark',
|
|
63
|
+
valueA: 'dark',
|
|
64
|
+
conditionB: 'light',
|
|
65
|
+
valueB: 'light',
|
|
55
66
|
mediaQuery: '(prefers-color-scheme:dark)',
|
|
56
|
-
mediaTrue: 'dark',
|
|
67
|
+
mediaTrue: 'dark',
|
|
68
|
+
mediaFalse: 'light',
|
|
57
69
|
},
|
|
58
70
|
]
|
|
59
71
|
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
from {
|
|
50
50
|
opacity: 0;
|
|
51
51
|
}
|
|
52
|
+
|
|
52
53
|
to {
|
|
53
54
|
opacity: 1;
|
|
54
55
|
}
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
from {
|
|
59
60
|
opacity: 1;
|
|
60
61
|
}
|
|
62
|
+
|
|
61
63
|
to {
|
|
62
64
|
opacity: 0;
|
|
63
65
|
}
|
|
@@ -68,6 +70,7 @@
|
|
|
68
70
|
transform: translateY(20px);
|
|
69
71
|
opacity: 0;
|
|
70
72
|
}
|
|
73
|
+
|
|
71
74
|
to {
|
|
72
75
|
transform: translateY(0);
|
|
73
76
|
opacity: 1;
|
|
@@ -79,6 +82,7 @@
|
|
|
79
82
|
transform: translateY(-20px);
|
|
80
83
|
opacity: 0;
|
|
81
84
|
}
|
|
85
|
+
|
|
82
86
|
to {
|
|
83
87
|
transform: translateY(0);
|
|
84
88
|
opacity: 1;
|
|
@@ -90,6 +94,7 @@
|
|
|
90
94
|
transform: translateX(-20px);
|
|
91
95
|
opacity: 0;
|
|
92
96
|
}
|
|
97
|
+
|
|
93
98
|
to {
|
|
94
99
|
transform: translateX(0);
|
|
95
100
|
opacity: 1;
|
|
@@ -101,6 +106,7 @@
|
|
|
101
106
|
transform: translateX(20px);
|
|
102
107
|
opacity: 0;
|
|
103
108
|
}
|
|
109
|
+
|
|
104
110
|
to {
|
|
105
111
|
transform: translateX(0);
|
|
106
112
|
opacity: 1;
|