kmcom-nuxt-layers 1.7.8 → 2.1.6
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/layout-shift-causes.md +94 -0
- package/layers/animations/nuxt.config.ts +17 -0
- package/layers/animations/package.json +6 -0
- package/layers/animations/tsconfig.json +7 -0
- package/layers/canvas/app/components/ShaderCanvas.vue +125 -0
- package/layers/{shader → canvas}/app/composables/useRendererCapabilities.ts +10 -2
- package/layers/{shader → canvas}/app/composables/useShaderTime.ts +3 -3
- package/layers/canvas/app/types/renderer.ts +50 -0
- package/layers/canvas/nuxt.config.ts +189 -0
- package/layers/canvas/package.json +22 -0
- package/layers/canvas/tsconfig.json +7 -0
- package/layers/content/app/components/Blog/Article.vue +12 -6
- package/layers/content/app/components/Blog/Card.vue +24 -24
- package/layers/content/app/components/Blog/List.vue +8 -11
- package/layers/content/app/components/Gallery/AmbientImage.vue +15 -15
- package/layers/content/app/components/Gallery/Card.vue +19 -19
- package/layers/content/app/components/Gallery/Detail.vue +29 -20
- package/layers/content/app/components/Gallery/Grid.vue +8 -11
- package/layers/content/app/components/Gallery/ImageDetail.vue +18 -17
- package/layers/content/app/components/Gallery/ImagePage.vue +8 -9
- package/layers/content/app/components/Gallery/Lightbox.vue +38 -33
- package/layers/content/app/components/Gallery/Page.vue +8 -8
- package/layers/content/app/components/Gallery/SlugPage.vue +7 -8
- package/layers/content/app/components/NuxtContent/Detail.vue +29 -27
- package/layers/content/app/components/NuxtContent/List.vue +10 -9
- package/layers/content/app/components/NuxtContent/Renderer.vue +4 -4
- package/layers/content/app/components/NuxtContent/Surround.vue +3 -3
- package/layers/content/app/components/NuxtContent/Toc.vue +5 -5
- package/layers/content/app/components/Portfolio/Card.vue +17 -17
- package/layers/content/app/components/Portfolio/ColorPalette.vue +11 -11
- package/layers/content/app/components/Portfolio/Detail.vue +9 -13
- package/layers/content/app/components/Portfolio/ItemPage.vue +8 -9
- package/layers/content/app/components/Portfolio/List.vue +10 -13
- package/layers/content/app/components/Portfolio/Page.vue +8 -8
- package/layers/content/app/components/Portfolio/Typography.vue +4 -4
- package/layers/content/app/components/content/Figure.vue +14 -14
- package/layers/content/app/composables/createPortfolioComposables.ts +1 -0
- package/layers/content/app/composables/useCollectionItem.ts +4 -1
- package/layers/content/app/composables/useCollectionSurround.ts +1 -0
- package/layers/content/app/composables/useContentPage.ts +1 -0
- package/layers/content/app/composables/useGalleryItems.ts +1 -0
- package/layers/content/app/composables/usePortfolioItems.ts +1 -0
- package/layers/content/app/types/app-config.d.ts +1 -1
- package/layers/content/app/types/content.ts +27 -30
- package/layers/content/nuxt.config.ts +4 -3
- package/layers/content/package.json +4 -4
- package/layers/core/app/components/DiagnosticsPage.vue +203 -203
- package/layers/core/app/components/ErrorBoundary.vue +51 -49
- package/layers/core/app/components/LoadingScreen.vue +112 -111
- package/layers/core/app/composables/useBrowser.ts +2 -1
- package/layers/core/app/composables/useCache.ts +4 -2
- package/layers/core/app/composables/useErrorLog.ts +7 -10
- package/layers/core/app/composables/useFeatures.ts +4 -2
- package/layers/core/app/composables/useLoading.ts +1 -0
- package/layers/core/app/composables/useNetworkInfo.ts +1 -0
- package/layers/core/app/composables/usePWAInfo.ts +4 -3
- package/layers/core/app/composables/useRendering.ts +1 -0
- package/layers/core/app/composables/useScreen.ts +1 -0
- package/layers/core/app/composables/useScrollGuard.ts +2 -1
- package/layers/core/app/pages/[...slug].vue +99 -99
- package/layers/core/app/plugins/error-handler.ts +1 -1
- package/layers/core/app/plugins/feature-detection.client.ts +2 -1
- package/layers/core/app/plugins/init.ts +8 -19
- package/layers/core/app/plugins/loading.client.ts +4 -2
- package/layers/core/app/plugins/scroll-guard.client.ts +4 -4
- package/layers/core/app/types/app-config.d.ts +5 -1
- package/layers/core/app/types/detection.ts +8 -8
- package/layers/core/app/types/index.ts +5 -4
- package/layers/core/app/types/loading.ts +3 -3
- package/layers/core/app/types/runtime-config.ts +2 -2
- package/layers/core/app/types/scroll-guard.ts +2 -2
- package/layers/core/app/types/site.ts +43 -0
- package/layers/core/app/utils/helpers.ts +4 -0
- package/layers/core/nuxt.config.ts +1 -0
- package/layers/core/package.json +1 -1
- package/layers/feeds/app/app.config.ts +23 -0
- package/layers/feeds/app/assets/css/feeds.css +66 -0
- package/layers/feeds/app/plugins/feed-head.ts +73 -0
- package/layers/feeds/nuxt.config.ts +36 -0
- package/layers/feeds/package.json +23 -0
- package/layers/feeds/tsconfig.json +7 -0
- package/layers/forms/app/components/Form/Contact.vue +1 -0
- package/layers/forms/app/components/Form/Field.vue +70 -74
- package/layers/forms/app/composables/useFormSchema.ts +2 -0
- package/layers/forms/app/config/fields.ts +1 -0
- package/layers/forms/app/types/app-config.d.ts +1 -1
- package/layers/forms/app/types/fields.ts +1 -1
- package/layers/forms/nuxt.config.ts +4 -9
- package/layers/forms/package.json +4 -9
- package/layers/layout/app/assets/css/layout/grids.css +12 -12
- package/layers/layout/app/assets/css/layout/modes/fluid.css +10 -10
- package/layers/layout/app/components/Layout/Container.vue +34 -34
- package/layers/layout/app/components/Layout/Grid/Debug.vue +55 -55
- package/layers/layout/app/components/Layout/Grid/Item.vue +239 -231
- package/layers/layout/app/components/Layout/Main.vue +27 -23
- package/layers/layout/app/components/Layout/Page/Container.vue +71 -67
- package/layers/layout/app/components/Layout/Page/Header.vue +22 -21
- package/layers/layout/app/components/Layout/Page/index.vue +1 -0
- package/layers/layout/app/components/Layout/Section/Gallery.vue +49 -48
- package/layers/layout/app/components/Layout/Section/Grid.vue +29 -29
- package/layers/layout/app/components/Layout/Section/Hero.vue +31 -29
- package/layers/layout/app/components/Layout/Section/Sidebar.vue +48 -48
- package/layers/layout/app/components/Layout/Section/Split.vue +28 -28
- package/layers/layout/app/components/Layout/Section/Stack.vue +39 -37
- package/layers/layout/app/components/Layout/Section/Title.vue +21 -20
- package/layers/layout/app/composables/GridPlacement.ts +1 -1
- package/layers/layout/app/composables/useGridConfig.ts +2 -1
- package/layers/layout/app/types/app-config.d.ts +2 -1
- package/layers/layout/app/types/layouts.ts +4 -4
- package/layers/layout/nuxt.config.ts +4 -1
- package/layers/mailer/nuxt.config.ts +26 -0
- package/layers/mailer/package.json +15 -0
- package/layers/mailer/tsconfig.json +7 -0
- package/layers/motion/app/components/Motion/index.vue +5 -5
- package/layers/motion/nuxt.config.ts +6 -22
- package/layers/motion/package.json +0 -5
- package/layers/navigation/app/app.config.ts +38 -0
- package/layers/navigation/app/assets/css/navigation.css +3 -0
- package/layers/navigation/app/components/Links/Group.vue +49 -0
- package/layers/navigation/app/components/Links/Named.vue +33 -0
- package/layers/navigation/app/components/Mast/Footer.vue +13 -0
- package/layers/{ui → navigation}/app/components/Mast/Header.vue +2 -2
- package/layers/{ui → navigation}/app/components/Mast/Nav.vue +2 -2
- package/layers/navigation/app/components/Mast/NavModal.vue +76 -0
- package/layers/{ui → navigation}/app/composables/mastNav.ts +7 -4
- package/layers/{ui → navigation}/app/composables/toast.ts +1 -0
- package/layers/{ui → navigation}/app/composables/useSite.ts +1 -0
- package/layers/navigation/app/types/nav.ts +11 -0
- package/layers/{ui → navigation}/app/utils/createModal.ts +2 -1
- package/layers/navigation/nuxt.config.ts +19 -0
- package/layers/navigation/package.json +6 -0
- package/layers/navigation/tsconfig.json +7 -0
- package/layers/page-transitions/app/app.config.ts +15 -0
- package/layers/page-transitions/app/composables/usePageTransition.ts +32 -0
- package/layers/page-transitions/app/plugins/page-transitions.client.ts +14 -0
- package/layers/page-transitions/nuxt.config.ts +17 -0
- package/layers/page-transitions/package.json +6 -0
- package/layers/page-transitions/tsconfig.json +7 -0
- package/layers/routing/app/composables/{useFeatures.ts → useFeatureFlags.ts} +1 -1
- package/layers/routing/app/composables/useRoutingConfig.ts +5 -6
- package/layers/routing/app/middleware/01.maintenance.global.ts +1 -1
- package/layers/routing/app/middleware/02.governance.global.ts +2 -2
- package/layers/routing/app/plugins/feature-flags.client.ts +4 -4
- package/layers/routing/app/plugins/scroll-routing.client.ts +4 -3
- package/layers/routing/app/types/app-config.d.ts +2 -1
- package/layers/routing/app/types/route-meta.d.ts +1 -1
- package/layers/routing/app/types/routing.ts +5 -2
- package/layers/routing/app/utils/resolveRoute.ts +2 -2
- package/layers/routing/nuxt.config.ts +6 -2
- package/layers/scripts/app/app.config.ts +44 -0
- package/layers/scripts/app/composables/useAnalytics.ts +49 -0
- package/layers/scripts/app/composables/useGtm.ts +21 -0
- package/layers/scripts/app/composables/useScriptLoader.ts +31 -0
- package/layers/scripts/app/composables/useScriptsConsent.ts +23 -0
- package/layers/scripts/app/composables/useYoutubeEmbed.ts +14 -0
- package/layers/scripts/nuxt.config.ts +22 -0
- package/layers/scripts/package.json +14 -0
- package/layers/scripts/tsconfig.json +7 -0
- package/layers/{motion/app/types/app-config.d.ts → scroll/app/app.config.ts} +16 -1
- package/layers/scroll/app/components/Motion/HorizontalScroll.vue +61 -0
- package/layers/scroll/app/components/Motion/Parallax.vue +76 -0
- package/layers/scroll/app/components/Motion/PinnedSection.vue +77 -0
- package/layers/scroll/app/components/Motion/ScrollLink.vue +50 -0
- package/layers/scroll/app/components/Motion/ScrollProgress.vue +85 -0
- package/layers/scroll/app/components/Motion/ScrollScene.vue +121 -0
- package/layers/{motion → scroll}/app/components/Motion/ScrollStats.vue +51 -50
- package/layers/scroll/app/components/Motion/ScrollStep.vue +44 -0
- package/layers/{motion → scroll}/app/composables/useGsap.ts +0 -6
- package/layers/{motion → scroll}/app/composables/useScrollSteps.ts +2 -5
- package/layers/{motion → scroll}/app/composables/useSectionProgress.ts +14 -7
- package/layers/{motion → scroll}/app/composables/useSmoothScroll.ts +6 -37
- package/layers/{motion → scroll}/app/plugins/locomotive-scroll.client.ts +3 -2
- package/layers/scroll/nuxt.config.ts +33 -0
- package/layers/scroll/package.json +11 -0
- package/layers/scroll/tsconfig.json +7 -0
- package/layers/seo/app/app.config.ts +30 -0
- package/layers/seo/app/composables/useSeoConfig.ts +14 -0
- package/layers/seo/nuxt.config.ts +34 -0
- package/layers/seo/package.json +14 -0
- package/layers/seo/tsconfig.json +7 -0
- package/layers/shader/app/components/Effect/Bloom.vue +2 -2
- package/layers/shader/app/components/Effect/ChromaticAberration.vue +2 -2
- package/layers/shader/app/components/Effect/PostProcessing.vue +14 -10
- package/layers/shader/app/components/Material/AmbientAurora.client.vue +162 -158
- package/layers/shader/app/components/Material/AmbientFlow.client.vue +165 -161
- package/layers/shader/app/components/Material/AmbientGradientMesh.client.vue +179 -162
- package/layers/shader/app/components/Material/AmbientNebula.client.vue +167 -163
- package/layers/shader/app/components/Material/AmbientOcean.client.vue +154 -150
- package/layers/shader/app/components/Material/Fresnel.client.vue +78 -75
- package/layers/shader/app/components/Material/Gradient.client.vue +175 -173
- package/layers/shader/app/components/Material/Image.client.vue +228 -225
- package/layers/shader/app/components/Material/Node.client.vue +66 -63
- package/layers/shader/app/components/Material/Noise.client.vue +128 -124
- package/layers/shader/app/components/Mesh/Plane.vue +20 -18
- package/layers/shader/app/components/Node/Color.client.vue +47 -45
- package/layers/shader/app/components/Node/Fresnel.client.vue +47 -47
- package/layers/shader/app/components/Node/Gradient.client.vue +120 -70
- package/layers/shader/app/components/Node/Mix.client.vue +41 -39
- package/layers/shader/app/components/Node/Noise.client.vue +91 -83
- package/layers/shader/app/components/Pipeline/ACESTonemap.client.vue +7 -10
- package/layers/shader/app/components/Pipeline/AddBlend.client.vue +33 -19
- package/layers/shader/app/components/Pipeline/AgedFilm.client.vue +61 -40
- package/layers/shader/app/components/Pipeline/Aurora.client.vue +92 -56
- package/layers/shader/app/components/Pipeline/BilinearGradient.client.vue +65 -34
- package/layers/shader/app/components/Pipeline/BillowNoise.client.vue +56 -32
- package/layers/shader/app/components/Pipeline/BrightnessContrast.client.vue +36 -20
- package/layers/shader/app/components/Pipeline/CellularNoise.client.vue +55 -31
- package/layers/shader/app/components/Pipeline/ChannelMixer.client.vue +62 -34
- package/layers/shader/app/components/Pipeline/ChebyshevNoiseField.client.vue +77 -50
- package/layers/shader/app/components/Pipeline/Checkerboard.client.vue +50 -31
- package/layers/shader/app/components/Pipeline/ChromaticAberration.client.vue +49 -33
- package/layers/shader/app/components/Pipeline/ChromaticScreenWaves.client.vue +61 -36
- package/layers/shader/app/components/Pipeline/Circle.client.vue +53 -30
- package/layers/shader/app/components/Pipeline/Clouds.client.vue +86 -48
- package/layers/shader/app/components/Pipeline/ColorBurnBlend.client.vue +34 -19
- package/layers/shader/app/components/Pipeline/ColorDodgeBlend.client.vue +34 -19
- package/layers/shader/app/components/Pipeline/ColourRamp.client.vue +76 -46
- package/layers/shader/app/components/Pipeline/ComplexPlaneField.client.vue +80 -50
- package/layers/shader/app/components/Pipeline/ConicGradient.client.vue +46 -28
- package/layers/shader/app/components/Pipeline/CosinePalette.client.vue +80 -53
- package/layers/shader/app/components/Pipeline/CoverageAlpha.client.vue +12 -14
- package/layers/shader/app/components/Pipeline/Cross.client.vue +66 -37
- package/layers/shader/app/components/Pipeline/CurlNoise.client.vue +58 -35
- package/layers/shader/app/components/Pipeline/DarkenBlend.client.vue +34 -19
- package/layers/shader/app/components/Pipeline/DayNightCycle.client.vue +65 -39
- package/layers/shader/app/components/Pipeline/Desaturate.client.vue +23 -16
- package/layers/shader/app/components/Pipeline/DiagonalGradient.client.vue +50 -29
- package/layers/shader/app/components/Pipeline/DiamondGradient.client.vue +47 -29
- package/layers/shader/app/components/Pipeline/DifferenceBlend.client.vue +34 -19
- package/layers/shader/app/components/Pipeline/DivideBlend.client.vue +34 -19
- package/layers/shader/app/components/Pipeline/DomainWarpedNoise.client.vue +79 -37
- package/layers/shader/app/components/Pipeline/Dots.client.vue +70 -34
- package/layers/shader/app/components/Pipeline/DuoTone.client.vue +40 -26
- package/layers/shader/app/components/Pipeline/ExclusionBlend.client.vue +38 -19
- package/layers/shader/app/components/Pipeline/ExponentialFog.client.vue +52 -35
- package/layers/shader/app/components/Pipeline/Exposure.client.vue +22 -16
- package/layers/shader/app/components/Pipeline/FBMNoise.client.vue +62 -39
- package/layers/shader/app/components/Pipeline/FilmBurn.client.vue +60 -38
- package/layers/shader/app/components/Pipeline/FilmGrain.client.vue +53 -31
- package/layers/shader/app/components/Pipeline/FisheyeRay.client.vue +39 -28
- package/layers/shader/app/components/Pipeline/Flame.client.vue +59 -35
- package/layers/shader/app/components/Pipeline/FocalGradient.client.vue +56 -33
- package/layers/shader/app/components/Pipeline/Gamma.client.vue +21 -16
- package/layers/shader/app/components/Pipeline/GodRays.client.vue +76 -42
- package/layers/shader/app/components/Pipeline/GradientNoise.client.vue +57 -32
- package/layers/shader/app/components/Pipeline/Grain.client.vue +84 -47
- package/layers/shader/app/components/Pipeline/Grid.client.vue +56 -33
- package/layers/shader/app/components/Pipeline/Halation.client.vue +52 -34
- package/layers/shader/app/components/Pipeline/Halftone.client.vue +34 -23
- package/layers/shader/app/components/Pipeline/HardLightBlend.client.vue +33 -19
- package/layers/shader/app/components/Pipeline/Haze.client.vue +57 -36
- package/layers/shader/app/components/Pipeline/Hexagon.client.vue +54 -31
- package/layers/shader/app/components/Pipeline/Hue.client.vue +20 -16
- package/layers/shader/app/components/Pipeline/Invert.client.vue +6 -10
- package/layers/shader/app/components/Pipeline/LensFlare.client.vue +56 -37
- package/layers/shader/app/components/Pipeline/LightenBlend.client.vue +31 -19
- package/layers/shader/app/components/Pipeline/LinearGradient.client.vue +36 -28
- package/layers/shader/app/components/Pipeline/LinearGradient4.client.vue +65 -43
- package/layers/shader/app/components/Pipeline/LinearToSRGB.client.vue +26 -20
- package/layers/shader/app/components/Pipeline/Marble.client.vue +97 -57
- package/layers/shader/app/components/Pipeline/MixBlend.client.vue +45 -35
- package/layers/shader/app/components/Pipeline/MonochromeTint.client.vue +40 -25
- package/layers/shader/app/components/Pipeline/MultiplyBlend.client.vue +33 -19
- package/layers/shader/app/components/Pipeline/NoisyGradient.client.vue +83 -42
- package/layers/shader/app/components/Pipeline/NoisyGradientBlend.client.vue +141 -81
- package/layers/shader/app/components/Pipeline/OverlayBlend.client.vue +33 -19
- package/layers/shader/app/components/Pipeline/PaperTexture.client.vue +47 -30
- package/layers/shader/app/components/Pipeline/Polygon.client.vue +74 -37
- package/layers/shader/app/components/Pipeline/Posterise.client.vue +21 -16
- package/layers/shader/app/components/Pipeline/RadialGradient.client.vue +45 -30
- package/layers/shader/app/components/Pipeline/RayAutoOrbit.client.vue +43 -30
- package/layers/shader/app/components/Pipeline/RayMouseOrbit.client.vue +60 -47
- package/layers/shader/app/components/Pipeline/RayRotateX.client.vue +28 -20
- package/layers/shader/app/components/Pipeline/RayRotateY.client.vue +28 -20
- package/layers/shader/app/components/Pipeline/RayRotateZ.client.vue +28 -20
- package/layers/shader/app/components/Pipeline/RayTiltBasis.client.vue +55 -34
- package/layers/shader/app/components/Pipeline/RaymarchTunnel.client.vue +132 -88
- package/layers/shader/app/components/Pipeline/Rectangle.client.vue +78 -37
- package/layers/shader/app/components/Pipeline/ReinhardTonemap.client.vue +12 -14
- package/layers/shader/app/components/Pipeline/RidgedNoise.client.vue +54 -31
- package/layers/shader/app/components/Pipeline/Ring.client.vue +69 -34
- package/layers/shader/app/components/Pipeline/RingField.client.vue +63 -43
- package/layers/shader/app/components/Pipeline/RisographGrain.client.vue +66 -32
- package/layers/shader/app/components/Pipeline/RotatedGradientBlend.client.vue +73 -48
- package/layers/shader/app/components/Pipeline/SDFColourMask.client.vue +31 -25
- package/layers/shader/app/components/Pipeline/SDFRadialMask.client.vue +31 -21
- package/layers/shader/app/components/Pipeline/SRGBToLinear.client.vue +25 -20
- package/layers/shader/app/components/Pipeline/Saturation.client.vue +22 -16
- package/layers/shader/app/components/Pipeline/Scanlines.client.vue +42 -26
- package/layers/shader/app/components/Pipeline/ScreenBlend.client.vue +33 -19
- package/layers/shader/app/components/Pipeline/ShaderDebugger.client.vue +58 -45
- package/layers/shader/app/components/Pipeline/SimplexNoise.client.vue +59 -37
- package/layers/shader/app/components/Pipeline/SkyAtmosphere.client.vue +87 -54
- package/layers/shader/app/components/Pipeline/SoftLightBlend.client.vue +33 -19
- package/layers/shader/app/components/Pipeline/SolidColour.client.vue +24 -16
- package/layers/shader/app/components/Pipeline/SplitTone.client.vue +58 -34
- package/layers/shader/app/components/Pipeline/Star.client.vue +73 -37
- package/layers/shader/app/components/Pipeline/Starfield.client.vue +68 -34
- package/layers/shader/app/components/Pipeline/Stripes.client.vue +64 -36
- package/layers/shader/app/components/Pipeline/SubtractBlend.client.vue +33 -19
- package/layers/shader/app/components/Pipeline/TanhTonemap.client.vue +25 -19
- package/layers/shader/app/components/Pipeline/Threshold.client.vue +23 -17
- package/layers/shader/app/components/Pipeline/Tint.client.vue +36 -25
- package/layers/shader/app/components/Pipeline/Triangle.client.vue +54 -31
- package/layers/shader/app/components/Pipeline/UVAspectCorrect.client.vue +5 -10
- package/layers/shader/app/components/Pipeline/UVBreath.client.vue +44 -31
- package/layers/shader/app/components/Pipeline/UVBulge.client.vue +35 -21
- package/layers/shader/app/components/Pipeline/UVClamp.client.vue +14 -14
- package/layers/shader/app/components/Pipeline/UVColumnOffset.client.vue +36 -23
- package/layers/shader/app/components/Pipeline/UVFlipX.client.vue +6 -10
- package/layers/shader/app/components/Pipeline/UVFlipXY.client.vue +6 -10
- package/layers/shader/app/components/Pipeline/UVFlipY.client.vue +6 -10
- package/layers/shader/app/components/Pipeline/UVFractBand.client.vue +31 -21
- package/layers/shader/app/components/Pipeline/UVMousePull.client.vue +41 -33
- package/layers/shader/app/components/Pipeline/UVNoiseRotate.client.vue +65 -46
- package/layers/shader/app/components/Pipeline/UVNoiseWarp.client.vue +49 -30
- package/layers/shader/app/components/Pipeline/UVOrbit.client.vue +37 -29
- package/layers/shader/app/components/Pipeline/UVParallax.client.vue +41 -33
- package/layers/shader/app/components/Pipeline/UVPixelate.client.vue +21 -16
- package/layers/shader/app/components/Pipeline/UVPulse.client.vue +41 -28
- package/layers/shader/app/components/Pipeline/UVRipple.client.vue +53 -29
- package/layers/shader/app/components/Pipeline/UVRotate.client.vue +40 -32
- package/layers/shader/app/components/Pipeline/UVScale.client.vue +33 -25
- package/layers/shader/app/components/Pipeline/UVScroll.client.vue +26 -22
- package/layers/shader/app/components/Pipeline/UVScrollX.client.vue +20 -16
- package/layers/shader/app/components/Pipeline/UVScrollY.client.vue +20 -16
- package/layers/shader/app/components/Pipeline/UVShear.client.vue +33 -20
- package/layers/shader/app/components/Pipeline/UVSineWarpXY.client.vue +58 -40
- package/layers/shader/app/components/Pipeline/UVSwapAxes.client.vue +6 -10
- package/layers/shader/app/components/Pipeline/UVTile.client.vue +26 -22
- package/layers/shader/app/components/Pipeline/UVTwirl.client.vue +31 -21
- package/layers/shader/app/components/Pipeline/UVWarp.client.vue +44 -25
- package/layers/shader/app/components/Pipeline/VHSBleed.client.vue +63 -43
- package/layers/shader/app/components/Pipeline/ValueNoise.client.vue +57 -32
- package/layers/shader/app/components/Pipeline/Vibrance.client.vue +25 -19
- package/layers/shader/app/components/Pipeline/Vignette.client.vue +35 -24
- package/layers/shader/app/components/Pipeline/VoronoiEdges.client.vue +66 -38
- package/layers/shader/app/components/Pipeline/Water.client.vue +78 -39
- package/layers/shader/app/components/Pipeline/WaveBendLayer.client.vue +74 -46
- package/layers/shader/app/components/Pipeline/WaveColourLayer.client.vue +76 -43
- package/layers/shader/app/components/Pipeline/WhiteBalance.client.vue +38 -27
- package/layers/shader/app/components/Pipeline/Wood.client.vue +85 -50
- package/layers/shader/app/components/Preset/Aurora.client.vue +69 -52
- package/layers/shader/app/components/Preset/Flow.client.vue +63 -47
- package/layers/shader/app/components/Preset/GradientMesh.client.vue +63 -47
- package/layers/shader/app/components/Preset/Nebula.client.vue +65 -47
- package/layers/shader/app/components/Preset/Ocean.client.vue +64 -47
- package/layers/shader/app/components/Preset/ThemeAurora.client.vue +107 -70
- package/layers/shader/app/components/Preset/ThemeBubble.client.vue +108 -71
- package/layers/shader/app/components/Preset/ThemeFlow.client.vue +107 -70
- package/layers/shader/app/components/Preset/ThemeGradient.client.vue +108 -71
- package/layers/shader/app/components/Preset/ThemeLavaLamp.client.vue +107 -70
- package/layers/shader/app/components/Preset/ThemePlasma.client.vue +107 -70
- package/layers/shader/app/components/Preset/ThemeWave.client.vue +107 -70
- package/layers/shader/app/components/Shader/Background.client.vue +169 -163
- package/layers/shader/app/components/Shader/Debug.vue +45 -40
- package/layers/shader/app/components/Shader/Host.client.vue +120 -121
- package/layers/shader/app/components/Shader/Material.client.vue +42 -36
- package/layers/shader/app/components/Shader/Pipeline.client.vue +55 -46
- package/layers/shader/app/components/Shader/PipelineContext.vue +12 -12
- package/layers/shader/app/components/Shader/Runtime.client.vue +42 -37
- package/layers/shader/app/composables/useAmbientMaterials.ts +316 -105
- package/layers/shader/app/composables/useCSSColourUniform.ts +7 -6
- package/layers/shader/app/composables/useCSSFloatUniform.ts +4 -5
- package/layers/shader/app/composables/useMousePosition.ts +1 -1
- package/layers/shader/app/composables/useShader.ts +5 -3
- package/layers/shader/app/composables/useShaderColor.ts +8 -1
- package/layers/shader/app/composables/useShaderFloat.ts +3 -1
- package/layers/shader/app/composables/useShaderGraph.ts +6 -3
- package/layers/shader/app/composables/useShaderPerf.ts +2 -3
- package/layers/shader/app/composables/useShaderPipeline.ts +14 -6
- package/layers/shader/app/composables/useShaderRuntime.ts +7 -4
- package/layers/shader/app/composables/useShaderVec2.ts +4 -0
- package/layers/shader/app/composables/useSunDirectionUniform.ts +7 -6
- package/layers/shader/app/composables/useTSLNodes.ts +1 -0
- package/layers/shader/app/composables/useThemeColors.ts +14 -10
- package/layers/shader/app/composables/useUniforms.ts +5 -2
- package/layers/shader/app/plugins/shader.client.ts +3 -2
- package/layers/shader/app/shaders/common/blend.ts +3 -0
- package/layers/shader/app/shaders/common/complex.ts +4 -5
- package/layers/shader/app/shaders/common/effects.ts +10 -6
- package/layers/shader/app/shaders/common/grain.ts +4 -0
- package/layers/shader/app/shaders/common/lighting.ts +4 -1
- package/layers/shader/app/shaders/common/math.ts +3 -0
- package/layers/shader/app/shaders/common/noise.ts +7 -4
- package/layers/shader/app/shaders/common/noiseHelpers.ts +2 -0
- package/layers/shader/app/shaders/common/palette.ts +6 -1
- package/layers/shader/app/shaders/common/patterns.ts +7 -4
- package/layers/shader/app/shaders/common/sdf.ts +3 -1
- package/layers/shader/app/shaders/common/shapes.ts +3 -0
- package/layers/shader/app/shaders/common/tonemapping.ts +2 -0
- package/layers/shader/app/shaders/common/uv.ts +8 -1
- package/layers/shader/app/shaders/createMaterial.ts +6 -2
- package/layers/shader/app/shaders/layers/aurora.ts +6 -3
- package/layers/shader/app/shaders/layers/meshGradient.ts +6 -3
- package/layers/shader/app/shaders/layers/paperShading.ts +6 -2
- package/layers/shader/app/shaders/layers/shaderGradient.ts +5 -0
- package/layers/shader/app/shaders/layers/stripe.ts +6 -3
- package/layers/shader/app/shaders/types.ts +1 -0
- package/layers/shader/app/types/app-config.d.ts +1 -1
- package/layers/shader/app/types/index.ts +4 -4
- package/layers/shader/app/types/materials.ts +5 -4
- package/layers/shader/app/types/renderer.ts +1 -50
- package/layers/shader/app/types/tsl.ts +4 -3
- package/layers/shader/app/types/uniforms.ts +3 -2
- package/layers/shader/app/utils/tsl/animation.ts +2 -0
- package/layers/shader/app/utils/tsl/color.ts +5 -2
- package/layers/shader/app/utils/tsl/math.ts +1 -0
- package/layers/shader/app/utils/tsl/noise.ts +2 -0
- package/layers/shader/app/utils/tsl/oklch.ts +2 -0
- package/layers/shader/app/utils/tsl/patterns.ts +2 -0
- package/layers/shader/app/utils/tsl/tween.ts +4 -2
- package/layers/shader/app/utils/tsl/uv.ts +2 -0
- package/layers/shader/nuxt.config.ts +8 -115
- package/layers/shader/package.json +3 -9
- package/layers/theme/app/assets/css/theme.css +2 -2
- package/layers/theme/app/components/ThemePicker/AccentButton.vue +32 -30
- package/layers/theme/app/components/ThemePicker/Colors.vue +6 -5
- package/layers/theme/app/components/ThemePicker/Menu.vue +23 -23
- package/layers/theme/app/composables/useAccentColor.ts +2 -1
- package/layers/theme/app/composables/useThemeContrast.ts +1 -1
- package/layers/theme/app/composables/useThemeMotion.ts +1 -1
- package/layers/theme/app/composables/useThemeTransparency.ts +1 -4
- package/layers/theme/app/plugins/theme.client.ts +33 -15
- package/layers/theme/app/types/app-config.d.ts +3 -2
- package/layers/theme/app/types/theme.ts +1 -1
- package/layers/theme/nuxt.config.ts +4 -1
- package/layers/transitions/app/components/Motion/Transition.vue +76 -0
- package/layers/transitions/nuxt.config.ts +19 -0
- package/layers/transitions/package.json +6 -0
- package/layers/transitions/tsconfig.json +7 -0
- package/layers/typography/app/components/Typography/CodeBlock.vue +44 -0
- package/layers/typography/app/components/Typography/Headline.vue +90 -0
- package/layers/typography/app/components/Typography/HeadlineScreen.vue +75 -0
- package/layers/typography/app/components/Typography/QuoteBlock.vue +21 -0
- package/layers/{ui → typography}/app/components/Typography/TextStroke.vue +33 -32
- package/layers/typography/app/components/Typography/index.vue +54 -0
- package/layers/{ui → typography}/app/composables/typography.ts +1 -0
- package/layers/{ui → typography}/app/types/typography.ts +1 -1
- package/layers/typography/nuxt.config.ts +17 -0
- package/layers/typography/package.json +6 -0
- package/layers/typography/tsconfig.json +7 -0
- package/layers/ui/app/assets/css/ui.css +0 -20
- package/layers/ui/app/layouts/default.vue +2 -12
- package/layers/ui/nuxt.config.ts +5 -21
- package/layers/visual/app/app.config.ts +115 -0
- package/layers/visual/app/assets/css/visual.css +15 -0
- package/layers/visual/app/components/Accent/Blob.vue +32 -0
- package/layers/{ui → visual}/app/components/Accent/Scene.vue +26 -23
- package/layers/visual/app/components/Base/Modal.vue +123 -0
- package/layers/visual/app/components/Gradient/Background.vue +24 -0
- package/layers/visual/app/components/Gradient/Text.vue +24 -0
- package/layers/visual/app/components/Media/Picture.vue +51 -0
- package/layers/visual/app/components/Progress/Bar.vue +36 -0
- package/layers/{ui → visual}/app/components/Progress/Circular.vue +26 -25
- package/layers/visual/app/components/Tint/Overlay.vue +27 -0
- package/layers/{ui → visual}/app/composables/accent.ts +1 -0
- package/layers/{ui → visual}/app/composables/gradient.ts +3 -0
- package/layers/{ui → visual}/app/composables/picture.ts +2 -0
- package/layers/{ui → visual}/app/composables/tint.ts +3 -2
- package/layers/{ui → visual}/app/types/accent.ts +2 -2
- package/layers/{ui → visual}/app/types/gradient.ts +2 -2
- package/layers/{ui → visual}/app/types/media.ts +4 -3
- package/layers/{ui → visual}/app/types/tint.ts +1 -1
- package/layers/visual/nuxt.config.ts +19 -0
- package/layers/visual/package.json +6 -0
- package/layers/visual/tsconfig.json +7 -0
- package/package.json +29 -4
- package/layers/motion/app/app.config.ts +0 -27
- package/layers/motion/app/components/Motion/HorizontalScroll.vue +0 -61
- package/layers/motion/app/components/Motion/Parallax.vue +0 -75
- package/layers/motion/app/components/Motion/PinnedSection.vue +0 -77
- package/layers/motion/app/components/Motion/ScrollLink.vue +0 -49
- package/layers/motion/app/components/Motion/ScrollProgress.vue +0 -82
- package/layers/motion/app/components/Motion/ScrollScene.vue +0 -121
- package/layers/motion/app/components/Motion/ScrollStep.vue +0 -45
- package/layers/motion/app/components/Motion/Transition.vue +0 -76
- package/layers/shader/app/components/Shader/Canvas.vue +0 -121
- package/layers/ui/app/app.config.ts +0 -57
- package/layers/ui/app/components/Accent/Blob.vue +0 -29
- package/layers/ui/app/components/Base/Modal.vue +0 -111
- package/layers/ui/app/components/Gradient/Background.vue +0 -22
- package/layers/ui/app/components/Gradient/Text.vue +0 -22
- package/layers/ui/app/components/Links/Group.vue +0 -47
- package/layers/ui/app/components/Links/Named.vue +0 -31
- package/layers/ui/app/components/Mast/Footer.vue +0 -15
- package/layers/ui/app/components/Mast/NavModal.vue +0 -72
- package/layers/ui/app/components/Media/Picture.vue +0 -50
- package/layers/ui/app/components/Progress/Bar.vue +0 -35
- package/layers/ui/app/components/Tint/Overlay.vue +0 -25
- package/layers/ui/app/components/Typography/CodeBlock.vue +0 -42
- package/layers/ui/app/components/Typography/Headline.vue +0 -88
- package/layers/ui/app/components/Typography/HeadlineScreen.vue +0 -77
- package/layers/ui/app/components/Typography/QuoteBlock.vue +0 -20
- package/layers/ui/app/components/Typography/index.vue +0 -52
- package/layers/ui/app/types/app-config.d.ts +0 -22
- package/layers/ui/app/types/nav.ts +0 -5
- /package/layers/{motion → animations}/app/components/Motion/CountUp.vue +0 -0
- /package/layers/{motion → animations}/app/components/Motion/Cursor.vue +0 -0
- /package/layers/{motion → animations}/app/components/Motion/Magnetic.vue +0 -0
- /package/layers/{motion → animations}/app/components/Motion/Marquee.vue +0 -0
- /package/layers/{motion → animations}/app/components/Motion/MarqueeText.vue +0 -0
- /package/layers/{motion → animations}/app/components/Motion/Staggered.vue +0 -0
- /package/layers/{motion → animations}/app/components/Motion/TextReveal.vue +0 -0
- /package/layers/{motion → animations}/app/components/Motion/Tilt.vue +0 -0
- /package/layers/{motion → animations}/app/components/Motion/VelocityEffect.vue +0 -0
- /package/layers/{motion → animations}/app/composables/useCountUp.ts +0 -0
- /package/layers/{motion → animations}/app/composables/useCursorFollower.ts +0 -0
- /package/layers/{motion → animations}/app/composables/useMagneticElement.ts +0 -0
- /package/layers/{motion → animations}/app/composables/useMarqueeCopies.ts +0 -0
- /package/layers/{motion → animations}/app/composables/useMarqueeVelocity.ts +0 -0
- /package/layers/{motion → animations}/app/composables/useTiltEffect.ts +0 -0
- /package/layers/{ui → navigation}/app/components/Mast/Main.vue +0 -0
- /package/layers/{ui → navigation}/app/components/Site/Subtitle.vue +0 -0
- /package/layers/{ui → navigation}/app/components/Site/Title.vue +0 -0
- /package/layers/{ui → navigation}/app/utils/regex.ts +0 -0
- /package/layers/{motion/app/assets/css/motion.css → transitions/app/assets/css/transitions.css} +0 -0
- /package/layers/{ui → typography}/app/composables/color.ts +0 -0
- /package/layers/{ui → typography}/app/types/colors.ts +0 -0
- /package/layers/{ui → visual}/app/types/breakpoints.ts +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
<!-- eslint-disable vue/require-default-prop -->
|
|
2
|
+
<!-- eslint-disable vue/define-props-destructuring -->
|
|
3
|
+
<script lang="ts" setup>
|
|
4
|
+
import { useColor } from '../../composables/color'
|
|
5
|
+
import { useTypography } from '../../composables/typography'
|
|
6
|
+
import type { UiColors } from '../../types/colors'
|
|
7
|
+
import type {
|
|
8
|
+
FontLeading,
|
|
9
|
+
FontSize,
|
|
10
|
+
FontSlant,
|
|
11
|
+
FontTracking,
|
|
12
|
+
FontWeight,
|
|
13
|
+
FontWidth,
|
|
14
|
+
TextAlign,
|
|
15
|
+
TextTransform,
|
|
16
|
+
} from '../../types/typography'
|
|
17
|
+
|
|
18
|
+
defineOptions({ inheritAttrs: false })
|
|
19
|
+
|
|
20
|
+
const props = withDefaults(
|
|
21
|
+
defineProps<{
|
|
22
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6
|
|
23
|
+
weight?: FontWeight
|
|
24
|
+
width?: FontWidth
|
|
25
|
+
slant?: FontSlant
|
|
26
|
+
leading?: FontLeading
|
|
27
|
+
tracking?: FontTracking
|
|
28
|
+
align?: TextAlign
|
|
29
|
+
transform?: TextTransform
|
|
30
|
+
color?: UiColors
|
|
31
|
+
size?: FontSize
|
|
32
|
+
class?: string
|
|
33
|
+
}>(),
|
|
34
|
+
{
|
|
35
|
+
level: 1,
|
|
36
|
+
weight: 'font-bold',
|
|
37
|
+
width: 'font-stretch-normal',
|
|
38
|
+
slant: 'normal',
|
|
39
|
+
leading: 'leading-tight',
|
|
40
|
+
tracking: 'tracking-tight',
|
|
41
|
+
align: 'left',
|
|
42
|
+
transform: 'none',
|
|
43
|
+
class: '',
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
const tag = computed(() => `h${props.level}` as const)
|
|
47
|
+
|
|
48
|
+
const sizeClass = computed(() => {
|
|
49
|
+
if (props.size) return null
|
|
50
|
+
|
|
51
|
+
const sizes: Record<number, string> = {
|
|
52
|
+
1: 'text-4xl sm:text-5xl',
|
|
53
|
+
2: 'text-3xl sm:text-4xl',
|
|
54
|
+
3: 'text-2xl sm:text-3xl',
|
|
55
|
+
4: 'text-xl sm:text-2xl',
|
|
56
|
+
5: 'text-lg sm:text-xl',
|
|
57
|
+
6: 'text-base sm:text-lg',
|
|
58
|
+
}
|
|
59
|
+
return sizes[props.level]
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
const { classes } = useTypography({
|
|
63
|
+
weight: props.weight,
|
|
64
|
+
width: props.width,
|
|
65
|
+
slant: props.slant,
|
|
66
|
+
leading: props.leading,
|
|
67
|
+
tracking: props.tracking,
|
|
68
|
+
align: props.align,
|
|
69
|
+
transform: props.transform,
|
|
70
|
+
...(props.size !== undefined && { size: props.size }),
|
|
71
|
+
})
|
|
72
|
+
const colorClass = useColor(props.color, 'text')
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
<template>
|
|
76
|
+
<Typography
|
|
77
|
+
:tag
|
|
78
|
+
:weight="props.weight"
|
|
79
|
+
:width="props.width"
|
|
80
|
+
:slant="props.slant"
|
|
81
|
+
:leading="props.leading"
|
|
82
|
+
:tracking="props.tracking"
|
|
83
|
+
:align="props.align"
|
|
84
|
+
:transform="props.transform"
|
|
85
|
+
:class="[sizeClass, classes, colorClass, props.class]"
|
|
86
|
+
v-bind="{ ...(props.size !== undefined && { size: props.size }), ...$attrs }"
|
|
87
|
+
>
|
|
88
|
+
<slot />
|
|
89
|
+
</Typography>
|
|
90
|
+
</template>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<!-- eslint-disable vue/require-default-prop -->
|
|
2
|
+
<!-- eslint-disable vue/define-props-destructuring -->
|
|
3
|
+
<script lang="ts" setup>
|
|
4
|
+
import { useColor } from '../../composables/color'
|
|
5
|
+
import { useTypography } from '../../composables/typography'
|
|
6
|
+
import type { UiColors } from '../../types/colors'
|
|
7
|
+
import type {
|
|
8
|
+
FontLeading,
|
|
9
|
+
FontScreenSize,
|
|
10
|
+
FontSlant,
|
|
11
|
+
FontTracking,
|
|
12
|
+
FontWeight,
|
|
13
|
+
FontWidth,
|
|
14
|
+
TextAlign,
|
|
15
|
+
TextTransform,
|
|
16
|
+
} from '../../types/typography'
|
|
17
|
+
|
|
18
|
+
defineOptions({ inheritAttrs: false })
|
|
19
|
+
|
|
20
|
+
const props = withDefaults(
|
|
21
|
+
defineProps<{
|
|
22
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6
|
|
23
|
+
size?: FontScreenSize
|
|
24
|
+
weight?: FontWeight
|
|
25
|
+
width?: FontWidth
|
|
26
|
+
slant?: FontSlant
|
|
27
|
+
leading?: FontLeading
|
|
28
|
+
tracking?: FontTracking
|
|
29
|
+
align?: TextAlign
|
|
30
|
+
transform?: TextTransform
|
|
31
|
+
color?: UiColors
|
|
32
|
+
class?: string
|
|
33
|
+
}>(),
|
|
34
|
+
{
|
|
35
|
+
level: 1,
|
|
36
|
+
size: 'screen-xxl',
|
|
37
|
+
weight: 'font-bold',
|
|
38
|
+
width: 'font-stretch-normal',
|
|
39
|
+
slant: 'normal',
|
|
40
|
+
leading: 'leading-tight',
|
|
41
|
+
tracking: 'tracking-tight',
|
|
42
|
+
align: 'left',
|
|
43
|
+
transform: 'none',
|
|
44
|
+
class: '',
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
const tag = computed(() => `h${props.level}` as const)
|
|
49
|
+
|
|
50
|
+
const sizeMap: Record<string, string> = {
|
|
51
|
+
screen: 'text-screen',
|
|
52
|
+
'screen-xl': 'text-screen-xl',
|
|
53
|
+
'screen-xxl': 'text-screen-xxl',
|
|
54
|
+
'screen-xxxl': 'text-screen-xxxl',
|
|
55
|
+
}
|
|
56
|
+
const sizeClass = computed(() => sizeMap[props.size] ?? 'text-screen-xxl')
|
|
57
|
+
|
|
58
|
+
const { classes } = useTypography({
|
|
59
|
+
weight: props.weight,
|
|
60
|
+
width: props.width,
|
|
61
|
+
slant: props.slant,
|
|
62
|
+
leading: props.leading,
|
|
63
|
+
tracking: props.tracking,
|
|
64
|
+
align: props.align,
|
|
65
|
+
transform: props.transform,
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
const colorClass = useColor(props.color, 'text')
|
|
69
|
+
</script>
|
|
70
|
+
|
|
71
|
+
<template>
|
|
72
|
+
<component :is="tag" :class="[sizeClass, classes, colorClass, props.class]" v-bind="$attrs">
|
|
73
|
+
<slot />
|
|
74
|
+
</component>
|
|
75
|
+
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- eslint-disable vue/define-props-destructuring -->
|
|
2
|
+
<script setup lang="ts">
|
|
3
|
+
import { useColor } from '../../composables/color'
|
|
4
|
+
import type { UiColors } from '../../types/colors'
|
|
5
|
+
import type { FontSize } from '../../types/typography'
|
|
6
|
+
|
|
7
|
+
defineOptions({ inheritAttrs: false })
|
|
8
|
+
|
|
9
|
+
const props = defineProps<{ color?: UiColors; size?: FontSize }>()
|
|
10
|
+
const colorClass = useColor(props.color, 'text')
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<Typography
|
|
15
|
+
tag="blockquote"
|
|
16
|
+
:class="colorClass"
|
|
17
|
+
v-bind="{ ...(props.size !== undefined && { size: props.size }), ...$attrs }"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</Typography>
|
|
21
|
+
</template>
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
+
<!-- eslint-disable vue/define-props-destructuring -->
|
|
1
2
|
<script lang="ts" setup>
|
|
2
|
-
const
|
|
3
|
-
|
|
3
|
+
const props = withDefaults(
|
|
4
|
+
defineProps<{
|
|
5
|
+
text: string
|
|
6
|
+
strokeWidth?: number
|
|
7
|
+
strokeColor?: string
|
|
8
|
+
fill?: string
|
|
9
|
+
linejoin?: 'round' | 'miter' | 'bevel'
|
|
10
|
+
tag?: string
|
|
11
|
+
}>(),
|
|
12
|
+
{
|
|
13
|
+
strokeWidth: 1.5,
|
|
14
|
+
strokeColor: 'currentColor',
|
|
15
|
+
fill: 'none',
|
|
16
|
+
linejoin: 'round',
|
|
17
|
+
tag: 'div',
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
const id = useId()
|
|
21
|
+
const contrast = usePreferredContrast()
|
|
4
22
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
strokeWidth?: number
|
|
9
|
-
strokeColor?: string
|
|
10
|
-
fill?: string
|
|
11
|
-
linejoin?: 'round' | 'miter' | 'bevel'
|
|
12
|
-
tag?: string
|
|
13
|
-
}>(),
|
|
14
|
-
{
|
|
15
|
-
strokeWidth: 1.5,
|
|
16
|
-
strokeColor: 'currentColor',
|
|
17
|
-
fill: 'none',
|
|
18
|
-
linejoin: 'round',
|
|
19
|
-
tag: 'div',
|
|
20
|
-
}
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
const effectiveStrokeWidth = computed(() =>
|
|
24
|
-
contrast.value === 'more' ? props.strokeWidth * 1.5 : props.strokeWidth
|
|
25
|
-
)
|
|
23
|
+
const effectiveStrokeWidth = computed(() =>
|
|
24
|
+
contrast.value === 'more' ? props.strokeWidth * 1.5 : props.strokeWidth
|
|
25
|
+
)
|
|
26
26
|
</script>
|
|
27
27
|
|
|
28
28
|
<template>
|
|
29
|
+
<!-- eslint-disable vue/no-duplicate-attr-inheritance -->
|
|
29
30
|
<component
|
|
30
31
|
:is="tag"
|
|
31
32
|
class="text-stroke inline-grid leading-none *:[grid-area:1/1]"
|
|
@@ -78,7 +79,7 @@ const effectiveStrokeWidth = computed(() =>
|
|
|
78
79
|
x="0"
|
|
79
80
|
y="0"
|
|
80
81
|
dominant-baseline="text-before-edge"
|
|
81
|
-
:fill
|
|
82
|
+
:fill
|
|
82
83
|
:stroke="strokeColor"
|
|
83
84
|
:stroke-width="effectiveStrokeWidth"
|
|
84
85
|
:stroke-linejoin="linejoin"
|
|
@@ -96,14 +97,14 @@ const effectiveStrokeWidth = computed(() =>
|
|
|
96
97
|
</template>
|
|
97
98
|
|
|
98
99
|
<style scoped>
|
|
99
|
-
@media (forced-colors: active) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
@media (forced-colors: active) {
|
|
101
|
+
.text-stroke-sizer {
|
|
102
|
+
visibility: visible;
|
|
103
|
+
color: CanvasText;
|
|
104
|
+
}
|
|
104
105
|
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
.text-stroke-svg {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
107
109
|
}
|
|
108
|
-
}
|
|
109
110
|
</style>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<!-- eslint-disable vue/define-props-destructuring -->
|
|
2
|
+
<!-- eslint-disable vue/require-default-prop -->
|
|
3
|
+
<!-- eslint-disable vue/no-unused-properties -->
|
|
4
|
+
<script lang="ts" setup>
|
|
5
|
+
import { useColor } from '../../composables/color'
|
|
6
|
+
import { useTypography } from '../../composables/typography'
|
|
7
|
+
import type { UiColors } from '../../types/colors'
|
|
8
|
+
import type {
|
|
9
|
+
FontLeading,
|
|
10
|
+
FontSize,
|
|
11
|
+
FontSlant,
|
|
12
|
+
FontTracking,
|
|
13
|
+
FontWeight,
|
|
14
|
+
FontWidth,
|
|
15
|
+
TextAlign,
|
|
16
|
+
TextTransform,
|
|
17
|
+
TypographyTag,
|
|
18
|
+
} from '../../types/typography'
|
|
19
|
+
|
|
20
|
+
const props = withDefaults(
|
|
21
|
+
defineProps<{
|
|
22
|
+
tag?: TypographyTag
|
|
23
|
+
weight?: FontWeight
|
|
24
|
+
width?: FontWidth
|
|
25
|
+
slant?: FontSlant
|
|
26
|
+
leading?: FontLeading
|
|
27
|
+
tracking?: FontTracking
|
|
28
|
+
align?: TextAlign
|
|
29
|
+
transform?: TextTransform
|
|
30
|
+
color?: UiColors
|
|
31
|
+
size?: FontSize
|
|
32
|
+
}>(),
|
|
33
|
+
{
|
|
34
|
+
tag: 'p',
|
|
35
|
+
weight: 'font-normal',
|
|
36
|
+
width: 'font-stretch-normal',
|
|
37
|
+
slant: 'normal',
|
|
38
|
+
leading: 'leading-normal',
|
|
39
|
+
tracking: 'tracking-normal',
|
|
40
|
+
align: 'left',
|
|
41
|
+
transform: 'none',
|
|
42
|
+
size: 'base',
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
const { classes } = useTypography(props)
|
|
46
|
+
const colorClass = useColor(props.color, 'text')
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<template>
|
|
50
|
+
<!-- eslint-disable-next-line vue/no-duplicate-attr-inheritance -->
|
|
51
|
+
<component :is="tag" :class="[classes, colorClass]" v-bind="$attrs">
|
|
52
|
+
<slot />
|
|
53
|
+
</component>
|
|
54
|
+
</template>
|
|
@@ -132,7 +132,7 @@ export type TextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize'
|
|
|
132
132
|
- Used by Text / Heading / Prose components
|
|
133
133
|
====================================================== */
|
|
134
134
|
|
|
135
|
-
export
|
|
135
|
+
export type TypographyProps = {
|
|
136
136
|
as?: keyof HTMLElementTagNameMap
|
|
137
137
|
weight?: FontWeight
|
|
138
138
|
size?: FontSize
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default defineNuxtConfig({
|
|
2
|
+
$meta: { name: 'typography' },
|
|
3
|
+
|
|
4
|
+
extends: ['../core'],
|
|
5
|
+
|
|
6
|
+
alias: {
|
|
7
|
+
'#layers/typography': import.meta.dirname,
|
|
8
|
+
'#layers/typography/types': `${import.meta.dirname}/app/types`,
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
compatibilityDate: '2026-06-06',
|
|
12
|
+
|
|
13
|
+
typescript: {
|
|
14
|
+
typeCheck: false,
|
|
15
|
+
strict: true,
|
|
16
|
+
},
|
|
17
|
+
})
|
|
@@ -2,23 +2,3 @@
|
|
|
2
2
|
background-color: var(--ui-bg);
|
|
3
3
|
color: var(--ui-text);
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
.gradient-text {
|
|
7
|
-
-webkit-background-clip: text;
|
|
8
|
-
background-clip: text;
|
|
9
|
-
color: transparent;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.accent-blob {
|
|
13
|
-
transition:
|
|
14
|
-
background-color 400ms ease,
|
|
15
|
-
opacity 300ms ease;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
[data-theme-transparency='reduced'] .accent-blob {
|
|
19
|
-
opacity: 0 !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.site-word {
|
|
23
|
-
display: block;
|
|
24
|
-
}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { resolveComponent } from 'vue'
|
|
3
|
-
|
|
4
|
-
const mastHeader = resolveComponent('MastHeader')
|
|
5
|
-
const mastFooter = resolveComponent('MastFooter')
|
|
6
|
-
|
|
7
|
-
const hasMastHeader = typeof mastHeader !== 'string'
|
|
8
|
-
const hasMastFooter = typeof mastFooter !== 'string'
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
1
|
<template>
|
|
12
|
-
<
|
|
2
|
+
<MastHeader />
|
|
13
3
|
<MastMain>
|
|
14
4
|
<slot />
|
|
15
5
|
</MastMain>
|
|
16
|
-
<
|
|
6
|
+
<MastFooter />
|
|
17
7
|
<UOverlayProvider />
|
|
18
8
|
</template>
|
package/layers/ui/nuxt.config.ts
CHANGED
|
@@ -1,38 +1,22 @@
|
|
|
1
|
-
//
|
|
1
|
+
// UI orchestrator — composes typography, navigation, and visual
|
|
2
2
|
export default defineNuxtConfig({
|
|
3
3
|
$meta: {
|
|
4
4
|
name: 'ui',
|
|
5
5
|
},
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
extends: process.env.UI_STANDALONE ? ['../core'] : [],
|
|
7
|
+
extends: ['../typography', '../navigation', '../visual'],
|
|
9
8
|
|
|
10
9
|
alias: {
|
|
11
10
|
'#layers/ui': import.meta.dirname,
|
|
11
|
+
'#layers/ui/types': `${import.meta.dirname}/app/types`,
|
|
12
12
|
},
|
|
13
13
|
|
|
14
|
-
modules: [
|
|
15
|
-
...(process.env.NODE_ENV !== 'production' ? ['@nuxt/eslint'] : []),
|
|
16
|
-
'@nuxt/ui',
|
|
17
|
-
// '@nuxt/image'
|
|
18
|
-
],
|
|
19
|
-
|
|
20
14
|
css: ['#layers/ui/app/assets/css/ui.css'],
|
|
21
15
|
|
|
22
|
-
|
|
23
|
-
// enabled: true,
|
|
24
|
-
// },
|
|
25
|
-
|
|
26
|
-
compatibilityDate: '2026-01-24',
|
|
16
|
+
compatibilityDate: '2026-06-06',
|
|
27
17
|
|
|
28
18
|
typescript: {
|
|
29
|
-
typeCheck:
|
|
19
|
+
typeCheck: false,
|
|
30
20
|
strict: true,
|
|
31
21
|
},
|
|
32
|
-
|
|
33
|
-
// vite: {
|
|
34
|
-
// build: {
|
|
35
|
-
// target: 'es2020',
|
|
36
|
-
// },
|
|
37
|
-
// },
|
|
38
22
|
})
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/consistent-type-imports */
|
|
2
|
+
export default defineAppConfig({
|
|
3
|
+
uiLayer: {
|
|
4
|
+
gradients: {
|
|
5
|
+
brand: {
|
|
6
|
+
shape: 'linear' as const,
|
|
7
|
+
direction: 'to-br' as const,
|
|
8
|
+
from: { color: 'primary' as const, shade: 500 as const },
|
|
9
|
+
to: { color: 'secondary' as const, shade: 600 as const },
|
|
10
|
+
},
|
|
11
|
+
subtle: {
|
|
12
|
+
shape: 'linear' as const,
|
|
13
|
+
direction: 'to-b' as const,
|
|
14
|
+
from: { color: 'primary' as const, shade: 100 as const, opacity: 50 },
|
|
15
|
+
to: { color: 'transparent' as const },
|
|
16
|
+
},
|
|
17
|
+
hero: {
|
|
18
|
+
shape: 'radial' as const,
|
|
19
|
+
from: { color: 'primary' as const, shade: 400 as const, opacity: 40 },
|
|
20
|
+
to: { color: 'transparent' as const },
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
accentScenes: {
|
|
24
|
+
hero: {
|
|
25
|
+
blobs: [
|
|
26
|
+
{
|
|
27
|
+
x: 20,
|
|
28
|
+
y: 30,
|
|
29
|
+
size: '50rem',
|
|
30
|
+
blur: '3xl' as const,
|
|
31
|
+
opacity: 25,
|
|
32
|
+
color: 'primary' as const,
|
|
33
|
+
shade: 400 as const,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
x: 80,
|
|
37
|
+
y: 70,
|
|
38
|
+
size: '40rem',
|
|
39
|
+
blur: '3xl' as const,
|
|
40
|
+
opacity: 20,
|
|
41
|
+
color: 'secondary' as const,
|
|
42
|
+
shade: 500 as const,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
corner: {
|
|
47
|
+
blobs: [
|
|
48
|
+
{
|
|
49
|
+
x: 100,
|
|
50
|
+
y: 0,
|
|
51
|
+
size: '35rem',
|
|
52
|
+
blur: '2xl' as const,
|
|
53
|
+
opacity: 30,
|
|
54
|
+
color: 'primary' as const,
|
|
55
|
+
shade: 500 as const,
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
scattered: {
|
|
60
|
+
blobs: [
|
|
61
|
+
{
|
|
62
|
+
x: 15,
|
|
63
|
+
y: 20,
|
|
64
|
+
size: '30rem',
|
|
65
|
+
blur: 'xl' as const,
|
|
66
|
+
opacity: 20,
|
|
67
|
+
color: 'primary' as const,
|
|
68
|
+
shade: 400 as const,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
x: 85,
|
|
72
|
+
y: 30,
|
|
73
|
+
size: '25rem',
|
|
74
|
+
blur: 'xl' as const,
|
|
75
|
+
opacity: 15,
|
|
76
|
+
color: 'secondary' as const,
|
|
77
|
+
shade: 400 as const,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
x: 50,
|
|
81
|
+
y: 80,
|
|
82
|
+
size: '35rem',
|
|
83
|
+
blur: '2xl' as const,
|
|
84
|
+
opacity: 18,
|
|
85
|
+
color: 'info' as const,
|
|
86
|
+
shade: 400 as const,
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
minimal: {
|
|
91
|
+
blobs: [
|
|
92
|
+
{
|
|
93
|
+
x: 50,
|
|
94
|
+
y: 50,
|
|
95
|
+
size: '60rem',
|
|
96
|
+
blur: '3xl' as const,
|
|
97
|
+
opacity: 10,
|
|
98
|
+
color: 'primary' as const,
|
|
99
|
+
shade: 500 as const,
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
declare module '@nuxt/schema' {
|
|
108
|
+
type AppConfigInput = {
|
|
109
|
+
uiLayer?: {
|
|
110
|
+
name?: string
|
|
111
|
+
gradients?: Record<string, import('./types/gradient').GradientConfig>
|
|
112
|
+
accentScenes?: Record<string, import('./types/accent').AccentSceneConfig>
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.gradient-text {
|
|
2
|
+
-webkit-background-clip: text;
|
|
3
|
+
background-clip: text;
|
|
4
|
+
color: transparent;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.accent-blob {
|
|
8
|
+
transition:
|
|
9
|
+
background-color 400ms ease,
|
|
10
|
+
opacity 300ms ease;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-theme-transparency='reduced'] .accent-blob {
|
|
14
|
+
opacity: 0 !important;
|
|
15
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<!-- eslint-disable vue/require-default-prop -->
|
|
2
|
+
<!-- eslint-disable vue/no-unused-properties -->
|
|
3
|
+
<!-- eslint-disable vue/define-props-destructuring -->
|
|
4
|
+
<script setup lang="ts">
|
|
5
|
+
import type { AccentBlobColor, BlobBlur } from '../../types/accent'
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(
|
|
8
|
+
defineProps<{
|
|
9
|
+
x: number
|
|
10
|
+
y: number
|
|
11
|
+
size?: string
|
|
12
|
+
blur?: BlobBlur
|
|
13
|
+
opacity?: number
|
|
14
|
+
color?: AccentBlobColor
|
|
15
|
+
shade?: 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950
|
|
16
|
+
customColor?: string
|
|
17
|
+
}>(),
|
|
18
|
+
{
|
|
19
|
+
size: '40rem',
|
|
20
|
+
blur: '3xl',
|
|
21
|
+
opacity: 25,
|
|
22
|
+
color: 'primary',
|
|
23
|
+
shade: 500,
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
const { style } = useAccentBlob(props)
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<div class="accent-blob" :style aria-hidden="true" />
|
|
32
|
+
</template>
|