@master/internal-site 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +66 -2
- package/dist/astro.d.mts +3 -0
- package/dist/astro.mjs +510 -0
- package/dist/config.d.mts +64 -0
- package/dist/config.mjs +10 -0
- package/package.json +384 -4
- package/src/astro/Page.astro +12 -0
- package/src/astro/content-pages.ts +75 -0
- package/src/astro/index.ts +124 -0
- package/src/astro/module-id.ts +4 -0
- package/src/astro/propagated-assets.ts +29 -0
- package/src/astro/route-paths.ts +78 -0
- package/src/astro/routes.template.ts +110 -0
- package/src/astro/server-styles.ts +26 -0
- package/src/astro/site-context.ts +27 -0
- package/src/astro/source-url.ts +22 -0
- package/src/astro/svelte-renderer.ts +45 -0
- package/src/astro/svg-markup.ts +23 -0
- package/src/benchmarks/BenchmarkBarRows.astro +34 -0
- package/src/benchmarks/BenchmarkBars.astro +14 -0
- package/src/benchmarks/BenchmarkChart.astro +53 -0
- package/src/benchmarks/BenchmarkChartGroup.astro +24 -0
- package/src/benchmarks/BenchmarkDataTable.astro +24 -0
- package/src/benchmarks/BenchmarkDelta.astro +23 -0
- package/src/benchmarks/BenchmarkFigure.astro +30 -0
- package/src/benchmarks/BenchmarkMetricTable.astro +38 -0
- package/src/benchmarks/BenchmarkMetrics.astro +23 -0
- package/src/benchmarks/BenchmarkSampleSummary.astro +30 -0
- package/src/benchmarks/BenchmarkScrollRegion.svelte +27 -0
- package/src/benchmarks/BenchmarkSource.astro +20 -0
- package/src/benchmarks/BenchmarkStackedBars.astro +54 -0
- package/src/benchmarks/BenchmarkStatus.astro +16 -0
- package/src/benchmarks/types.ts +98 -0
- package/src/benchmarks/utils.ts +42 -0
- package/src/blog/BlogAuthors.astro +25 -0
- package/src/blog/article/BlogArticleContents.svelte +24 -0
- package/src/blog/article/BlogArticleEnd.astro +55 -0
- package/src/blog/article/BlogArticleMasthead.astro +61 -0
- package/src/blog/article/language.ts +29 -0
- package/src/blog/article/neighbors.ts +27 -0
- package/src/blog/article/title-lines.astro +14 -0
- package/src/blog/article/title-parts.ts +9 -0
- package/src/components.d.ts +5 -0
- package/src/config.ts +66 -0
- package/src/css/ButtonPreview.astro +22 -0
- package/src/css/ConfiguredExample.astro +15 -0
- package/src/css/NamespaceUtilityTable.astro +50 -0
- package/src/css/StylesheetExample.astro +15 -0
- package/src/css/ThemeNumberVariableTable.astro +57 -0
- package/src/css/configured-example.ts +53 -0
- package/src/css/foundation-data/elevation/shadow-data.ts +52 -0
- package/src/css/foundation-data/sizing/scale-data.ts +37 -0
- package/src/css/foundation-data/specimen-content.ts +10 -0
- package/src/css/foundation-data/specimens.ts +96 -0
- package/src/css/foundation-data/tokens.ts +32 -0
- package/src/css/generate-preset-css.ts +12 -0
- package/src/css/highlight.ts +34 -0
- package/src/css/manifest-utilities.ts +29 -0
- package/src/css/markdown.ts +279 -0
- package/src/css/preset-css.ts +15 -0
- package/src/css/preset-manifest.ts +3 -0
- package/src/css/stylesheet-example.ts +26 -0
- package/src/css/theme-variables.ts +74 -0
- package/src/css/variable-namespace-sources.ts +20 -0
- package/src/demo/Demo.svelte +55 -0
- package/src/demo/DemoAsset.astro +38 -0
- package/src/demo/DemoAxes.svelte +22 -0
- package/src/demo/DemoBadge.svelte +18 -0
- package/src/demo/DemoCatalog.astro +36 -0
- package/src/demo/DemoComparison.svelte +36 -0
- package/src/demo/DemoConfiguredExample.astro +48 -0
- package/src/demo/DemoContainer.svelte +48 -0
- package/src/demo/DemoControls.svelte +16 -0
- package/src/demo/DemoCopyButton.svelte +50 -0
- package/src/demo/DemoCopyGroup.svelte +15 -0
- package/src/demo/DemoExample.astro +27 -0
- package/src/demo/DemoFeatureSupport.svelte +18 -0
- package/src/demo/DemoGeneratedCSS.svelte +8 -0
- package/src/demo/DemoIndex.astro +23 -0
- package/src/demo/DemoInstallation.astro +17 -0
- package/src/demo/DemoItem.svelte +17 -0
- package/src/demo/DemoLabel.svelte +15 -0
- package/src/demo/DemoLegend.svelte +15 -0
- package/src/demo/DemoMeasure.svelte +28 -0
- package/src/demo/DemoMedia.svelte +43 -0
- package/src/demo/DemoMotion.svelte +41 -0
- package/src/demo/DemoPageViewport.astro +17 -0
- package/src/demo/DemoPalette.astro +29 -0
- package/src/demo/DemoPaletteGroups.svelte +15 -0
- package/src/demo/DemoScrollArea.svelte +15 -0
- package/src/demo/DemoStyleComparison.astro +25 -0
- package/src/demo/DemoSurface.svelte +15 -0
- package/src/demo/DemoSwatch.svelte +19 -0
- package/src/demo/DemoThemeComparison.astro +30 -0
- package/src/demo/DemoTokenTable.astro +34 -0
- package/src/demo/DemoViewTransition.astro +18 -0
- package/src/demo/DemoViewport.svelte +324 -0
- package/src/demo/DemoWaterfall.astro +30 -0
- package/src/demo/FoundationBreakpoint.astro +12 -0
- package/src/demo/ProjectStyleExample.astro +13 -0
- package/src/demo/copy-feedback.ts +10 -0
- package/src/demo/demo-waterfall.ts +17 -0
- package/src/demo/drag-readings.ts +20 -0
- package/src/demo/foundations/FoundationAxes.astro +12 -0
- package/src/demo/foundations/FoundationColorRoles.astro +5 -0
- package/src/demo/foundations/FoundationContainerGrid.astro +24 -0
- package/src/demo/foundations/FoundationDialog.astro +14 -0
- package/src/demo/foundations/FoundationElevation.astro +5 -0
- package/src/demo/foundations/FoundationElevationState.astro +5 -0
- package/src/demo/foundations/FoundationHue.astro +5 -0
- package/src/demo/foundations/FoundationLines.astro +5 -0
- package/src/demo/foundations/FoundationMedia.astro +28 -0
- package/src/demo/foundations/FoundationMotion.astro +5 -0
- package/src/demo/foundations/FoundationPalette.astro +8 -0
- package/src/demo/foundations/FoundationRadius.astro +13 -0
- package/src/demo/foundations/FoundationShapes.astro +12 -0
- package/src/demo/foundations/FoundationShrink.astro +14 -0
- package/src/demo/foundations/FoundationSizing.astro +19 -0
- package/src/demo/foundations/FoundationSpecimen.astro +20 -0
- package/src/demo/foundations/FoundationSurfaces.astro +5 -0
- package/src/demo/foundations/FoundationTextHue.astro +5 -0
- package/src/demo/foundations/FoundationTextRoles.astro +5 -0
- package/src/demo/foundations/FoundationTokens.astro +22 -0
- package/src/demo/foundations/FoundationTokensView.astro +65 -0
- package/src/demo/foundations/FoundationTransition.astro +5 -0
- package/src/demo/foundations/FoundationTypeComparison.astro +12 -0
- package/src/demo/foundations/FoundationTypography.astro +5 -0
- package/src/demo/foundations/Palette.svelte +37 -0
- package/src/demo/foundations/ShadowScaleDemo.astro +22 -0
- package/src/demo/illustration-materials.ts +180 -0
- package/src/demo/maintenance-example.ts +62 -0
- package/src/demo/playback.ts +75 -0
- package/src/demo/project-style-examples.ts +128 -0
- package/src/demo/reference/alignment.ts +42 -0
- package/src/demo/reference/animations.ts +30 -0
- package/src/demo/reference/backgrounds.ts +39 -0
- package/src/demo/reference/border-paint.ts +31 -0
- package/src/demo/reference/clipping.ts +26 -0
- package/src/demo/reference/document.ts +55 -0
- package/src/demo/reference/edges.ts +40 -0
- package/src/demo/reference/effects.ts +27 -0
- package/src/demo/reference/flexbox.ts +33 -0
- package/src/demo/reference/frame.css +118 -0
- package/src/demo/reference/grid.ts +42 -0
- package/src/demo/reference/html.ts +40 -0
- package/src/demo/reference/interaction.ts +42 -0
- package/src/demo/reference/layout-html.ts +10 -0
- package/src/demo/reference/layout.ts +102 -0
- package/src/demo/reference/media.ts +29 -0
- package/src/demo/reference/positioning.ts +90 -0
- package/src/demo/reference/scenes.ts +197 -0
- package/src/demo/reference/scrolling.ts +66 -0
- package/src/demo/reference/shapes.ts +22 -0
- package/src/demo/reference/sizing.ts +43 -0
- package/src/demo/reference/source.ts +8 -0
- package/src/demo/reference/text-effects.ts +37 -0
- package/src/demo/reference/text-flow.ts +41 -0
- package/src/demo/reference/transforms.ts +26 -0
- package/src/demo/reference/transitions.ts +24 -0
- package/src/demo/reference/type-specimens.ts +56 -0
- package/src/demo/reference/types.ts +30 -0
- package/src/demo/reference/typography.ts +32 -0
- package/src/demo/specimens/accent-color.json +50 -0
- package/src/demo/specimens/align-items.json +56 -0
- package/src/demo/specimens/animation-delay.json +55 -0
- package/src/demo/specimens/animation-direction.json +49 -0
- package/src/demo/specimens/animation-fill-mode.json +55 -0
- package/src/demo/specimens/animation-iteration-count.json +55 -0
- package/src/demo/specimens/animation-play-state.json +83 -0
- package/src/demo/specimens/animation-timing-function.json +48 -0
- package/src/demo/specimens/appearance.json +44 -0
- package/src/demo/specimens/aspect-ratio.json +28 -0
- package/src/demo/specimens/backdrop-filter.json +44 -0
- package/src/demo/specimens/background-attachment.json +49 -0
- package/src/demo/specimens/background-image.json +25 -0
- package/src/demo/specimens/background-origin.json +36 -0
- package/src/demo/specimens/background-size.json +29 -0
- package/src/demo/specimens/border-collapse.json +45 -0
- package/src/demo/specimens/border-color.json +35 -0
- package/src/demo/specimens/border-image-repeat.json +50 -0
- package/src/demo/specimens/border-image-slice.json +45 -0
- package/src/demo/specimens/border-radius.json +30 -0
- package/src/demo/specimens/box-decoration-break.json +35 -0
- package/src/demo/specimens/box-shadow.json +33 -0
- package/src/demo/specimens/clear.json +77 -0
- package/src/demo/specimens/clip-path.json +38 -0
- package/src/demo/specimens/content.json +27 -0
- package/src/demo/specimens/counter-set.json +31 -0
- package/src/demo/specimens/fill.json +23 -0
- package/src/demo/specimens/filter.json +23 -0
- package/src/demo/specimens/flex-direction.json +27 -0
- package/src/demo/specimens/flex-grow.json +27 -0
- package/src/demo/specimens/font-style.json +23 -0
- package/src/demo/specimens/font-variant-numeric.json +28 -0
- package/src/demo/specimens/grid-auto-columns.json +29 -0
- package/src/demo/specimens/grid-auto-flow.json +37 -0
- package/src/demo/specimens/grid-template-areas.json +34 -0
- package/src/demo/specimens/grid-template-columns.json +36 -0
- package/src/demo/specimens/isolation.json +25 -0
- package/src/demo/specimens/justify-content.json +36 -0
- package/src/demo/specimens/line-height.json +28 -0
- package/src/demo/specimens/list-style-position.json +36 -0
- package/src/demo/specimens/mask-image.json +54 -0
- package/src/demo/specimens/min-width.json +39 -0
- package/src/demo/specimens/mix-blend-mode.json +43 -0
- package/src/demo/specimens/object-fit.json +27 -0
- package/src/demo/specimens/object-position.json +27 -0
- package/src/demo/specimens/opacity.json +37 -0
- package/src/demo/specimens/order.json +28 -0
- package/src/demo/specimens/overflow-wrap.json +26 -0
- package/src/demo/specimens/overflow.json +53 -0
- package/src/demo/specimens/overscroll-behavior.json +29 -0
- package/src/demo/specimens/padding.json +84 -0
- package/src/demo/specimens/place-content.json +31 -0
- package/src/demo/specimens/pointer-events.json +46 -0
- package/src/demo/specimens/position.json +29 -0
- package/src/demo/specimens/resize.json +32 -0
- package/src/demo/specimens/screen-readers.json +37 -0
- package/src/demo/specimens/scroll-padding.json +29 -0
- package/src/demo/specimens/scroll-snap-stop.json +33 -0
- package/src/demo/specimens/shape-image-threshold.json +37 -0
- package/src/demo/specimens/shape-margin.json +40 -0
- package/src/demo/specimens/shape-outside.json +37 -0
- package/src/demo/specimens/stroke-width.json +27 -0
- package/src/demo/specimens/text-fill-color.json +23 -0
- package/src/demo/specimens/text-stroke-width.json +32 -0
- package/src/demo/specimens/touch-action.json +45 -0
- package/src/demo/specimens/transform-box.json +37 -0
- package/src/demo/specimens/transform-origin.json +56 -0
- package/src/demo/specimens/transform-style.json +55 -0
- package/src/demo/specimens/transform.json +47 -0
- package/src/demo/specimens/transition-delay.json +57 -0
- package/src/demo/specimens/transition-duration.json +60 -0
- package/src/demo/specimens/transition-property.json +60 -0
- package/src/demo/specimens/transition-timing-function.json +65 -0
- package/src/demo/specimens/user-drag.json +28 -0
- package/src/demo/specimens/user-select.json +25 -0
- package/src/demo/specimens/vertical-align.json +28 -0
- package/src/demo/specimens/width.json +56 -0
- package/src/demo/specimens/will-change.json +50 -0
- package/src/demo/specimens/writing-mode.json +26 -0
- package/src/demo/specimens/z-index.json +35 -0
- package/src/demo/style.ts +15 -0
- package/src/demo/tone.ts +4 -0
- package/src/demo/useDemoViewTransition.svelte.ts +71 -0
- package/src/docs-shell/common/i18n.config.d.ts +2 -0
- package/src/docs-shell/common/i18n.config.js +13 -0
- package/src/docs-shell/common/svgo.config.d.ts +2 -0
- package/src/docs-shell/common/svgo.config.js +11 -0
- package/src/docs-shell/components/ArticleHeader.astro +65 -0
- package/src/docs-shell/components/ArticleTOC.astro +18 -0
- package/src/docs-shell/components/Callout.astro +26 -0
- package/src/docs-shell/components/Code.astro +25 -0
- package/src/docs-shell/components/CodeCopyButton.astro +25 -0
- package/src/docs-shell/components/CodeTabBar.astro +40 -0
- package/src/docs-shell/components/CodeTabs.astro +53 -0
- package/src/docs-shell/components/CodeView.astro +23 -0
- package/src/docs-shell/components/Do.astro +5 -0
- package/src/docs-shell/components/DoNot.astro +5 -0
- package/src/docs-shell/components/DocArticle.astro +14 -0
- package/src/docs-shell/components/DocHeader.svelte +87 -0
- package/src/docs-shell/components/DocHeading.astro +28 -0
- package/src/docs-shell/components/DocMain.astro +19 -0
- package/src/docs-shell/components/DocMenuButton.svelte +95 -0
- package/src/docs-shell/components/DocSidebar.svelte +62 -0
- package/src/docs-shell/components/DocVersionSelect.svelte +22 -0
- package/src/docs-shell/components/DocWrapper.astro +11 -0
- package/src/docs-shell/components/DocumentAPIIndex.astro +24 -0
- package/src/docs-shell/components/DocumentChoices.astro +24 -0
- package/src/docs-shell/components/DocumentCodeExample.astro +20 -0
- package/src/docs-shell/components/DocumentCodeExampleView.astro +35 -0
- package/src/docs-shell/components/DocumentCodeTable.astro +19 -0
- package/src/docs-shell/components/DocumentComparison.astro +7 -0
- package/src/docs-shell/components/DocumentCopyButton.svelte +41 -0
- package/src/docs-shell/components/DocumentDeclaration.astro +17 -0
- package/src/docs-shell/components/DocumentDeclarationView.astro +12 -0
- package/src/docs-shell/components/DocumentDisclosure.astro +14 -0
- package/src/docs-shell/components/DocumentFileTree.astro +34 -0
- package/src/docs-shell/components/DocumentFlow.astro +27 -0
- package/src/docs-shell/components/DocumentIdentifier.astro +14 -0
- package/src/docs-shell/components/DocumentIllustration.astro +46 -0
- package/src/docs-shell/components/DocumentKeyList.astro +22 -0
- package/src/docs-shell/components/DocumentNamespaceTable.astro +20 -0
- package/src/docs-shell/components/DocumentOptionEntry.astro +15 -0
- package/src/docs-shell/components/DocumentOptionList.astro +11 -0
- package/src/docs-shell/components/DocumentOptions.astro +23 -0
- package/src/docs-shell/components/DocumentParameters.astro +30 -0
- package/src/docs-shell/components/DocumentPrompt.astro +16 -0
- package/src/docs-shell/components/DocumentValueList.astro +25 -0
- package/src/docs-shell/components/DocumentationIndex.svelte +144 -0
- package/src/docs-shell/components/Dropped.astro +21 -0
- package/src/docs-shell/components/ExpandContent.svelte +21 -0
- package/src/docs-shell/components/ExplorerView.astro +37 -0
- package/src/docs-shell/components/FileIcon.astro +123 -0
- package/src/docs-shell/components/Footer.svelte +80 -0
- package/src/docs-shell/components/GeneratedCSS.astro +8 -0
- package/src/docs-shell/components/Header.svelte +121 -0
- package/src/docs-shell/components/HeaderIcon.astro +14 -0
- package/src/docs-shell/components/HeaderNav.svelte +18 -0
- package/src/docs-shell/components/Image.svelte +56 -0
- package/src/docs-shell/components/Info.astro +5 -0
- package/src/docs-shell/components/InlineCode.astro +30 -0
- package/src/docs-shell/components/InteractingIndicator.astro +19 -0
- package/src/docs-shell/components/LanguageButton.svelte +18 -0
- package/src/docs-shell/components/LanguageSelect.svelte +44 -0
- package/src/docs-shell/components/Link.svelte +127 -0
- package/src/docs-shell/components/ModeImg.astro +11 -0
- package/src/docs-shell/components/NotFound.astro +21 -0
- package/src/docs-shell/components/OverviewButtons.astro +36 -0
- package/src/docs-shell/components/PMAction.astro +25 -0
- package/src/docs-shell/components/PackageBadges.astro +39 -0
- package/src/docs-shell/components/PageContent.svelte +38 -0
- package/src/docs-shell/components/PageContentBootstrap.astro +13 -0
- package/src/docs-shell/components/PageContentDisclosure.astro +25 -0
- package/src/docs-shell/components/PageContentList.svelte +70 -0
- package/src/docs-shell/components/PageContentProvider.svelte +15 -0
- package/src/docs-shell/components/PageContentTitle.svelte +16 -0
- package/src/docs-shell/components/PageNavs.astro +40 -0
- package/src/docs-shell/components/PreparedCodeView.astro +12 -0
- package/src/docs-shell/components/RenderNode.astro +16 -0
- package/src/docs-shell/components/RouteLayers.astro +17 -0
- package/src/docs-shell/components/SearchButton.svelte +31 -0
- package/src/docs-shell/components/SearchDialog.svelte +174 -0
- package/src/docs-shell/components/Segments.svelte +62 -0
- package/src/docs-shell/components/Step.astro +13 -0
- package/src/docs-shell/components/StepL.astro +10 -0
- package/src/docs-shell/components/StepR.astro +10 -0
- package/src/docs-shell/components/StepSection.astro +12 -0
- package/src/docs-shell/components/Tab.astro +8 -0
- package/src/docs-shell/components/Tabs.astro +10 -0
- package/src/docs-shell/components/ThemeIcon.astro +19 -0
- package/src/docs-shell/components/ThemeSelect.svelte +20 -0
- package/src/docs-shell/components/TimeAgo.svelte +32 -0
- package/src/docs-shell/components/Translate.astro +14 -0
- package/src/docs-shell/components/Warn.astro +5 -0
- package/src/docs-shell/components/code-props.ts +28 -0
- package/src/docs-shell/components/document-types.ts +119 -0
- package/src/docs-shell/components/markdown/Anchor.astro +5 -0
- package/src/docs-shell/components/markdown/Heading2.astro +5 -0
- package/src/docs-shell/components/markdown/Heading3.astro +5 -0
- package/src/docs-shell/components/markdown/Table.astro +6 -0
- package/src/docs-shell/components/markdown-components.ts +36 -0
- package/src/docs-shell/components/page-content-bootstrap.ts +115 -0
- package/src/docs-shell/components/page-content.svelte.ts +125 -0
- package/src/docs-shell/contexts/search.ts +18 -0
- package/src/docs-shell/contexts/theme-mode.svelte.ts +61 -0
- package/src/docs-shell/data/authors.ts +17 -0
- package/src/docs-shell/data/base-colors.ts +29 -0
- package/src/docs-shell/data/brands.ts +79 -0
- package/src/docs-shell/data/color-names.ts +1 -0
- package/src/docs-shell/data/color-palette.ts +50 -0
- package/src/docs-shell/data/colors.ts +1 -0
- package/src/docs-shell/factories/Page.astro +35 -0
- package/src/docs-shell/factories/create-page.ts +31 -0
- package/src/docs-shell/layouts/BlogArticle.astro +53 -0
- package/src/docs-shell/layouts/Doc.astro +41 -0
- package/src/docs-shell/remark/markdown-components.d.ts +2 -0
- package/src/docs-shell/remark/markdown-components.js +101 -0
- package/src/docs-shell/remark/slug-and-toc.d.ts +2 -0
- package/src/docs-shell/remark/slug-and-toc.js +53 -0
- package/src/docs-shell/scripts/code-tabs-bootstrap.ts +34 -0
- package/src/docs-shell/scripts/code.ts +124 -0
- package/src/docs-shell/scripts/document-anchor.ts +57 -0
- package/src/docs-shell/scripts/document.ts +47 -0
- package/src/docs-shell/site.ts +67 -0
- package/src/docs-shell/types/IllustrationImages.ts +2 -0
- package/src/docs-shell/types/Metadata.ts +17 -0
- package/src/docs-shell/types/Props.ts +9 -0
- package/src/docs-shell/types/StaticImage.ts +6 -0
- package/src/docs-shell/uses/use-selected-preview-syntax.svelte.ts +16 -0
- package/src/docs-shell/utils/anchor.ts +24 -0
- package/src/docs-shell/utils/beautify-css.ts +14 -0
- package/src/docs-shell/utils/beautify-html.ts +12 -0
- package/src/docs-shell/utils/beautify-js.ts +9 -0
- package/src/docs-shell/utils/create-highlighter.ts +50 -0
- package/src/docs-shell/utils/css-modern-grammar.ts +339 -0
- package/src/docs-shell/utils/documentation-search.ts +68 -0
- package/src/docs-shell/utils/generate-metadata.ts +60 -0
- package/src/docs-shell/utils/group-page-content.ts +10 -0
- package/src/docs-shell/utils/head.ts +72 -0
- package/src/docs-shell/utils/highlight-code-core.ts +146 -0
- package/src/docs-shell/utils/highlight-code.ts +1 -0
- package/src/docs-shell/utils/highlighted-code-text.ts +27 -0
- package/src/docs-shell/utils/i18n-pathname.ts +98 -0
- package/src/docs-shell/utils/i18n.ts +12 -0
- package/src/docs-shell/utils/is-date-within-seven-days.ts +16 -0
- package/src/docs-shell/utils/isBrowser.ts +1 -0
- package/src/docs-shell/utils/isInteractOutside.ts +16 -0
- package/src/docs-shell/utils/markdown-tree.ts +22 -0
- package/src/docs-shell/utils/metadata.ts +25 -0
- package/src/docs-shell/utils/prepared-code.ts +21 -0
- package/src/docs-shell/utils/resolve-heading.d.ts +1 -0
- package/src/docs-shell/utils/resolve-heading.js +19 -0
- package/src/docs-shell/utils/search-pages.ts +271 -0
- package/src/docs-shell/utils/slot-text.ts +15 -0
- package/src/docs-shell/utils/snackbar.ts +39 -0
- package/src/docs-shell/utils/syntax-theme.ts +53 -0
- package/src/docs-shell/utils/transformer-notation-word-mark.ts +146 -0
- package/src/docs-shell/utils/unique-id.ts +11 -0
- package/src/examples/article-transitions/page.astro +7 -0
- package/src/examples/article-transitions/transitions.css +10 -0
- package/src/examples/components/ArticleTransitionScene.svelte +83 -0
- package/src/examples/components/ViewTransitionScene.svelte +31 -0
- package/src/examples/images/article-aurora.jpg +0 -0
- package/src/examples/images/article-coast.jpg +0 -0
- package/src/examples/images/article-grid.jpg +0 -0
- package/src/examples/images/article-studio.jpg +0 -0
- package/src/examples/layout-system/page.astro +59 -0
- package/src/examples/scene.css +3 -0
- package/src/examples/view-transitions/page.astro +7 -0
- package/src/examples/view-transitions/transitions.css +9 -0
- package/src/home/HeroCanvas.svelte +617 -0
- package/src/home/HomeAction.astro +17 -0
- package/src/home/HomeBentoFrame.astro +9 -0
- package/src/home/HomeBentoGrid.astro +9 -0
- package/src/home/HomeCompactIcon.astro +15 -0
- package/src/home/HomeFooter.svelte +63 -0
- package/src/home/HomeIllustration.astro +17 -0
- package/src/home/HomeIllustrationArt.svelte +15 -0
- package/src/home/HomeLamp.svelte +18 -0
- package/src/home/design.css +532 -0
- package/src/home/footer.css +225 -0
- package/src/home/hero-shaders.ts +460 -0
- package/src/home/hero-title-mask.ts +175 -0
- package/src/home/hero.css +547 -0
- package/src/home/home-illustration.ts +5 -0
- package/src/home/home-lamp.ts +225 -0
- package/src/home/home.css +1077 -0
- package/src/home/icons/agent-check-preview-apply.svg +24 -0
- package/src/home/icons/agent-clients.svg +26 -0
- package/src/home/icons/agent-project-tools.svg +23 -0
- package/src/home/icons/artwork/agent-check-preview-apply-dark.webp +0 -0
- package/src/home/icons/artwork/agent-check-preview-apply-light.webp +0 -0
- package/src/home/icons/artwork/agent-clients-dark.webp +0 -0
- package/src/home/icons/artwork/agent-clients-light.webp +0 -0
- package/src/home/icons/artwork/agent-edit-file-dark.webp +0 -0
- package/src/home/icons/artwork/agent-edit-file-light.webp +0 -0
- package/src/home/icons/artwork/agent-project-tools-dark.webp +0 -0
- package/src/home/icons/artwork/agent-project-tools-light.webp +0 -0
- package/src/home/icons/artwork/design-cascade-layers-dark.webp +0 -0
- package/src/home/icons/artwork/design-cascade-layers-light.webp +0 -0
- package/src/home/icons/artwork/design-layout-motion-dark.webp +0 -0
- package/src/home/icons/artwork/design-layout-motion-light.webp +0 -0
- package/src/home/icons/artwork/design-p3-gamut-dark.webp +0 -0
- package/src/home/icons/artwork/design-p3-gamut-light.webp +0 -0
- package/src/home/icons/artwork/design-theme-modes-dark.webp +0 -0
- package/src/home/icons/artwork/design-theme-modes-light.webp +0 -0
- package/src/home/icons/artwork/design-theme-tokens-dark.webp +0 -0
- package/src/home/icons/artwork/design-theme-tokens-light.webp +0 -0
- package/src/home/icons/artwork/editor-color-tools-dark.webp +0 -0
- package/src/home/icons/artwork/editor-color-tools-light.webp +0 -0
- package/src/home/icons/artwork/editor-focused-highlighting-dark.webp +0 -0
- package/src/home/icons/artwork/editor-focused-highlighting-light.webp +0 -0
- package/src/home/icons/artwork/editor-hover-inspection-dark.webp +0 -0
- package/src/home/icons/artwork/editor-hover-inspection-light.webp +0 -0
- package/src/home/icons/artwork/editor-manifest-completions-dark.webp +0 -0
- package/src/home/icons/artwork/editor-manifest-completions-light.webp +0 -0
- package/src/home/icons/artwork/lint-class-order-dark.webp +0 -0
- package/src/home/icons/artwork/lint-class-order-light.webp +0 -0
- package/src/home/icons/artwork/lint-conflicting-classes-dark.webp +0 -0
- package/src/home/icons/artwork/lint-conflicting-classes-light.webp +0 -0
- package/src/home/icons/artwork/lint-fix-previews-dark.webp +0 -0
- package/src/home/icons/artwork/lint-fix-previews-light.webp +0 -0
- package/src/home/icons/artwork/lint-invalid-classes-dark.webp +0 -0
- package/src/home/icons/artwork/lint-invalid-classes-light.webp +0 -0
- package/src/home/icons/artwork/lint-strict-vocabulary-dark.webp +0 -0
- package/src/home/icons/artwork/lint-strict-vocabulary-light.webp +0 -0
- package/src/home/icons/artwork/lint-theme-tokens-dark.webp +0 -0
- package/src/home/icons/artwork/lint-theme-tokens-light.webp +0 -0
- package/src/home/icons/artwork/mcp-apply-preview-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-apply-preview-light.webp +0 -0
- package/src/home/icons/artwork/mcp-css-compare-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-css-compare-light.webp +0 -0
- package/src/home/icons/artwork/mcp-inspect-class-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-inspect-class-light.webp +0 -0
- package/src/home/icons/artwork/mcp-lint-project-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-lint-project-light.webp +0 -0
- package/src/home/icons/artwork/mcp-manifest-query-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-manifest-query-light.webp +0 -0
- package/src/home/icons/artwork/mcp-preview-fixes-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-preview-fixes-light.webp +0 -0
- package/src/home/icons/artwork/mcp-render-css-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-render-css-light.webp +0 -0
- package/src/home/icons/artwork/mcp-scan-project-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-scan-project-light.webp +0 -0
- package/src/home/icons/artwork/mcp-trace-class-dark.webp +0 -0
- package/src/home/icons/artwork/mcp-trace-class-light.webp +0 -0
- package/src/home/icons/artwork/render-progressive-dark.webp +0 -0
- package/src/home/icons/artwork/render-progressive-light.webp +0 -0
- package/src/home/icons/artwork/render-runtime-dark.webp +0 -0
- package/src/home/icons/artwork/render-runtime-light.webp +0 -0
- package/src/home/icons/artwork/render-static-dark.webp +0 -0
- package/src/home/icons/artwork/render-static-light.webp +0 -0
- package/src/home/icons/artwork/section-ai-agents-dark.webp +0 -0
- package/src/home/icons/artwork/section-ai-agents-light.webp +0 -0
- package/src/home/icons/artwork/section-css-size-dark.webp +0 -0
- package/src/home/icons/artwork/section-css-size-light.webp +0 -0
- package/src/home/icons/artwork/section-design-system-dark.webp +0 -0
- package/src/home/icons/artwork/section-design-system-light.webp +0 -0
- package/src/home/icons/artwork/section-editor-dark.webp +0 -0
- package/src/home/icons/artwork/section-editor-light.webp +0 -0
- package/src/home/icons/artwork/section-lint-dark.webp +0 -0
- package/src/home/icons/artwork/section-lint-light.webp +0 -0
- package/src/home/icons/artwork/section-rendering-dark.webp +0 -0
- package/src/home/icons/artwork/section-rendering-light.webp +0 -0
- package/src/home/icons/artwork/section-workflow-dark.webp +0 -0
- package/src/home/icons/artwork/section-workflow-light.webp +0 -0
- package/src/home/icons/artwork/source.json +303 -0
- package/src/home/icons/artwork/workflow-integrations-dark.webp +0 -0
- package/src/home/icons/artwork/workflow-integrations-light.webp +0 -0
- package/src/home/icons/artwork/workflow-monorepo-dark.webp +0 -0
- package/src/home/icons/artwork/workflow-monorepo-light.webp +0 -0
- package/src/home/icons/artwork/workflow-route-styles-dark.webp +0 -0
- package/src/home/icons/artwork/workflow-route-styles-light.webp +0 -0
- package/src/home/icons/artwork/workflow-trace-change-dark.webp +0 -0
- package/src/home/icons/artwork/workflow-trace-change-light.webp +0 -0
- package/src/home/icons/artwork.css +4 -0
- package/src/home/icons/artwork.ts +131 -0
- package/src/home/icons/catalog.ts +381 -0
- package/src/home/icons/design-cascade-layers.svg +32 -0
- package/src/home/icons/design-layout-motion.svg +16 -0
- package/src/home/icons/design-p3-gamut.svg +12 -0
- package/src/home/icons/design-theme-modes.svg +12 -0
- package/src/home/icons/design-theme-tokens.svg +20 -0
- package/src/home/icons/editor-color-tools.svg +18 -0
- package/src/home/icons/editor-focused-highlighting.svg +15 -0
- package/src/home/icons/editor-hover-inspection.svg +19 -0
- package/src/home/icons/editor-manifest-completions.svg +24 -0
- package/src/home/icons/lint-class-order-compact.svg +15 -0
- package/src/home/icons/lint-class-order.svg +28 -0
- package/src/home/icons/lint-conflicting-classes-compact.svg +11 -0
- package/src/home/icons/lint-conflicting-classes.svg +24 -0
- package/src/home/icons/lint-fix-previews-compact.svg +9 -0
- package/src/home/icons/lint-fix-previews.svg +19 -0
- package/src/home/icons/lint-invalid-classes-compact.svg +7 -0
- package/src/home/icons/lint-invalid-classes.svg +17 -0
- package/src/home/icons/lint-strict-vocabulary-compact.svg +8 -0
- package/src/home/icons/lint-strict-vocabulary.svg +16 -0
- package/src/home/icons/lint-theme-tokens-compact.svg +7 -0
- package/src/home/icons/lint-theme-tokens.svg +14 -0
- package/src/home/icons/mcp-apply-preview-compact.svg +9 -0
- package/src/home/icons/mcp-apply-preview.svg +18 -0
- package/src/home/icons/mcp-css-compare-compact.svg +9 -0
- package/src/home/icons/mcp-css-compare.svg +20 -0
- package/src/home/icons/mcp-inspect-class-compact.svg +9 -0
- package/src/home/icons/mcp-inspect-class.svg +18 -0
- package/src/home/icons/mcp-lint-project-compact.svg +14 -0
- package/src/home/icons/mcp-lint-project.svg +30 -0
- package/src/home/icons/mcp-manifest-query-compact.svg +14 -0
- package/src/home/icons/mcp-manifest-query.svg +27 -0
- package/src/home/icons/mcp-preview-fixes-compact.svg +9 -0
- package/src/home/icons/mcp-preview-fixes.svg +15 -0
- package/src/home/icons/mcp-render-css-compact.svg +13 -0
- package/src/home/icons/mcp-render-css.svg +30 -0
- package/src/home/icons/mcp-scan-project-compact.svg +7 -0
- package/src/home/icons/mcp-scan-project.svg +13 -0
- package/src/home/icons/mcp-trace-class-compact.svg +11 -0
- package/src/home/icons/mcp-trace-class.svg +24 -0
- package/src/home/icons/render-progressive.svg +17 -0
- package/src/home/icons/render-runtime.svg +23 -0
- package/src/home/icons/render-static.svg +29 -0
- package/src/home/icons/section-ai-agents.svg +24 -0
- package/src/home/icons/section-css-size.svg +13 -0
- package/src/home/icons/section-design-system.svg +24 -0
- package/src/home/icons/section-editor.svg +14 -0
- package/src/home/icons/section-lint.svg +14 -0
- package/src/home/icons/section-rendering.svg +30 -0
- package/src/home/icons/section-workflow.svg +22 -0
- package/src/home/icons/workflow-integrations.svg +15 -0
- package/src/home/icons/workflow-monorepo.svg +27 -0
- package/src/home/icons/workflow-route-styles.svg +24 -0
- package/src/home/icons/workflow-trace-change.svg +21 -0
- package/src/layouts/Document.astro +71 -0
- package/src/public/brand/v2/logo/mark/master-mark-small-on-dark.svg +1 -0
- package/src/public/brand/v2/logo/master-css/master-css-horizontal-on-dark.svg +1 -0
- package/src/public/brand/v2/logo/master-css/master-css-horizontal-on-light.svg +1 -0
- package/src/public/demo/border-grid.svg +7 -0
- package/src/public/demo/landscape.svg +1 -0
- package/src/public/demo/marker.svg +1 -0
- package/src/public/demo/mask.svg +1 -0
- package/src/public/fonts/Geist-Medium.ttf +0 -0
- package/src/public/fonts/Geist-Regular.ttf +0 -0
- package/src/public/fonts/GeistVariable.woff2 +0 -0
- package/src/public/fonts/IBMPlexMono-Bold.woff2 +0 -0
- package/src/public/fonts/IBMPlexMono-Medium.woff2 +0 -0
- package/src/public/fonts/IBMPlexMono-Regular.woff2 +0 -0
- package/src/public/fonts/IBMPlexMono-SemiBold.woff2 +0 -0
- package/src/public/fonts/index.css +40 -0
- package/src/public/icons/csharp.svg +1 -0
- package/src/public/icons/css.svg +1 -0
- package/src/public/icons/eslint.svg +1 -0
- package/src/public/icons/folder.svg +12 -0
- package/src/public/icons/html.svg +1 -0
- package/src/public/icons/php.svg +1 -0
- package/src/public/icons/sass.svg +1 -0
- package/src/public/icons/storybook.svg +1 -0
- package/src/public/icons/visualstudiocode.svg +41 -0
- package/src/public/images/authors/aron.jpg +0 -0
- package/src/public/images/authors/benseage.jpg +0 -0
- package/src/public/images/authors/joy.jpg +0 -0
- package/src/public/images/authors/lola.jpg +0 -0
- package/src/public/images/authors/miles.jpg +0 -0
- package/src/public/images/bootstrap.svg +23 -0
- package/src/public/images/build-tools/rsbuild.svg +1 -0
- package/src/public/images/build-tools/rspack.svg +1 -0
- package/src/public/images/build-tools/vite.svg +15 -0
- package/src/public/images/build-tools/webpack.svg +10 -0
- package/src/public/images/cdns/esm-sh.svg +1 -0
- package/src/public/images/chevron-left.svg +4 -0
- package/src/public/images/cover-bg.jpg +0 -0
- package/src/public/images/emotion.svg +1 -0
- package/src/public/images/frameworks/angular.svg +29 -0
- package/src/public/images/frameworks/astro.svg +4 -0
- package/src/public/images/frameworks/blazor.svg +22 -0
- package/src/public/images/frameworks/express.svg +1 -0
- package/src/public/images/frameworks/laravel.svg +8 -0
- package/src/public/images/frameworks/line-liff.svg +1 -0
- package/src/public/images/frameworks/lit.svg +1 -0
- package/src/public/images/frameworks/nextjs.svg +16 -0
- package/src/public/images/frameworks/nuxtjs.svg +3 -0
- package/src/public/images/frameworks/rails.svg +1 -0
- package/src/public/images/frameworks/react.svg +8 -0
- package/src/public/images/frameworks/remix.svg +5 -0
- package/src/public/images/frameworks/shopify.svg +1 -0
- package/src/public/images/frameworks/svelte.svg +6 -0
- package/src/public/images/frameworks/tanstack.svg +1 -0
- package/src/public/images/frameworks/vuejs.svg +11 -0
- package/src/public/images/frameworks/wordpress.svg +1 -0
- package/src/public/images/mui.svg +1 -0
- package/src/public/images/styled-components.svg +4 -0
- package/src/public/images/tailwindcss.svg +1 -0
- package/src/scripts/bundler-imports.ts +25 -0
- package/src/scripts/static-social.ts +333 -0
- package/src/scripts/write-if-changed.ts +26 -0
- package/src/sections/blog.astro +11 -0
- package/src/sections/design-system.astro +14 -0
- package/src/sections/document.astro +8 -0
- package/src/sections/examples.astro +6 -0
- package/src/sections/guide.astro +26 -0
- package/src/sections/home.astro +7 -0
- package/src/sections/page.astro +12 -0
- package/src/styles/base.css +57 -0
- package/src/styles/benchmarks.css +20 -0
- package/src/styles/blog-article.css +670 -0
- package/src/styles/blog-materials.css +399 -0
- package/src/styles/blog.css +568 -0
- package/src/styles/demo.css +30 -0
- package/src/styles/design-system.css +15 -0
- package/src/styles/docs-shell/code.css +61 -0
- package/src/styles/docs-shell/docs.css +79 -0
- package/src/styles/docs-shell/documentation-search.css +42 -0
- package/src/styles/docs-shell/footer.css +38 -0
- package/src/styles/docs-shell/header.css +69 -0
- package/src/styles/docs-shell/materials.css +25 -0
- package/src/styles/docs-shell/menu.css +19 -0
- package/src/styles/docs-shell/not-found.css +10 -0
- package/src/styles/docs-shell/page-content.css +37 -0
- package/src/styles/docs-shell/prose.css +89 -0
- package/src/styles/docs-shell/segments.css +13 -0
- package/src/styles/docs-shell/steps.css +39 -0
- package/src/styles/docs-shell/syntax-theme.css +18 -0
- package/src/styles/docs-shell/theme.css +68 -0
- package/src/styles/docs-shell/wrapper.css +10 -0
- package/src/styles/document-comparison.css +7 -0
- package/src/styles/documentation-illustration.css +34 -0
- package/src/styles/documentation-index.css +100 -0
- package/src/styles/documents.css +4 -0
- package/src/styles/documents.ts +2 -0
- package/src/styles/foundation.css +4 -0
- package/src/styles/globals.css +2 -0
- package/src/styles/interface.css +3 -0
- package/src/styles/interface.ts +2 -0
- package/src/styles/site.ts +2 -0
- package/src/styles/system/DESIGN.md +108 -0
- package/src/styles/system/buttons.css +51 -0
- package/src/styles/system/code.css +85 -0
- package/src/styles/system/controls.css +110 -0
- package/src/styles/system/data.css +134 -0
- package/src/styles/system/mixins.css +7 -0
- package/src/styles/system/prose.css +75 -0
- package/src/styles/system/shell.css +102 -0
- package/src/styles/system/specimens.css +98 -0
- package/src/styles/system/surfaces.css +104 -0
- package/src/styles/system/tokens.css +136 -0
- package/src/utils/cloudflare-image-loader.js +85 -0
- package/src/virtual.d.ts +36 -0
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Blog materials: the quiet essence of the homepage, for the blog index and its articles. One fixed, soft light
|
|
3
|
+
* from above and slightly left; obsidian (light mode) and moonstone (dark mode) only as a tone in titles; the
|
|
4
|
+
* homepage's drafting guides (rails, rulers, crosses, corner marks, hatch) as structure. Effects should be felt
|
|
5
|
+
* more than seen. Semantics follow content/components/DESIGN.md: zinc neutrals, 1px contours, an inner top light,
|
|
6
|
+
* soft contact shadows, gold only as a rare, tiny accent.
|
|
7
|
+
*
|
|
8
|
+
* Scope
|
|
9
|
+
* .blog-materials Put on a page root. Defines the tokens below and paints the ground.
|
|
10
|
+
*
|
|
11
|
+
* Recipes
|
|
12
|
+
* .blog-plate A quiet sheet on the ground: 1px contour, inner top light, soft contact shadow.
|
|
13
|
+
* As (or inside) a link, hover/focus deepens the shadow a little, slowly; a press settles it
|
|
14
|
+
* onto the ground; nothing moves.
|
|
15
|
+
* .blog-stone-text A title tone: obsidian / moonstone ink, each line lit from above by a barely-there sheen.
|
|
16
|
+
* .blog-authors Overlapping portraits + names (components/blog/BlogAuthors.astro); ring = --blog-avatar-ring.
|
|
17
|
+
* .blog-signal A tiny gold dot: the page's rare accent (a live or newest state). Decorative; aria-hidden.
|
|
18
|
+
* .blog-rails Drafting rails with rulers just outside a box, as on the homepage (from md). Draws ::after.
|
|
19
|
+
* Knobs: --blog-rail-gap (box edge to rail, 1.25rem), --blog-tick-length (.75rem).
|
|
20
|
+
* .blog-rails-rule A drafting rule along a box's top, crossed where it meets the rails (from md). Draws ::before.
|
|
21
|
+
* Knob: --blog-rule-bleed (how far the rule runs past the crosses; the ruler's length).
|
|
22
|
+
* On an empty, aria-hidden element at a page's end it closes the drawing on whatever rule
|
|
23
|
+
* follows (the footer's): crosses where the rails stop, no fade (the blog index does this).
|
|
24
|
+
* With .blog-rails on the same box the crosses stay whole: the rails begin just below them.
|
|
25
|
+
* .blog-marks Artboard marks: four corner ticks just outside a box, as a design tool marks a frame.
|
|
26
|
+
* Draws ::before (position the box). Knobs: --blog-marks-inset (.375rem), --blog-marks-size.
|
|
27
|
+
* .blog-hatch-text Display letters engraved with the footer wordmark's diagonal hatch over a tint; legible as a
|
|
28
|
+
* title (glyphs average 3:1+, stripes 7:1+); selected, a soft wash. The hatch paints only
|
|
29
|
+
* inside the box: with text-box trim, pad it open past the trim (see the index's title).
|
|
30
|
+
* Knobs: --blog-hatch-ink, --blog-hatch-fill (the tint), --blog-hatch-size (the tile, scales
|
|
31
|
+
* with the type), --blog-hatch-line (stripe thickness, whatever the tile).
|
|
32
|
+
*
|
|
33
|
+
* Tokens (on .blog-materials)
|
|
34
|
+
* --blog-ground, --blog-sheet, --blog-text, --blog-title, --blog-text-body, --blog-text-quiet, --blog-text-faint,
|
|
35
|
+
* --blog-contour, --blog-rule, --blog-signal, --blog-highlight, --blog-shadow-rest, --blog-shadow-lifted,
|
|
36
|
+
* --blog-shadow-pressed, --blog-ease, --blog-quick, --blog-base, --blog-slow, --blog-radius-plate.
|
|
37
|
+
* Drafting inks, opaque mixes on the ground so a line drawn over another reads as one line:
|
|
38
|
+
* --blog-guide (rails, rules), --blog-tick / --blog-tick-major (rulers), --blog-cross (crosses), --blog-mark.
|
|
39
|
+
*
|
|
40
|
+
* Accessibility: reduced motion drops transitions; more contrast lifts quiet text, contours and guides; forced
|
|
41
|
+
* colors and print use Canvas / CanvasText and drop the decorative guides.
|
|
42
|
+
*/
|
|
43
|
+
@layer components {
|
|
44
|
+
.blog-materials {
|
|
45
|
+
/* The page's own ground, the same the footer stands on, so the index never sits in a tray. */
|
|
46
|
+
--blog-ground: light-dark(var(--color-zinc-0), var(--color-zinc-95));
|
|
47
|
+
/* In dark mode a sheet rises only half a step: its contour and top light carry the edge, not a gray slab. */
|
|
48
|
+
--blog-sheet: light-dark(var(--color-surface-raised), color-mix(in oklab, var(--blog-ground) 50%, var(--color-surface-raised)));
|
|
49
|
+
--blog-text: var(--color-text-strong);
|
|
50
|
+
/*
|
|
51
|
+
* Titles inside the page: soft obsidian in light mode (a step off black, still ~16:1), a moonstone mid-tone in
|
|
52
|
+
* dark mode, so nothing outshines the page title and nothing reads as pure black or white.
|
|
53
|
+
*/
|
|
54
|
+
--blog-title: light-dark(oklch(0.22 0.004 270), oklch(0.93 0.005 86));
|
|
55
|
+
--blog-text-body: var(--color-text-body);
|
|
56
|
+
--blog-text-quiet: var(--color-text-muted);
|
|
57
|
+
/* Faint still reads at 4.5:1 on the ground and on sheets. */
|
|
58
|
+
--blog-text-faint: color-mix(in oklab, var(--color-text-muted) 72%, var(--color-text-subtle));
|
|
59
|
+
--blog-contour: var(--color-line-contour);
|
|
60
|
+
--blog-rule: var(--color-line-divider);
|
|
61
|
+
/* The one accent, used sparingly: the logo's gold. */
|
|
62
|
+
--blog-signal: var(--color-amber-40);
|
|
63
|
+
--blog-highlight: light-dark(rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.06));
|
|
64
|
+
/* Light from above and slightly left: an inner top light, and contact layers that fall a little right. */
|
|
65
|
+
--blog-shadow-rest:
|
|
66
|
+
inset 0 1px 0 var(--blog-highlight),
|
|
67
|
+
inset 1px 0 0 light-dark(rgb(255 255 255 / 0.4), rgb(255 255 255 / 0.02)),
|
|
68
|
+
0 0 0 1px var(--blog-contour),
|
|
69
|
+
0 0.5px 1px light-dark(oklch(18% 0 none / 0.045), oklch(0% 0 none / 0.4)),
|
|
70
|
+
0.5px 2px 4px -1px light-dark(oklch(18% 0 none / 0.03), oklch(0% 0 none / 0.24)),
|
|
71
|
+
1px 6px 14px -6px light-dark(oklch(18% 0 none / 0.03), oklch(0% 0 none / 0.24));
|
|
72
|
+
--blog-shadow-lifted:
|
|
73
|
+
inset 0 1px 0 var(--blog-highlight),
|
|
74
|
+
inset 1px 0 0 light-dark(rgb(255 255 255 / 0.4), rgb(255 255 255 / 0.02)),
|
|
75
|
+
0 0 0 1px color-mix(in oklab, var(--blog-contour), var(--color-line-divider) 40%),
|
|
76
|
+
0 0.5px 1px light-dark(oklch(18% 0 none / 0.05), oklch(0% 0 none / 0.42)),
|
|
77
|
+
0.5px 3px 6px -2px light-dark(oklch(18% 0 none / 0.04), oklch(0% 0 none / 0.28)),
|
|
78
|
+
2px 14px 32px -14px light-dark(oklch(18% 0 none / 0.08), oklch(0% 0 none / 0.42));
|
|
79
|
+
/*
|
|
80
|
+
* Pressed: the sheet settles onto the ground — contour and contact only, the cast gone. Same layer order as
|
|
81
|
+
* rest and lifted (inset layers first), so box-shadow interpolates instead of snapping.
|
|
82
|
+
*/
|
|
83
|
+
--blog-shadow-pressed:
|
|
84
|
+
inset 0 1px 0 var(--blog-highlight),
|
|
85
|
+
inset 1px 0 0 light-dark(rgb(255 255 255 / 0.4), rgb(255 255 255 / 0.02)),
|
|
86
|
+
0 0 0 1px var(--blog-contour),
|
|
87
|
+
0 0.5px 1px light-dark(oklch(18% 0 none / 0.05), oklch(0% 0 none / 0.4)),
|
|
88
|
+
0.5px 1px 2px -1px transparent,
|
|
89
|
+
1px 2px 4px -2px transparent;
|
|
90
|
+
/* A soft start and a long settle: light arriving, not a switch (an expo-out curve read as a snap at 90ms). */
|
|
91
|
+
--blog-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
92
|
+
--blog-quick: 200ms;
|
|
93
|
+
--blog-base: 360ms;
|
|
94
|
+
--blog-slow: 720ms;
|
|
95
|
+
--blog-radius-plate: 1.25rem;
|
|
96
|
+
/*
|
|
97
|
+
* Drafting inks (DESIGN.md: guides, rulers, crosses, marks), mixed opaque into the ground. The guide matches the
|
|
98
|
+
* homepage's rails as painted (about 15 levels off the ground in light, 14 in dark).
|
|
99
|
+
*/
|
|
100
|
+
--blog-guide: light-dark(color-mix(in oklab, var(--blog-text) 6%, var(--blog-ground)), color-mix(in oklab, var(--blog-text) 7%, var(--blog-ground)));
|
|
101
|
+
--blog-tick: color-mix(in oklab, var(--blog-text) 9%, var(--blog-ground));
|
|
102
|
+
--blog-tick-major: color-mix(in oklab, var(--blog-text) 20%, var(--blog-ground));
|
|
103
|
+
--blog-cross: color-mix(in oklab, var(--color-line-control) 55%, var(--blog-ground));
|
|
104
|
+
--blog-mark: var(--blog-cross);
|
|
105
|
+
background-color: var(--blog-ground);
|
|
106
|
+
color: var(--blog-text-body);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* ---------- A quiet sheet ---------- */
|
|
110
|
+
.blog-plate {
|
|
111
|
+
position: relative;
|
|
112
|
+
border-radius: var(--blog-radius-plate);
|
|
113
|
+
background-color: var(--blog-sheet);
|
|
114
|
+
box-shadow: var(--blog-shadow-rest);
|
|
115
|
+
transition: box-shadow var(--blog-slow) var(--blog-ease);
|
|
116
|
+
|
|
117
|
+
/* Arrival is unhurried, departure slower still, like light settling. */
|
|
118
|
+
&:is(a, button):is(:hover, :focus-visible),
|
|
119
|
+
:is(a, button):is(:hover, :focus-visible) > & {
|
|
120
|
+
box-shadow: var(--blog-shadow-lifted);
|
|
121
|
+
transition-duration: var(--blog-base);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* A press settles it onto the ground, quickly, so a click or tap is felt. */
|
|
125
|
+
&:is(a, button):active,
|
|
126
|
+
:is(a, button):active > & {
|
|
127
|
+
box-shadow: var(--blog-shadow-pressed);
|
|
128
|
+
transition-duration: var(--blog-quick);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* ---------- Title tone ---------- */
|
|
133
|
+
.blog-stone-text {
|
|
134
|
+
--stone-ink-top: light-dark(oklch(0.36 0.005 270), oklch(0.965 0.004 88));
|
|
135
|
+
--stone-ink: light-dark(oklch(0.21 0.004 270), oklch(0.93 0.006 86));
|
|
136
|
+
--stone-ink-bottom: light-dark(oklch(0.16 0.004 270), oklch(0.87 0.012 250));
|
|
137
|
+
color: var(--blog-text);
|
|
138
|
+
|
|
139
|
+
/*
|
|
140
|
+
* Each line is toned on its own, lit from above, so a title that wraps never darkens line by line. Without
|
|
141
|
+
* `lh` the tone spans the block; without text clipping the title keeps its plain ink.
|
|
142
|
+
*/
|
|
143
|
+
@supports (background-clip: text) or (-webkit-background-clip: text) {
|
|
144
|
+
background-image: linear-gradient(180deg, var(--stone-ink-top), var(--stone-ink) 45%, var(--stone-ink-bottom));
|
|
145
|
+
background-size: 100% 1lh;
|
|
146
|
+
background-repeat: repeat-y;
|
|
147
|
+
-webkit-background-clip: text;
|
|
148
|
+
background-clip: text;
|
|
149
|
+
-webkit-text-fill-color: transparent;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* ---------- The rare accent ---------- */
|
|
154
|
+
/* An editor's mark, not a status light: a small solid dot, no halo. */
|
|
155
|
+
.blog-signal {
|
|
156
|
+
display: inline-block;
|
|
157
|
+
flex: none;
|
|
158
|
+
width: 0.3125rem;
|
|
159
|
+
height: 0.3125rem;
|
|
160
|
+
border-radius: calc(infinity * 1px);
|
|
161
|
+
background-color: var(--blog-signal);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* ---------- Authors ---------- */
|
|
165
|
+
.blog-authors {
|
|
166
|
+
display: inline-flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
gap: var(--spacing-sm);
|
|
169
|
+
min-width: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.blog-avatar-stack {
|
|
173
|
+
isolation: isolate;
|
|
174
|
+
display: flex;
|
|
175
|
+
flex: none;
|
|
176
|
+
align-items: center;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.blog-avatar {
|
|
180
|
+
position: relative;
|
|
181
|
+
display: block;
|
|
182
|
+
flex: none;
|
|
183
|
+
width: 1.5rem;
|
|
184
|
+
height: 1.5rem;
|
|
185
|
+
border-radius: calc(infinity * 1px);
|
|
186
|
+
box-shadow: 0 0 0 2px var(--blog-avatar-ring, var(--blog-sheet));
|
|
187
|
+
|
|
188
|
+
& + & {
|
|
189
|
+
margin-inline-start: -0.375rem;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
& img {
|
|
193
|
+
display: block;
|
|
194
|
+
width: 100%;
|
|
195
|
+
height: 100%;
|
|
196
|
+
margin: 0;
|
|
197
|
+
border-radius: inherit;
|
|
198
|
+
object-fit: cover;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&::after {
|
|
202
|
+
position: absolute;
|
|
203
|
+
inset: 0;
|
|
204
|
+
border-radius: inherit;
|
|
205
|
+
box-shadow: inset 0 0 0 1px light-dark(rgb(0 0 0 / 0.1), rgb(255 255 255 / 0.1));
|
|
206
|
+
pointer-events: none;
|
|
207
|
+
content: '';
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.blog-author-names {
|
|
212
|
+
min-width: 0;
|
|
213
|
+
font-size: 0.8125rem;
|
|
214
|
+
line-height: 1.5;
|
|
215
|
+
color: var(--blog-text-quiet);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/*
|
|
219
|
+
* ---------- Drafting guides ----------
|
|
220
|
+
* The homepage's design-tool guides (content/home.css), for the blog. `.blog-rails` draws a rail
|
|
221
|
+
* `--blog-rail-gap` outside each side of the box from `md`, with a ruler outside each rail: a short tick every
|
|
222
|
+
* 16px and a long one every 128px, counted from the box's top. `.blog-rails-rule` draws a rule along the box's
|
|
223
|
+
* top with a cross where it meets each rail; `--blog-rule-bleed` carries the rule past the crosses. Both are
|
|
224
|
+
* decorative and sit behind the content. Tick colors are opaque mixes, so a long tick over a short one reads
|
|
225
|
+
* as one line.
|
|
226
|
+
*/
|
|
227
|
+
.blog-rails,
|
|
228
|
+
.blog-rails-rule {
|
|
229
|
+
--blog-rail-gap: 1.25rem;
|
|
230
|
+
--blog-tick-length: 0.75rem;
|
|
231
|
+
--blog-rule-bleed: var(--blog-tick-length);
|
|
232
|
+
position: relative;
|
|
233
|
+
isolation: isolate;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@media (--md) {
|
|
237
|
+
/*
|
|
238
|
+
* Over the rule, as on the homepage, so the first long tick reads on it; each rail starts just below the top,
|
|
239
|
+
* so a cross drawn there by .blog-rails-rule stays whole.
|
|
240
|
+
*/
|
|
241
|
+
.blog-rails::after {
|
|
242
|
+
position: absolute;
|
|
243
|
+
inset-block: 0;
|
|
244
|
+
inset-inline: calc(-1 * (var(--blog-rail-gap) + var(--blog-tick-length)));
|
|
245
|
+
z-index: -1;
|
|
246
|
+
background:
|
|
247
|
+
linear-gradient(var(--blog-tick-major) 0 1px, transparent 1px) left 0 top 0 / var(--blog-tick-length) 8rem repeat-y,
|
|
248
|
+
linear-gradient(var(--blog-tick-major) 0 1px, transparent 1px) right 0 top 0 / var(--blog-tick-length) 8rem repeat-y,
|
|
249
|
+
linear-gradient(var(--blog-tick) 0 1px, transparent 1px) left calc(var(--blog-tick-length) / 2) top 0 / calc(var(--blog-tick-length) / 2) 1rem repeat-y,
|
|
250
|
+
linear-gradient(var(--blog-tick) 0 1px, transparent 1px) right calc(var(--blog-tick-length) / 2) top 0 / calc(var(--blog-tick-length) / 2) 1rem repeat-y,
|
|
251
|
+
linear-gradient(var(--blog-guide), var(--blog-guide)) left var(--blog-tick-length) top 6px / 1px calc(100% - 6px) no-repeat,
|
|
252
|
+
linear-gradient(var(--blog-guide), var(--blog-guide)) right var(--blog-tick-length) top 6px / 1px calc(100% - 6px) no-repeat;
|
|
253
|
+
pointer-events: none;
|
|
254
|
+
content: '';
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.blog-rails-rule::before {
|
|
258
|
+
position: absolute;
|
|
259
|
+
top: -5px;
|
|
260
|
+
inset-inline: calc(-1 * (var(--blog-rail-gap) + var(--blog-rule-bleed)));
|
|
261
|
+
z-index: -2;
|
|
262
|
+
height: 11px;
|
|
263
|
+
background:
|
|
264
|
+
linear-gradient(var(--blog-cross), var(--blog-cross)) left calc(var(--blog-rule-bleed) - 5px) top 5px / 11px 1px no-repeat,
|
|
265
|
+
linear-gradient(var(--blog-cross), var(--blog-cross)) left var(--blog-rule-bleed) top 0 / 1px 11px no-repeat,
|
|
266
|
+
linear-gradient(var(--blog-cross), var(--blog-cross)) right calc(var(--blog-rule-bleed) - 5px) top 5px / 11px 1px no-repeat,
|
|
267
|
+
linear-gradient(var(--blog-cross), var(--blog-cross)) right var(--blog-rule-bleed) top 0 / 1px 11px no-repeat,
|
|
268
|
+
linear-gradient(var(--blog-guide), var(--blog-guide)) 0 5px / 100% 1px no-repeat;
|
|
269
|
+
pointer-events: none;
|
|
270
|
+
content: '';
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/*
|
|
275
|
+
* ---------- Artboard marks ----------
|
|
276
|
+
* Four corner ticks `--blog-marks-inset` outside a box, the way a design tool marks a frame (`.home-marks`). For
|
|
277
|
+
* open content that needs an edge without a border; a box with its own border does not take them.
|
|
278
|
+
*/
|
|
279
|
+
.blog-marks {
|
|
280
|
+
--blog-marks-inset: 0.375rem;
|
|
281
|
+
--blog-marks-size: 0.5rem;
|
|
282
|
+
position: relative;
|
|
283
|
+
|
|
284
|
+
&::before {
|
|
285
|
+
position: absolute;
|
|
286
|
+
inset: calc(var(--blog-marks-inset) * -1);
|
|
287
|
+
background:
|
|
288
|
+
linear-gradient(var(--blog-mark), var(--blog-mark)) 0 0 / var(--blog-marks-size) 1px no-repeat,
|
|
289
|
+
linear-gradient(var(--blog-mark), var(--blog-mark)) 0 0 / 1px var(--blog-marks-size) no-repeat,
|
|
290
|
+
linear-gradient(var(--blog-mark), var(--blog-mark)) 100% 0 / var(--blog-marks-size) 1px no-repeat,
|
|
291
|
+
linear-gradient(var(--blog-mark), var(--blog-mark)) 100% 0 / 1px var(--blog-marks-size) no-repeat,
|
|
292
|
+
linear-gradient(var(--blog-mark), var(--blog-mark)) 0 100% / var(--blog-marks-size) 1px no-repeat,
|
|
293
|
+
linear-gradient(var(--blog-mark), var(--blog-mark)) 0 100% / 1px var(--blog-marks-size) no-repeat,
|
|
294
|
+
linear-gradient(var(--blog-mark), var(--blog-mark)) 100% 100% / var(--blog-marks-size) 1px no-repeat,
|
|
295
|
+
linear-gradient(var(--blog-mark), var(--blog-mark)) 100% 100% / 1px var(--blog-marks-size) no-repeat;
|
|
296
|
+
pointer-events: none;
|
|
297
|
+
content: '';
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/*
|
|
302
|
+
* ---------- Hatched letters ----------
|
|
303
|
+
* The homepage footer's engraved wordmark (content/components/footer.css): letters filled with the site's
|
|
304
|
+
* diagonal hatch over a tint. For display sizes only. The tint draws the letterforms and the hatch gives
|
|
305
|
+
* them their grain, so `--blog-hatch-fill` decides how clearly they read and `--blog-hatch-ink` how strongly the
|
|
306
|
+
* stripes show. The stripes keep `--blog-hatch-line` thickness at any tile size, and the tile follows the type
|
|
307
|
+
* (rounded to whole pixels, so stripes stay even). Without text clipping the letters keep their plain ink.
|
|
308
|
+
*/
|
|
309
|
+
.blog-hatch-text {
|
|
310
|
+
/*
|
|
311
|
+
* A fine engraving rather than bold stripes: a dense, low-contrast hatch over a tint that carries the letters.
|
|
312
|
+
* At display sizes the glyphs average 3:1 or more against the ground (large-text AA; measured at 2x) and a
|
|
313
|
+
* stripe alone 7:1 or more, in both schemes. Dark needs less ink for the same reading.
|
|
314
|
+
*/
|
|
315
|
+
--blog-hatch-ink: light-dark(color-mix(in oklab, var(--blog-text) 58%, transparent), color-mix(in oklab, var(--blog-text) 54%, transparent));
|
|
316
|
+
--blog-hatch-fill: light-dark(color-mix(in oklab, var(--blog-text) 38%, transparent), color-mix(in oklab, var(--blog-text) 24%, transparent));
|
|
317
|
+
--blog-hatch-size: 5px;
|
|
318
|
+
--blog-hatch-line: 1px;
|
|
319
|
+
color: var(--blog-text);
|
|
320
|
+
|
|
321
|
+
@supports (width: round(1em, 1px)) {
|
|
322
|
+
--blog-hatch-size: max(3px, round(0.05em, 1px));
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@supports (background-clip: text) or (-webkit-background-clip: text) {
|
|
326
|
+
background-image:
|
|
327
|
+
linear-gradient(135deg, var(--blog-hatch-ink) 0 var(--blog-hatch-line), transparent 0 50%, var(--blog-hatch-ink) 0 calc(50% + var(--blog-hatch-line)), transparent 0),
|
|
328
|
+
linear-gradient(var(--blog-hatch-fill), var(--blog-hatch-fill));
|
|
329
|
+
background-size: var(--blog-hatch-size) var(--blog-hatch-size), auto;
|
|
330
|
+
-webkit-background-clip: text;
|
|
331
|
+
background-clip: text;
|
|
332
|
+
-webkit-text-fill-color: transparent;
|
|
333
|
+
|
|
334
|
+
/*
|
|
335
|
+
* Selected, the letters sit on a soft wash of their own ink (as selected prose does) and, where the engine
|
|
336
|
+
* lets a selection recolor clipped text (Chromium), turn solid; elsewhere the engraving reads on the wash.
|
|
337
|
+
*/
|
|
338
|
+
&::selection {
|
|
339
|
+
color: var(--blog-text);
|
|
340
|
+
background-color: color-mix(in oklab, var(--blog-text) 16%, transparent);
|
|
341
|
+
-webkit-text-fill-color: var(--blog-text);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/* ---------- Preferences ---------- */
|
|
347
|
+
@media (prefers-contrast: more) {
|
|
348
|
+
.blog-materials {
|
|
349
|
+
--blog-text-quiet: var(--blog-text-body);
|
|
350
|
+
--blog-text-faint: var(--blog-text-body);
|
|
351
|
+
--blog-contour: var(--color-line-control);
|
|
352
|
+
--blog-rule: color-mix(in oklab, var(--color-line-control) 70%, transparent);
|
|
353
|
+
--blog-guide: color-mix(in oklab, var(--blog-text) 16%, var(--blog-ground));
|
|
354
|
+
--blog-cross: var(--color-line-control);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* The engraving keeps its grain but reads as strongly as body text. */
|
|
358
|
+
.blog-hatch-text {
|
|
359
|
+
--blog-hatch-ink: var(--blog-text);
|
|
360
|
+
--blog-hatch-fill: color-mix(in oklab, var(--blog-text) 64%, transparent);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
@media (prefers-reduced-motion: reduce) {
|
|
365
|
+
.blog-plate {
|
|
366
|
+
transition: none;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
@media (forced-colors: active), print {
|
|
371
|
+
.blog-rails::after,
|
|
372
|
+
.blog-rails-rule::before,
|
|
373
|
+
.blog-marks::before {
|
|
374
|
+
display: none;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.blog-hatch-text,
|
|
378
|
+
.blog-stone-text {
|
|
379
|
+
color: CanvasText;
|
|
380
|
+
background-image: none;
|
|
381
|
+
-webkit-text-fill-color: currentColor;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.blog-plate {
|
|
385
|
+
border: 1px solid CanvasText;
|
|
386
|
+
color: CanvasText;
|
|
387
|
+
background-color: Canvas;
|
|
388
|
+
box-shadow: none;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.blog-signal {
|
|
392
|
+
background-color: CanvasText;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.blog-avatar {
|
|
396
|
+
outline: 2px solid Canvas;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|