@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,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "flex-grow",
|
|
4
|
+
"id": "let-an-item-grow",
|
|
5
|
+
"title": "Let an item grow",
|
|
6
|
+
"html": [
|
|
7
|
+
"<div id=\"layout\" class=\"flex gap-md\">\n <div id=\"target\" class=\"(flex-basis:4rem) grow(1) (height:6rem) min-w(0) p-sm\">Grow 1</div>\n <div id=\"peer\" class=\"(flex-basis:4rem) grow(2) (height:6rem) min-w(0) p-sm\">Grow 2</div>\n</div>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"flex",
|
|
12
|
+
"gap-md",
|
|
13
|
+
"(flex-basis:4rem)",
|
|
14
|
+
"grow(1)",
|
|
15
|
+
"(height:6rem)",
|
|
16
|
+
"min-w(0)",
|
|
17
|
+
"p-sm",
|
|
18
|
+
"grow(2)"
|
|
19
|
+
],
|
|
20
|
+
"classLists": [
|
|
21
|
+
"flex gap-md",
|
|
22
|
+
"(flex-basis:4rem) grow(1) (height:6rem) min-w(0) p-sm",
|
|
23
|
+
"(flex-basis:4rem) grow(2) (height:6rem) min-w(0) p-sm"
|
|
24
|
+
],
|
|
25
|
+
"highlighted": []
|
|
26
|
+
}
|
|
27
|
+
]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "font-style",
|
|
4
|
+
"id": "reset-font-style",
|
|
5
|
+
"title": "Reset font style",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- An upright child inside italic text -->\n<p id=\"context\" class=\"m(0) italic font-xl leading-md\">A slanted phrase with <span id=\"target\" class=\"(font-style:normal)\">an upright detail</span>.</p>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"m(0)",
|
|
12
|
+
"italic",
|
|
13
|
+
"font-xl",
|
|
14
|
+
"leading-md",
|
|
15
|
+
"(font-style:normal)"
|
|
16
|
+
],
|
|
17
|
+
"classLists": [
|
|
18
|
+
"m(0) italic font-xl leading-md",
|
|
19
|
+
"(font-style:normal)"
|
|
20
|
+
],
|
|
21
|
+
"highlighted": []
|
|
22
|
+
}
|
|
23
|
+
]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "font-variant-numeric",
|
|
4
|
+
"id": "align-tabular-numbers",
|
|
5
|
+
"title": "Align tabular numbers",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- proportional-nums -->\n<div id=\"target\" class=\"(font-variant-numeric:proportional-nums) font-3xl leading-sm\"><span id=\"ones\" class=\"inline-block\">11111</span><br><span id=\"eights\" class=\"inline-block\">88888</span></div>",
|
|
8
|
+
"<!-- tabular-nums -->\n<div id=\"target\" class=\"(font-variant-numeric:tabular-nums) font-3xl leading-sm\"><span id=\"ones\" class=\"inline-block\">11111</span><br><span id=\"eights\" class=\"inline-block\">88888</span></div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"(font-variant-numeric:proportional-nums)",
|
|
13
|
+
"font-3xl",
|
|
14
|
+
"leading-sm",
|
|
15
|
+
"inline-block",
|
|
16
|
+
"(font-variant-numeric:tabular-nums)"
|
|
17
|
+
],
|
|
18
|
+
"classLists": [
|
|
19
|
+
"(font-variant-numeric:proportional-nums) font-3xl leading-sm",
|
|
20
|
+
"inline-block",
|
|
21
|
+
"inline-block",
|
|
22
|
+
"(font-variant-numeric:tabular-nums) font-3xl leading-sm",
|
|
23
|
+
"inline-block",
|
|
24
|
+
"inline-block"
|
|
25
|
+
],
|
|
26
|
+
"highlighted": []
|
|
27
|
+
}
|
|
28
|
+
]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "grid-auto-columns",
|
|
4
|
+
"id": "size-implicit-columns",
|
|
5
|
+
"title": "Size implicit columns",
|
|
6
|
+
"html": [
|
|
7
|
+
"<div id=\"layout\" class=\"grid (grid-auto-columns:72px) (grid-auto-flow:column) (grid-template-columns:80px) (grid-template-rows:64px) gap-md (width:17.5rem) max-w-full\">\n <div id=\"peer\" class=\"p-sm\">80px</div>\n <div id=\"target\" class=\"p-sm\">72px</div>\n <div id=\"item-3\" class=\"p-sm\">72px</div>\n</div>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"grid",
|
|
12
|
+
"(grid-auto-columns:72px)",
|
|
13
|
+
"(grid-auto-flow:column)",
|
|
14
|
+
"(grid-template-columns:80px)",
|
|
15
|
+
"(grid-template-rows:64px)",
|
|
16
|
+
"gap-md",
|
|
17
|
+
"(width:17.5rem)",
|
|
18
|
+
"max-w-full",
|
|
19
|
+
"p-sm"
|
|
20
|
+
],
|
|
21
|
+
"classLists": [
|
|
22
|
+
"grid (grid-auto-columns:72px) (grid-auto-flow:column) (grid-template-columns:80px) (grid-template-rows:64px) gap-md (width:17.5rem) max-w-full",
|
|
23
|
+
"p-sm",
|
|
24
|
+
"p-sm",
|
|
25
|
+
"p-sm"
|
|
26
|
+
],
|
|
27
|
+
"highlighted": []
|
|
28
|
+
}
|
|
29
|
+
]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "grid-auto-flow",
|
|
4
|
+
"id": "fill-gaps-densely",
|
|
5
|
+
"title": "Fill gaps densely",
|
|
6
|
+
"html": [
|
|
7
|
+
"<div id=\"layout\" class=\"grid grid-cols(3) (grid-auto-flow:row) (grid-auto-rows:48px) gap-md (width:17.5rem) max-w-full\">\n <button id=\"target\" class=\"grid-col-span(2) p-sm\" type=\"button\" tabindex=\"0\">01</button>\n <button id=\"peer\" class=\"grid-col-span(2) p-sm\" type=\"button\" tabindex=\"0\">02</button>\n <button id=\"item-3\" class=\"p-sm\" type=\"button\" tabindex=\"0\">03</button>\n <button id=\"item-4\" class=\"p-sm\" type=\"button\" tabindex=\"0\">04</button>\n</div>",
|
|
8
|
+
"<div id=\"layout\" class=\"grid grid-cols(3) (grid-auto-flow:row|dense) (grid-auto-rows:48px) gap-md (width:17.5rem) max-w-full\">\n <button id=\"target\" class=\"grid-col-span(2) p-sm\" type=\"button\" tabindex=\"0\">01</button>\n <button id=\"peer\" class=\"grid-col-span(2) p-sm\" type=\"button\" tabindex=\"0\">02</button>\n <button id=\"item-3\" class=\"p-sm\" type=\"button\" tabindex=\"0\">03</button>\n <button id=\"item-4\" class=\"p-sm\" type=\"button\" tabindex=\"0\">04</button>\n</div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"grid",
|
|
13
|
+
"grid-cols(3)",
|
|
14
|
+
"(grid-auto-flow:row)",
|
|
15
|
+
"(grid-auto-rows:48px)",
|
|
16
|
+
"gap-md",
|
|
17
|
+
"(width:17.5rem)",
|
|
18
|
+
"max-w-full",
|
|
19
|
+
"grid-col-span(2)",
|
|
20
|
+
"p-sm",
|
|
21
|
+
"(grid-auto-flow:row|dense)"
|
|
22
|
+
],
|
|
23
|
+
"classLists": [
|
|
24
|
+
"grid grid-cols(3) (grid-auto-flow:row) (grid-auto-rows:48px) gap-md (width:17.5rem) max-w-full",
|
|
25
|
+
"grid-col-span(2) p-sm",
|
|
26
|
+
"grid-col-span(2) p-sm",
|
|
27
|
+
"p-sm",
|
|
28
|
+
"p-sm",
|
|
29
|
+
"grid grid-cols(3) (grid-auto-flow:row|dense) (grid-auto-rows:48px) gap-md (width:17.5rem) max-w-full",
|
|
30
|
+
"grid-col-span(2) p-sm",
|
|
31
|
+
"grid-col-span(2) p-sm",
|
|
32
|
+
"p-sm",
|
|
33
|
+
"p-sm"
|
|
34
|
+
],
|
|
35
|
+
"highlighted": []
|
|
36
|
+
}
|
|
37
|
+
]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "grid-template-areas",
|
|
4
|
+
"id": "apply-conditionally",
|
|
5
|
+
"title": "Apply conditionally",
|
|
6
|
+
"html": [
|
|
7
|
+
"<div id=\"layout\" class=\"grid (grid-template-areas:'head'|'nav'|'main') (grid-template-columns:1fr) (grid-template-rows:48px|48px|96px) gap-md (width:17.5rem) max-w-full (grid-template-areas:'head\\20head'|'nav\\20main')@sm (grid-template-columns:80px|1fr)@sm (grid-template-rows:48px|96px)@sm\">\n <header id=\"target\" class=\"(grid-area:head) p-sm\">Header</header>\n <aside id=\"peer\" class=\"(grid-area:nav) p-sm\">Nav</aside>\n <section id=\"item-3\" class=\"(grid-area:main) p-sm\">Content</section>\n</div>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"grid",
|
|
12
|
+
"(grid-template-areas:'head'|'nav'|'main')",
|
|
13
|
+
"(grid-template-columns:1fr)",
|
|
14
|
+
"(grid-template-rows:48px|48px|96px)",
|
|
15
|
+
"gap-md",
|
|
16
|
+
"(width:17.5rem)",
|
|
17
|
+
"max-w-full",
|
|
18
|
+
"(grid-template-areas:'head\\20head'|'nav\\20main')@sm",
|
|
19
|
+
"(grid-template-columns:80px|1fr)@sm",
|
|
20
|
+
"(grid-template-rows:48px|96px)@sm",
|
|
21
|
+
"(grid-area:head)",
|
|
22
|
+
"p-sm",
|
|
23
|
+
"(grid-area:nav)",
|
|
24
|
+
"(grid-area:main)"
|
|
25
|
+
],
|
|
26
|
+
"classLists": [
|
|
27
|
+
"grid (grid-template-areas:'head'|'nav'|'main') (grid-template-columns:1fr) (grid-template-rows:48px|48px|96px) gap-md (width:17.5rem) max-w-full (grid-template-areas:'head\\20head'|'nav\\20main')@sm (grid-template-columns:80px|1fr)@sm (grid-template-rows:48px|96px)@sm",
|
|
28
|
+
"(grid-area:head) p-sm",
|
|
29
|
+
"(grid-area:nav) p-sm",
|
|
30
|
+
"(grid-area:main) p-sm"
|
|
31
|
+
],
|
|
32
|
+
"highlighted": []
|
|
33
|
+
}
|
|
34
|
+
]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "grid-template-columns",
|
|
4
|
+
"id": "use-minmax",
|
|
5
|
+
"title": "Control a track’s minimum",
|
|
6
|
+
"html": [
|
|
7
|
+
"<div id=\"layout\" class=\"grid (grid-auto-rows:64px) (grid-template-columns:1fr|2fr) gap-md (width:17.5rem) max-w-full\">\n <div id=\"target\" class=\"overflow-clip p-sm\"><span class=\"block (width:12rem)\">192px content</span></div>\n <div id=\"peer\" class=\"p-sm\">2</div>\n</div>",
|
|
8
|
+
"<div id=\"layout\" class=\"grid (grid-auto-rows:64px) (grid-template-columns:minmax(0,1fr)|2fr) gap-md (width:17.5rem) max-w-full\">\n <div id=\"target\" class=\"overflow-clip p-sm\"><span class=\"block (width:12rem)\">192px content</span></div>\n <div id=\"peer\" class=\"p-sm\">2</div>\n</div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"grid",
|
|
13
|
+
"(grid-auto-rows:64px)",
|
|
14
|
+
"(grid-template-columns:1fr|2fr)",
|
|
15
|
+
"gap-md",
|
|
16
|
+
"(width:17.5rem)",
|
|
17
|
+
"max-w-full",
|
|
18
|
+
"overflow-clip",
|
|
19
|
+
"p-sm",
|
|
20
|
+
"block",
|
|
21
|
+
"(width:12rem)",
|
|
22
|
+
"(grid-template-columns:minmax(0,1fr)|2fr)"
|
|
23
|
+
],
|
|
24
|
+
"classLists": [
|
|
25
|
+
"grid (grid-auto-rows:64px) (grid-template-columns:1fr|2fr) gap-md (width:17.5rem) max-w-full",
|
|
26
|
+
"overflow-clip p-sm",
|
|
27
|
+
"block (width:12rem)",
|
|
28
|
+
"p-sm",
|
|
29
|
+
"grid (grid-auto-rows:64px) (grid-template-columns:minmax(0,1fr)|2fr) gap-md (width:17.5rem) max-w-full",
|
|
30
|
+
"overflow-clip p-sm",
|
|
31
|
+
"block (width:12rem)",
|
|
32
|
+
"p-sm"
|
|
33
|
+
],
|
|
34
|
+
"highlighted": []
|
|
35
|
+
}
|
|
36
|
+
]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "isolation",
|
|
4
|
+
"id": "create-a-stacking-context",
|
|
5
|
+
"title": "Create a stacking context",
|
|
6
|
+
"html": [
|
|
7
|
+
"<div class=\"p-md bg-blue-20\">\n <section class=\"isolate\">\n <div class=\"p-lg bg-violet-50 (mix-blend-mode:multiply)\">Blend layer</div>\n </section>\n</div>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"p-md",
|
|
12
|
+
"bg-blue-20",
|
|
13
|
+
"isolate",
|
|
14
|
+
"p-lg",
|
|
15
|
+
"bg-violet-50",
|
|
16
|
+
"(mix-blend-mode:multiply)"
|
|
17
|
+
],
|
|
18
|
+
"classLists": [
|
|
19
|
+
"p-md bg-blue-20",
|
|
20
|
+
"isolate",
|
|
21
|
+
"p-lg bg-violet-50 (mix-blend-mode:multiply)"
|
|
22
|
+
],
|
|
23
|
+
"highlighted": []
|
|
24
|
+
}
|
|
25
|
+
]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "justify-content",
|
|
4
|
+
"id": "use-explicit-css-values",
|
|
5
|
+
"title": "Keep overflowing content reachable",
|
|
6
|
+
"html": [
|
|
7
|
+
"<div id=\"layout\" class=\"flex overflow-auto (justify-content:safe|center) (width:15rem) max-w-full\" tabindex=\"0\" role=\"region\" aria-label=\"Safe centered overflow\">\n <div id=\"target\" class=\"flex (flex:none) justify-between (height:4rem) (width:17.5rem) p-xs\"><span>Start</span><span>End</span></div>\n</div>",
|
|
8
|
+
"<div id=\"layout\" class=\"flex overflow-auto (justify-content:unsafe|center) (width:15rem) max-w-full\" tabindex=\"0\" role=\"region\" aria-label=\"Unsafe centered overflow\">\n <div id=\"target\" class=\"flex (flex:none) justify-between (height:4rem) (width:17.5rem) p-xs\"><span>Start</span><span>End</span></div>\n</div>",
|
|
9
|
+
"<div id=\"layout\" class=\"flex overflow-auto (justify-content:safe|center) (width:15rem) max-w-full\" tabindex=\"0\" role=\"region\" aria-label=\"Safe centered fitting content\">\n <div id=\"target\" class=\"flex (flex:none) justify-between (height:4rem) (width:12rem) p-xs\"><span>Start</span><span>End</span></div>\n</div>"
|
|
10
|
+
],
|
|
11
|
+
"css": "",
|
|
12
|
+
"classes": [
|
|
13
|
+
"flex",
|
|
14
|
+
"overflow-auto",
|
|
15
|
+
"(justify-content:safe|center)",
|
|
16
|
+
"(width:15rem)",
|
|
17
|
+
"max-w-full",
|
|
18
|
+
"(flex:none)",
|
|
19
|
+
"justify-between",
|
|
20
|
+
"(height:4rem)",
|
|
21
|
+
"(width:17.5rem)",
|
|
22
|
+
"p-xs",
|
|
23
|
+
"(justify-content:unsafe|center)",
|
|
24
|
+
"(width:12rem)"
|
|
25
|
+
],
|
|
26
|
+
"classLists": [
|
|
27
|
+
"flex overflow-auto (justify-content:safe|center) (width:15rem) max-w-full",
|
|
28
|
+
"flex (flex:none) justify-between (height:4rem) (width:17.5rem) p-xs",
|
|
29
|
+
"flex overflow-auto (justify-content:unsafe|center) (width:15rem) max-w-full",
|
|
30
|
+
"flex (flex:none) justify-between (height:4rem) (width:17.5rem) p-xs",
|
|
31
|
+
"flex overflow-auto (justify-content:safe|center) (width:15rem) max-w-full",
|
|
32
|
+
"flex (flex:none) justify-between (height:4rem) (width:12rem) p-xs"
|
|
33
|
+
],
|
|
34
|
+
"highlighted": []
|
|
35
|
+
}
|
|
36
|
+
]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "line-height",
|
|
4
|
+
"id": "use-explicit-values",
|
|
5
|
+
"title": "Use explicit values",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Unitless · 1.5 -->\n<div id=\"context\" class=\"font-md (line-height:1.5)\">\n <p class=\"m(0)\">Parent at 16px</p>\n <p id=\"target\" class=\"m(0) font-2xl\">Child at 24px<br>Second line</p>\n</div>",
|
|
8
|
+
"<!-- Fixed length · 24px -->\n<div id=\"context\" class=\"font-md (line-height:24px)\">\n <p class=\"m(0)\">Parent at 16px</p>\n <p id=\"target\" class=\"m(0) font-2xl\">Child at 24px<br>Second line</p>\n</div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"font-md",
|
|
13
|
+
"(line-height:1.5)",
|
|
14
|
+
"m(0)",
|
|
15
|
+
"font-2xl",
|
|
16
|
+
"(line-height:24px)"
|
|
17
|
+
],
|
|
18
|
+
"classLists": [
|
|
19
|
+
"font-md (line-height:1.5)",
|
|
20
|
+
"m(0)",
|
|
21
|
+
"m(0) font-2xl",
|
|
22
|
+
"font-md (line-height:24px)",
|
|
23
|
+
"m(0)",
|
|
24
|
+
"m(0) font-2xl"
|
|
25
|
+
],
|
|
26
|
+
"highlighted": []
|
|
27
|
+
}
|
|
28
|
+
]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "list-style-position",
|
|
4
|
+
"id": "place-markers-inside-the-content-box",
|
|
5
|
+
"title": "Place markers inside the content box",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Outside · hanging marker -->\n<ul id=\"target\" class=\"w(260) max-w-full m(0) pl-lg font-md leading-lg\n (list-style-type:disc) (list-style-position:outside) (list-style-image:initial)\">\n <li class=\"mb-2xs\">Collect references</li>\n <li class=\"mb-2xs\">Compare the spacing across every screen size.</li>\n <li class=\"mb-2xs\">Review the composition</li>\n</ul>",
|
|
8
|
+
"<!-- Inside · marker on first line -->\n<ul id=\"target\" class=\"w(260) max-w-full m(0) pl-lg font-md leading-lg\n (list-style-type:disc) (list-style-position:outside) (list-style-image:initial) (list-style-position:inside)\">\n <li class=\"mb-2xs\">Collect references</li>\n <li class=\"mb-2xs\">Compare the spacing across every screen size.</li>\n <li class=\"mb-2xs\">Review the composition</li>\n</ul>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"w(260)",
|
|
13
|
+
"max-w-full",
|
|
14
|
+
"m(0)",
|
|
15
|
+
"pl-lg",
|
|
16
|
+
"font-md",
|
|
17
|
+
"leading-lg",
|
|
18
|
+
"(list-style-type:disc)",
|
|
19
|
+
"(list-style-position:outside)",
|
|
20
|
+
"(list-style-image:initial)",
|
|
21
|
+
"mb-2xs",
|
|
22
|
+
"(list-style-position:inside)"
|
|
23
|
+
],
|
|
24
|
+
"classLists": [
|
|
25
|
+
"w(260) max-w-full m(0) pl-lg font-md leading-lg (list-style-type:disc) (list-style-position:outside) (list-style-image:initial)",
|
|
26
|
+
"mb-2xs",
|
|
27
|
+
"mb-2xs",
|
|
28
|
+
"mb-2xs",
|
|
29
|
+
"w(260) max-w-full m(0) pl-lg font-md leading-lg (list-style-type:disc) (list-style-position:outside) (list-style-image:initial) (list-style-position:inside)",
|
|
30
|
+
"mb-2xs",
|
|
31
|
+
"mb-2xs",
|
|
32
|
+
"mb-2xs"
|
|
33
|
+
],
|
|
34
|
+
"highlighted": []
|
|
35
|
+
}
|
|
36
|
+
]
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "mask-image",
|
|
4
|
+
"id": "fade-overflowing-media",
|
|
5
|
+
"title": "Fade overflowing media",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Scrollable list · fixed lower fade -->\n<div class=\"w(240) max-w-full\">\n <div class=\"outline(2):focus-within outline-solid:focus-within outline-blue:focus-within\n outline-offset(3):focus-within\">\n <div id=\"target\" role=\"region\" tabindex=\"0\"\n aria-label=\"Layer list\"\n aria-describedby=\"scroll-help\"\n class=\"overflow-auto h(160) bg-surface-base\n (mask-image:linear-gradient(to|bottom,black|60%,transparent))\n (mask-mode:alpha) (outline:none):focus-visible\">\n <ol class=\"m(0) pb-3xl pl-lg pr-sm font-sm fg-text-body\">\n <li id=\"first-layer\" class=\"py-xs\">Outline</li>\n <li class=\"py-xs\">Surface</li>\n <li class=\"py-xs\">Foreground</li>\n <li class=\"py-xs\">Accent</li>\n <li class=\"py-xs\">Annotation</li>\n <li class=\"py-xs\">Selection</li>\n <li class=\"py-xs\">Focus</li>\n <li id=\"last-layer\" class=\"py-xs\">Export</li>\n </ol>\n </div>\n </div>\n <p id=\"scroll-help\" class=\"mb(0) mt-sm font-sm fg-text-body\">\n Eight layers. Scroll or follow the links below.\n </p>\n <nav aria-label=\"Layer navigation\"\n class=\"flex flex-wrap gap-md mt-sm font-sm\">\n <a href=\"#first-layer\">First layer</a>\n <a href=\"#last-layer\">Last layer</a>\n </nav>\n</div>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"w(240)",
|
|
12
|
+
"max-w-full",
|
|
13
|
+
"outline(2):focus-within",
|
|
14
|
+
"outline-solid:focus-within",
|
|
15
|
+
"outline-blue:focus-within",
|
|
16
|
+
"outline-offset(3):focus-within",
|
|
17
|
+
"overflow-auto",
|
|
18
|
+
"h(160)",
|
|
19
|
+
"bg-surface-base",
|
|
20
|
+
"(mask-image:linear-gradient(to|bottom,black|60%,transparent))",
|
|
21
|
+
"(mask-mode:alpha)",
|
|
22
|
+
"(outline:none):focus-visible",
|
|
23
|
+
"m(0)",
|
|
24
|
+
"pb-3xl",
|
|
25
|
+
"pl-lg",
|
|
26
|
+
"pr-sm",
|
|
27
|
+
"font-sm",
|
|
28
|
+
"fg-text-body",
|
|
29
|
+
"py-xs",
|
|
30
|
+
"mb(0)",
|
|
31
|
+
"mt-sm",
|
|
32
|
+
"flex",
|
|
33
|
+
"flex-wrap",
|
|
34
|
+
"gap-md"
|
|
35
|
+
],
|
|
36
|
+
"classLists": [
|
|
37
|
+
"w(240) max-w-full",
|
|
38
|
+
"outline(2):focus-within outline-solid:focus-within outline-blue:focus-within outline-offset(3):focus-within",
|
|
39
|
+
"overflow-auto h(160) bg-surface-base (mask-image:linear-gradient(to|bottom,black|60%,transparent)) (mask-mode:alpha) (outline:none):focus-visible",
|
|
40
|
+
"m(0) pb-3xl pl-lg pr-sm font-sm fg-text-body",
|
|
41
|
+
"py-xs",
|
|
42
|
+
"py-xs",
|
|
43
|
+
"py-xs",
|
|
44
|
+
"py-xs",
|
|
45
|
+
"py-xs",
|
|
46
|
+
"py-xs",
|
|
47
|
+
"py-xs",
|
|
48
|
+
"py-xs",
|
|
49
|
+
"mb(0) mt-sm font-sm fg-text-body",
|
|
50
|
+
"flex flex-wrap gap-md mt-sm font-sm"
|
|
51
|
+
],
|
|
52
|
+
"highlighted": []
|
|
53
|
+
}
|
|
54
|
+
]
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "min-width",
|
|
4
|
+
"id": "allow-flexible-children-to-shrink",
|
|
5
|
+
"title": "Allow flexible children to shrink",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Automatic minimum -->\n<div id=\"layout\" class=\"flex gap-md (width:15rem)\" role=\"group\" aria-label=\"Available space\">\n <div id=\"peer\" class=\"grow(0) shrink(0) basis(48) p-sm\">01</div>\n <div id=\"target\" class=\"overflow-clip grow(1) shrink(1) basis(0)\"><span id=\"item-3\" class=\"block (width:14rem) p-sm\">Unbreakable content</span></div>\n</div>",
|
|
8
|
+
"<!-- Zero minimum -->\n<div id=\"layout\" class=\"flex gap-md (width:15rem)\" role=\"group\" aria-label=\"Available space\">\n <div id=\"peer\" class=\"grow(0) shrink(0) basis(48) p-sm\">01</div>\n <div id=\"target\" class=\"overflow-clip grow(1) shrink(1) basis(0) min-w(0)\"><span id=\"item-3\" class=\"block (width:14rem) p-sm\">Unbreakable content</span></div>\n</div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"flex",
|
|
13
|
+
"gap-md",
|
|
14
|
+
"(width:15rem)",
|
|
15
|
+
"grow(0)",
|
|
16
|
+
"shrink(0)",
|
|
17
|
+
"basis(48)",
|
|
18
|
+
"p-sm",
|
|
19
|
+
"overflow-clip",
|
|
20
|
+
"grow(1)",
|
|
21
|
+
"shrink(1)",
|
|
22
|
+
"basis(0)",
|
|
23
|
+
"block",
|
|
24
|
+
"(width:14rem)",
|
|
25
|
+
"min-w(0)"
|
|
26
|
+
],
|
|
27
|
+
"classLists": [
|
|
28
|
+
"flex gap-md (width:15rem)",
|
|
29
|
+
"grow(0) shrink(0) basis(48) p-sm",
|
|
30
|
+
"overflow-clip grow(1) shrink(1) basis(0)",
|
|
31
|
+
"block (width:14rem) p-sm",
|
|
32
|
+
"flex gap-md (width:15rem)",
|
|
33
|
+
"grow(0) shrink(0) basis(48) p-sm",
|
|
34
|
+
"overflow-clip grow(1) shrink(1) basis(0) min-w(0)",
|
|
35
|
+
"block (width:14rem) p-sm"
|
|
36
|
+
],
|
|
37
|
+
"highlighted": []
|
|
38
|
+
}
|
|
39
|
+
]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "mix-blend-mode",
|
|
4
|
+
"id": "blend-an-element-with-its-backdrop",
|
|
5
|
+
"title": "Blend an element with its backdrop",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Normal · one foreground color -->\n<div class=\"relative isolate h(160) w(240)\n max-w-full (background-color:#e2e8f0)\">\n <div aria-hidden=\"true\"\n class=\"absolute bottom(0) right(0) top(0) w(120) (background-color:#c4b5fd)\"></div>\n <div id=\"target\" role=\"img\"\n aria-label=\"Blue foreground across two backdrops\"\n class=\"absolute left(72) top-xl w(96) h(96) r-lg\n (background-color:#2563eb) (mix-blend-mode:normal)\"></div>\n</div>",
|
|
8
|
+
"<!-- Multiply · combines with both backdrops -->\n<div class=\"relative isolate h(160) w(240)\n max-w-full (background-color:#e2e8f0)\">\n <div aria-hidden=\"true\"\n class=\"absolute bottom(0) right(0) top(0) w(120) (background-color:#c4b5fd)\"></div>\n <div id=\"target\" role=\"img\"\n aria-label=\"Blue foreground across two backdrops\"\n class=\"absolute left(72) top-xl w(96) h(96) r-lg\n (background-color:#2563eb) (mix-blend-mode:multiply)\"></div>\n</div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"relative",
|
|
13
|
+
"isolate",
|
|
14
|
+
"h(160)",
|
|
15
|
+
"w(240)",
|
|
16
|
+
"max-w-full",
|
|
17
|
+
"(background-color:#e2e8f0)",
|
|
18
|
+
"absolute",
|
|
19
|
+
"bottom(0)",
|
|
20
|
+
"right(0)",
|
|
21
|
+
"top(0)",
|
|
22
|
+
"w(120)",
|
|
23
|
+
"(background-color:#c4b5fd)",
|
|
24
|
+
"left(72)",
|
|
25
|
+
"top-xl",
|
|
26
|
+
"w(96)",
|
|
27
|
+
"h(96)",
|
|
28
|
+
"r-lg",
|
|
29
|
+
"(background-color:#2563eb)",
|
|
30
|
+
"(mix-blend-mode:normal)",
|
|
31
|
+
"(mix-blend-mode:multiply)"
|
|
32
|
+
],
|
|
33
|
+
"classLists": [
|
|
34
|
+
"relative isolate h(160) w(240) max-w-full (background-color:#e2e8f0)",
|
|
35
|
+
"absolute bottom(0) right(0) top(0) w(120) (background-color:#c4b5fd)",
|
|
36
|
+
"absolute left(72) top-xl w(96) h(96) r-lg (background-color:#2563eb) (mix-blend-mode:normal)",
|
|
37
|
+
"relative isolate h(160) w(240) max-w-full (background-color:#e2e8f0)",
|
|
38
|
+
"absolute bottom(0) right(0) top(0) w(120) (background-color:#c4b5fd)",
|
|
39
|
+
"absolute left(72) top-xl w(96) h(96) r-lg (background-color:#2563eb) (mix-blend-mode:multiply)"
|
|
40
|
+
],
|
|
41
|
+
"highlighted": []
|
|
42
|
+
}
|
|
43
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "object-fit",
|
|
4
|
+
"id": "cover-a-fixed-frame",
|
|
5
|
+
"title": "Cover a fixed frame",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Cover · preserved proportions -->\n<img id=\"target\" src=\"/demo/landscape.svg\"\n width=\"320\" height=\"200\"\n alt=\"Blue and violet mountains beneath a yellow sun\"\n class=\"block w(220) h(220) max-w-full\n bg-surface-base object-cover object-right\" />",
|
|
8
|
+
"<!-- Fill · stretched to the square -->\n<img id=\"target\" src=\"/demo/landscape.svg\"\n width=\"320\" height=\"200\"\n alt=\"Blue and violet mountains beneath a yellow sun\"\n class=\"block w(220) h(220) max-w-full\n bg-surface-base object-fill object-right\" />"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"block",
|
|
13
|
+
"w(220)",
|
|
14
|
+
"h(220)",
|
|
15
|
+
"max-w-full",
|
|
16
|
+
"bg-surface-base",
|
|
17
|
+
"object-cover",
|
|
18
|
+
"object-right",
|
|
19
|
+
"object-fill"
|
|
20
|
+
],
|
|
21
|
+
"classLists": [
|
|
22
|
+
"block w(220) h(220) max-w-full bg-surface-base object-cover object-right",
|
|
23
|
+
"block w(220) h(220) max-w-full bg-surface-base object-fill object-right"
|
|
24
|
+
],
|
|
25
|
+
"highlighted": []
|
|
26
|
+
}
|
|
27
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "object-position",
|
|
4
|
+
"id": "use-precise-positions",
|
|
5
|
+
"title": "Use precise positions",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- 50% 25% · 12.5px top crop -->\n<img id=\"target\" src=\"/demo/landscape.svg\"\n width=\"320\" height=\"200\"\n alt=\"Blue and violet mountains beneath a yellow sun\"\n class=\"block h(100) w(240) max-w-full\n bg-surface-base object-cover\n (object-position:50%|25%)\" />",
|
|
8
|
+
"<!-- Left 12px · top 8px -->\n<img id=\"target\" src=\"/demo/landscape.svg\"\n width=\"320\" height=\"200\"\n alt=\"Blue and violet mountains beneath a yellow sun\"\n class=\"block h(100) w(240) max-w-full\n bg-surface-base object-cover\n (object-position:left|12px|top|8px)\" />"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"block",
|
|
13
|
+
"h(100)",
|
|
14
|
+
"w(240)",
|
|
15
|
+
"max-w-full",
|
|
16
|
+
"bg-surface-base",
|
|
17
|
+
"object-cover",
|
|
18
|
+
"(object-position:50%|25%)",
|
|
19
|
+
"(object-position:left|12px|top|8px)"
|
|
20
|
+
],
|
|
21
|
+
"classLists": [
|
|
22
|
+
"block h(100) w(240) max-w-full bg-surface-base object-cover (object-position:50%|25%)",
|
|
23
|
+
"block h(100) w(240) max-w-full bg-surface-base object-cover (object-position:left|12px|top|8px)"
|
|
24
|
+
],
|
|
25
|
+
"highlighted": []
|
|
26
|
+
}
|
|
27
|
+
]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "opacity",
|
|
4
|
+
"id": "fade-an-entire-element",
|
|
5
|
+
"title": "Fade an entire element",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Opaque · complete group -->\n<details class=\"w(240) max-w-full\">\n <summary id=\"target\"\n class=\"p-md r-sm font-md bg-blue-60 fg-white\n (opacity:1) (cursor:pointer)\">\n Preview details\n </summary>\n <p class=\"mb(0) mt-sm font-sm fg-text-body\">\n The layer is ready for review.\n </p>\n</details>",
|
|
8
|
+
"<!-- Half opacity · same interaction -->\n<details class=\"w(240) max-w-full\">\n <summary id=\"target\"\n class=\"p-md r-sm font-md bg-blue-60 fg-white\n (opacity:.5) (cursor:pointer)\">\n Preview details\n </summary>\n <p class=\"mb(0) mt-sm font-sm fg-text-body\">\n The layer is ready for review.\n </p>\n</details>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"w(240)",
|
|
13
|
+
"max-w-full",
|
|
14
|
+
"p-md",
|
|
15
|
+
"r-sm",
|
|
16
|
+
"font-md",
|
|
17
|
+
"bg-blue-60",
|
|
18
|
+
"fg-white",
|
|
19
|
+
"(opacity:1)",
|
|
20
|
+
"(cursor:pointer)",
|
|
21
|
+
"mb(0)",
|
|
22
|
+
"mt-sm",
|
|
23
|
+
"font-sm",
|
|
24
|
+
"fg-text-body",
|
|
25
|
+
"(opacity:.5)"
|
|
26
|
+
],
|
|
27
|
+
"classLists": [
|
|
28
|
+
"w(240) max-w-full",
|
|
29
|
+
"p-md r-sm font-md bg-blue-60 fg-white (opacity:1) (cursor:pointer)",
|
|
30
|
+
"mb(0) mt-sm font-sm fg-text-body",
|
|
31
|
+
"w(240) max-w-full",
|
|
32
|
+
"p-md r-sm font-md bg-blue-60 fg-white (opacity:.5) (cursor:pointer)",
|
|
33
|
+
"mb(0) mt-sm font-sm fg-text-body"
|
|
34
|
+
],
|
|
35
|
+
"highlighted": []
|
|
36
|
+
}
|
|
37
|
+
]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "order",
|
|
4
|
+
"id": "keep-source-order-meaningful",
|
|
5
|
+
"title": "Keep source order meaningful",
|
|
6
|
+
"html": [
|
|
7
|
+
"<div id=\"layout\" class=\"flex gap-sm\">\n <button id=\"target\" type=\"button\" tabindex=\"0\" class=\"(flex:none) order(2) (height:4rem) (width:5rem) p-xs\">Source 1</button>\n <button id=\"peer\" type=\"button\" tabindex=\"0\" class=\"(flex:none) order(1) (height:4rem) (width:5rem) p-xs\">Source 2</button>\n <button id=\"item-3\" type=\"button\" tabindex=\"0\" class=\"(flex:none) (height:4rem) (width:5rem) p-xs\">Source 3</button>\n</div>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"flex",
|
|
12
|
+
"gap-sm",
|
|
13
|
+
"(flex:none)",
|
|
14
|
+
"order(2)",
|
|
15
|
+
"(height:4rem)",
|
|
16
|
+
"(width:5rem)",
|
|
17
|
+
"p-xs",
|
|
18
|
+
"order(1)"
|
|
19
|
+
],
|
|
20
|
+
"classLists": [
|
|
21
|
+
"flex gap-sm",
|
|
22
|
+
"(flex:none) order(2) (height:4rem) (width:5rem) p-xs",
|
|
23
|
+
"(flex:none) order(1) (height:4rem) (width:5rem) p-xs",
|
|
24
|
+
"(flex:none) (height:4rem) (width:5rem) p-xs"
|
|
25
|
+
],
|
|
26
|
+
"highlighted": []
|
|
27
|
+
}
|
|
28
|
+
]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "overflow-wrap",
|
|
4
|
+
"id": "allow-breaks-anywhere",
|
|
5
|
+
"title": "Allow breaks anywhere",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- wrap-break-word -->\n<code id=\"target\" class=\"block wrap-break-word w-min m(0) font-md (line-height:24px)\">PREVIEW</code>",
|
|
8
|
+
"<!-- wrap-anywhere -->\n<code id=\"target\" class=\"block wrap-anywhere w-min m(0) font-md (line-height:24px)\">PREVIEW</code>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"block",
|
|
13
|
+
"wrap-break-word",
|
|
14
|
+
"w-min",
|
|
15
|
+
"m(0)",
|
|
16
|
+
"font-md",
|
|
17
|
+
"(line-height:24px)",
|
|
18
|
+
"wrap-anywhere"
|
|
19
|
+
],
|
|
20
|
+
"classLists": [
|
|
21
|
+
"block wrap-break-word w-min m(0) font-md (line-height:24px)",
|
|
22
|
+
"block wrap-anywhere w-min m(0) font-md (line-height:24px)"
|
|
23
|
+
],
|
|
24
|
+
"highlighted": []
|
|
25
|
+
}
|
|
26
|
+
]
|