@master/internal-site 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +68 -2
- package/dist/astro.d.mts +3 -0
- package/dist/astro.mjs +510 -0
- package/dist/config.d.mts +69 -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 +68 -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 +93 -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 +96 -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 +20 -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 +1081 -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 +73 -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,25 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "background-image",
|
|
4
|
+
"id": "add-a-background-image",
|
|
5
|
+
"title": "Add a background image",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Local SVG · centered cover -->\n<div id=\"target\" role=\"img\" aria-label=\"Geometric landscape\"\n class=\"h(160) w-xs max-w-full (background-position:center) (background-size:cover) (background-repeat:no-repeat)\n bg-surface-inset (background-image:url(/demo/landscape.svg))\"\n></div>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"h(160)",
|
|
12
|
+
"w-xs",
|
|
13
|
+
"max-w-full",
|
|
14
|
+
"(background-position:center)",
|
|
15
|
+
"(background-size:cover)",
|
|
16
|
+
"(background-repeat:no-repeat)",
|
|
17
|
+
"bg-surface-inset",
|
|
18
|
+
"(background-image:url(/demo/landscape.svg))"
|
|
19
|
+
],
|
|
20
|
+
"classLists": [
|
|
21
|
+
"h(160) w-xs max-w-full (background-position:center) (background-size:cover) (background-repeat:no-repeat) bg-surface-inset (background-image:url(/demo/landscape.svg))"
|
|
22
|
+
],
|
|
23
|
+
"highlighted": []
|
|
24
|
+
}
|
|
25
|
+
]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "background-origin",
|
|
4
|
+
"id": "choose-the-background-positioning-area",
|
|
5
|
+
"title": "Choose the background positioning area",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Border origin · x 0, y 0 -->\n<div id=\"target\" role=\"img\" aria-label=\"Geometric landscape\"\n class=\"h(176) w(280) max-w-full p-lg b(8) b-dashed (border-color:color-mix(var(--color-violet-50),|transparent))\n (background-clip:border-box) (background-repeat:no-repeat) (background-origin:border-box)\n (background-position:0|0) (background-size:80px|50px)\n (background-image:url(/demo/landscape.svg))\"\n></div>",
|
|
8
|
+
"<!-- Padding origin · x 8, y 8 -->\n<div id=\"target\" role=\"img\" aria-label=\"Geometric landscape\"\n class=\"h(176) w(280) max-w-full p-lg b(8) b-dashed (border-color:color-mix(var(--color-violet-50),|transparent))\n (background-clip:border-box) (background-repeat:no-repeat) (background-origin:padding-box)\n (background-position:0|0) (background-size:80px|50px)\n (background-image:url(/demo/landscape.svg))\"\n></div>",
|
|
9
|
+
"<!-- Content origin · x 32, y 32 -->\n<div id=\"target\" role=\"img\" aria-label=\"Geometric landscape\"\n class=\"h(176) w(280) max-w-full p-lg b(8) b-dashed (border-color:color-mix(var(--color-violet-50),|transparent))\n (background-clip:border-box) (background-repeat:no-repeat) (background-origin:content-box)\n (background-position:0|0) (background-size:80px|50px)\n (background-image:url(/demo/landscape.svg))\"\n></div>"
|
|
10
|
+
],
|
|
11
|
+
"css": "",
|
|
12
|
+
"classes": [
|
|
13
|
+
"h(176)",
|
|
14
|
+
"w(280)",
|
|
15
|
+
"max-w-full",
|
|
16
|
+
"p-lg",
|
|
17
|
+
"b(8)",
|
|
18
|
+
"b-dashed",
|
|
19
|
+
"(border-color:color-mix(var(--color-violet-50),|transparent))",
|
|
20
|
+
"(background-clip:border-box)",
|
|
21
|
+
"(background-repeat:no-repeat)",
|
|
22
|
+
"(background-origin:border-box)",
|
|
23
|
+
"(background-position:0|0)",
|
|
24
|
+
"(background-size:80px|50px)",
|
|
25
|
+
"(background-image:url(/demo/landscape.svg))",
|
|
26
|
+
"(background-origin:padding-box)",
|
|
27
|
+
"(background-origin:content-box)"
|
|
28
|
+
],
|
|
29
|
+
"classLists": [
|
|
30
|
+
"h(176) w(280) max-w-full p-lg b(8) b-dashed (border-color:color-mix(var(--color-violet-50),|transparent)) (background-clip:border-box) (background-repeat:no-repeat) (background-origin:border-box) (background-position:0|0) (background-size:80px|50px) (background-image:url(/demo/landscape.svg))",
|
|
31
|
+
"h(176) w(280) max-w-full p-lg b(8) b-dashed (border-color:color-mix(var(--color-violet-50),|transparent)) (background-clip:border-box) (background-repeat:no-repeat) (background-origin:padding-box) (background-position:0|0) (background-size:80px|50px) (background-image:url(/demo/landscape.svg))",
|
|
32
|
+
"h(176) w(280) max-w-full p-lg b(8) b-dashed (border-color:color-mix(var(--color-violet-50),|transparent)) (background-clip:border-box) (background-repeat:no-repeat) (background-origin:content-box) (background-position:0|0) (background-size:80px|50px) (background-image:url(/demo/landscape.svg))"
|
|
33
|
+
],
|
|
34
|
+
"highlighted": []
|
|
35
|
+
}
|
|
36
|
+
]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "background-size",
|
|
4
|
+
"id": "cover-a-frame",
|
|
5
|
+
"title": "Cover a frame",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Whole source · 8:5 aspect ratio -->\n<div id=\"target\" role=\"img\" aria-label=\"Geometric landscape\"\n class=\"w-xs max-w-full (aspect-ratio:8/5) (background-position:center) (background-size:contain) (background-repeat:no-repeat)\n (background-image:url(/demo/landscape.svg))\"\n></div>",
|
|
8
|
+
"<!-- Cover · fill and crop -->\n<div id=\"target\" role=\"img\" aria-label=\"Geometric landscape\"\n class=\"h(160) w-xs max-w-full (background-position:center) (background-size:cover) (background-repeat:no-repeat)\n bg-surface-inset (background-image:url(/demo/landscape.svg))\"\n></div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"w-xs",
|
|
13
|
+
"max-w-full",
|
|
14
|
+
"(aspect-ratio:8/5)",
|
|
15
|
+
"(background-position:center)",
|
|
16
|
+
"(background-size:contain)",
|
|
17
|
+
"(background-repeat:no-repeat)",
|
|
18
|
+
"(background-image:url(/demo/landscape.svg))",
|
|
19
|
+
"h(160)",
|
|
20
|
+
"(background-size:cover)",
|
|
21
|
+
"bg-surface-inset"
|
|
22
|
+
],
|
|
23
|
+
"classLists": [
|
|
24
|
+
"w-xs max-w-full (aspect-ratio:8/5) (background-position:center) (background-size:contain) (background-repeat:no-repeat) (background-image:url(/demo/landscape.svg))",
|
|
25
|
+
"h(160) w-xs max-w-full (background-position:center) (background-size:cover) (background-repeat:no-repeat) bg-surface-inset (background-image:url(/demo/landscape.svg))"
|
|
26
|
+
],
|
|
27
|
+
"highlighted": []
|
|
28
|
+
}
|
|
29
|
+
]
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "border-collapse",
|
|
4
|
+
"id": "match-border-spacing-to-the-mode",
|
|
5
|
+
"title": "Match border spacing to the mode",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Collapse · spacing ignored -->\n<table id=\"target\"\n class=\"w(240) max-w-full (border-collapse:collapse)\n border-spacing-xs font-sm text-left\n fg-text-body (table-layout:fixed)\">\n <caption class=\"pb-sm font-semibold text-left\">\n Project assets\n </caption>\n <tbody>\n <tr>\n <th scope=\"row\"\n class=\"p-xs b(2) b-solid b-blue font-medium\">\n Design\n </th>\n <td class=\"p-xs b(2) b-solid b-blue\">12 files</td>\n </tr>\n <tr>\n <th scope=\"row\"\n class=\"p-xs b(2) b-solid b-blue font-medium\">\n Research\n </th>\n <td class=\"p-xs b(2) b-solid b-blue\">8 files</td>\n </tr>\n </tbody>\n</table>",
|
|
8
|
+
"<!-- Separate · 8px spacing -->\n<table id=\"target\"\n class=\"w(240) max-w-full (border-collapse:separate)\n border-spacing-xs font-sm text-left\n fg-text-body (table-layout:fixed)\">\n <caption class=\"pb-sm font-semibold text-left\">\n Project assets\n </caption>\n <tbody>\n <tr>\n <th scope=\"row\"\n class=\"p-xs b(2) b-solid b-blue font-medium\">\n Design\n </th>\n <td class=\"p-xs b(2) b-solid b-blue\">12 files</td>\n </tr>\n <tr>\n <th scope=\"row\"\n class=\"p-xs b(2) b-solid b-blue font-medium\">\n Research\n </th>\n <td class=\"p-xs b(2) b-solid b-blue\">8 files</td>\n </tr>\n </tbody>\n</table>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"w(240)",
|
|
13
|
+
"max-w-full",
|
|
14
|
+
"(border-collapse:collapse)",
|
|
15
|
+
"border-spacing-xs",
|
|
16
|
+
"font-sm",
|
|
17
|
+
"text-left",
|
|
18
|
+
"fg-text-body",
|
|
19
|
+
"(table-layout:fixed)",
|
|
20
|
+
"pb-sm",
|
|
21
|
+
"font-semibold",
|
|
22
|
+
"p-xs",
|
|
23
|
+
"b(2)",
|
|
24
|
+
"b-solid",
|
|
25
|
+
"b-blue",
|
|
26
|
+
"font-medium",
|
|
27
|
+
"(border-collapse:separate)"
|
|
28
|
+
],
|
|
29
|
+
"classLists": [
|
|
30
|
+
"w(240) max-w-full (border-collapse:collapse) border-spacing-xs font-sm text-left fg-text-body (table-layout:fixed)",
|
|
31
|
+
"pb-sm font-semibold text-left",
|
|
32
|
+
"p-xs b(2) b-solid b-blue font-medium",
|
|
33
|
+
"p-xs b(2) b-solid b-blue",
|
|
34
|
+
"p-xs b(2) b-solid b-blue font-medium",
|
|
35
|
+
"p-xs b(2) b-solid b-blue",
|
|
36
|
+
"w(240) max-w-full (border-collapse:separate) border-spacing-xs font-sm text-left fg-text-body (table-layout:fixed)",
|
|
37
|
+
"pb-sm font-semibold text-left",
|
|
38
|
+
"p-xs b(2) b-solid b-blue font-medium",
|
|
39
|
+
"p-xs b(2) b-solid b-blue",
|
|
40
|
+
"p-xs b(2) b-solid b-blue font-medium",
|
|
41
|
+
"p-xs b(2) b-solid b-blue"
|
|
42
|
+
],
|
|
43
|
+
"highlighted": []
|
|
44
|
+
}
|
|
45
|
+
]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "border-color",
|
|
4
|
+
"id": "set-border-color",
|
|
5
|
+
"title": "Set border color",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Primary · blue -->\n<div id=\"target\"\n class=\"flex items-center justify-center h(96)\n w(240) max-w-full p-md b(2) b-solid (border-color:currentcolor)\n b-blue font-md bg-surface-inset\n fg-text-body box-border\">\n Preview panel\n</div>",
|
|
8
|
+
"<!-- Comparison · violet -->\n<div id=\"target\"\n class=\"flex items-center justify-center h(96)\n w(240) max-w-full p-md b(2) b-solid (border-color:currentcolor)\n b-violet font-md bg-surface-inset\n fg-text-body box-border\">\n Preview panel\n</div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"flex",
|
|
13
|
+
"items-center",
|
|
14
|
+
"justify-center",
|
|
15
|
+
"h(96)",
|
|
16
|
+
"w(240)",
|
|
17
|
+
"max-w-full",
|
|
18
|
+
"p-md",
|
|
19
|
+
"b(2)",
|
|
20
|
+
"b-solid",
|
|
21
|
+
"(border-color:currentcolor)",
|
|
22
|
+
"b-blue",
|
|
23
|
+
"font-md",
|
|
24
|
+
"bg-surface-inset",
|
|
25
|
+
"fg-text-body",
|
|
26
|
+
"box-border",
|
|
27
|
+
"b-violet"
|
|
28
|
+
],
|
|
29
|
+
"classLists": [
|
|
30
|
+
"flex items-center justify-center h(96) w(240) max-w-full p-md b(2) b-solid (border-color:currentcolor) b-blue font-md bg-surface-inset fg-text-body box-border",
|
|
31
|
+
"flex items-center justify-center h(96) w(240) max-w-full p-md b(2) b-solid (border-color:currentcolor) b-violet font-md bg-surface-inset fg-text-body box-border"
|
|
32
|
+
],
|
|
33
|
+
"highlighted": []
|
|
34
|
+
}
|
|
35
|
+
]
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "border-image-repeat",
|
|
4
|
+
"id": "round-repeated-edge-slices",
|
|
5
|
+
"title": "Round repeated edge slices",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Stretch · one stretched tile -->\n<div id=\"target\"\n class=\"flex items-center justify-center h(130)\n w(250) max-w-full p-md b(12) b-solid b-blue-60\n (border-image-repeat:stretch)\n (border-image-slice:24)\n (border-image-source:url('/demo/border-grid.svg'))\n (border-image-width:1) font-md bg-surface-base\n fg-text-body box-border\">\n <span class=\"px-xs py-3xs bg-surface-base fg-text-body\">\n Edge sample\n </span>\n</div>",
|
|
8
|
+
"<!-- Repeat · natural tiles, clipped ends -->\n<div id=\"target\"\n class=\"flex items-center justify-center h(130)\n w(250) max-w-full p-md b(12) b-solid b-blue-60\n (border-image-repeat:repeat)\n (border-image-slice:24)\n (border-image-source:url('/demo/border-grid.svg'))\n (border-image-width:1) font-md bg-surface-base\n fg-text-body box-border\">\n <span class=\"px-xs py-3xs bg-surface-base fg-text-body\">\n Edge sample\n </span>\n</div>",
|
|
9
|
+
"<!-- Round · whole tiles resized to fit -->\n<div id=\"target\"\n class=\"flex items-center justify-center h(130)\n w(250) max-w-full p-md b(12) b-solid b-blue-60\n (border-image-repeat:round)\n (border-image-slice:24)\n (border-image-source:url('/demo/border-grid.svg'))\n (border-image-width:1) font-md bg-surface-base\n fg-text-body box-border\">\n <span class=\"px-xs py-3xs bg-surface-base fg-text-body\">\n Edge sample\n </span>\n</div>",
|
|
10
|
+
"<!-- Space · whole tiles with gaps -->\n<div id=\"target\"\n class=\"flex items-center justify-center h(130)\n w(250) max-w-full p-md b(12) b-solid b-blue-60\n (border-image-repeat:space)\n (border-image-slice:24)\n (border-image-source:url('/demo/border-grid.svg'))\n (border-image-width:1) font-md bg-surface-base\n fg-text-body box-border\">\n <span class=\"px-xs py-3xs bg-surface-base fg-text-body\">\n Edge sample\n </span>\n</div>"
|
|
11
|
+
],
|
|
12
|
+
"css": "",
|
|
13
|
+
"classes": [
|
|
14
|
+
"flex",
|
|
15
|
+
"items-center",
|
|
16
|
+
"justify-center",
|
|
17
|
+
"h(130)",
|
|
18
|
+
"w(250)",
|
|
19
|
+
"max-w-full",
|
|
20
|
+
"p-md",
|
|
21
|
+
"b(12)",
|
|
22
|
+
"b-solid",
|
|
23
|
+
"b-blue-60",
|
|
24
|
+
"(border-image-repeat:stretch)",
|
|
25
|
+
"(border-image-slice:24)",
|
|
26
|
+
"(border-image-source:url('/demo/border-grid.svg'))",
|
|
27
|
+
"(border-image-width:1)",
|
|
28
|
+
"font-md",
|
|
29
|
+
"bg-surface-base",
|
|
30
|
+
"fg-text-body",
|
|
31
|
+
"box-border",
|
|
32
|
+
"px-xs",
|
|
33
|
+
"py-3xs",
|
|
34
|
+
"(border-image-repeat:repeat)",
|
|
35
|
+
"(border-image-repeat:round)",
|
|
36
|
+
"(border-image-repeat:space)"
|
|
37
|
+
],
|
|
38
|
+
"classLists": [
|
|
39
|
+
"flex items-center justify-center h(130) w(250) max-w-full p-md b(12) b-solid b-blue-60 (border-image-repeat:stretch) (border-image-slice:24) (border-image-source:url('/demo/border-grid.svg')) (border-image-width:1) font-md bg-surface-base fg-text-body box-border",
|
|
40
|
+
"px-xs py-3xs bg-surface-base fg-text-body",
|
|
41
|
+
"flex items-center justify-center h(130) w(250) max-w-full p-md b(12) b-solid b-blue-60 (border-image-repeat:repeat) (border-image-slice:24) (border-image-source:url('/demo/border-grid.svg')) (border-image-width:1) font-md bg-surface-base fg-text-body box-border",
|
|
42
|
+
"px-xs py-3xs bg-surface-base fg-text-body",
|
|
43
|
+
"flex items-center justify-center h(130) w(250) max-w-full p-md b(12) b-solid b-blue-60 (border-image-repeat:round) (border-image-slice:24) (border-image-source:url('/demo/border-grid.svg')) (border-image-width:1) font-md bg-surface-base fg-text-body box-border",
|
|
44
|
+
"px-xs py-3xs bg-surface-base fg-text-body",
|
|
45
|
+
"flex items-center justify-center h(130) w(250) max-w-full p-md b(12) b-solid b-blue-60 (border-image-repeat:space) (border-image-slice:24) (border-image-source:url('/demo/border-grid.svg')) (border-image-width:1) font-md bg-surface-base fg-text-body box-border",
|
|
46
|
+
"px-xs py-3xs bg-surface-base fg-text-body"
|
|
47
|
+
],
|
|
48
|
+
"highlighted": []
|
|
49
|
+
}
|
|
50
|
+
]
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "border-image-slice",
|
|
4
|
+
"id": "slice-the-source-image",
|
|
5
|
+
"title": "Slice the source image",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- 24 source units · 12px border paint -->\n<img src=\"/demo/border-grid.svg\" width=\"96\" height=\"96\"\n alt=\"96 × 96 source with 24-unit violet corners\"\n class=\"block mb-md\" />\n<div id=\"target\"\n class=\"flex items-center justify-center h(130)\n w(250) max-w-full p-md b(12) b-solid b-blue-60\n (border-image-repeat:stretch)\n (border-image-slice:24)\n (border-image-source:url('/demo/border-grid.svg'))\n (border-image-width:1) font-md bg-surface-base\n fg-text-body box-border\">\n <span class=\"px-xs py-3xs bg-surface-base fg-text-body\">\n Edge sample\n </span>\n</div>",
|
|
8
|
+
"<!-- 25% of 96 · same slice -->\n<div id=\"target\"\n class=\"flex items-center justify-center h(130)\n w(250) max-w-full p-md b(12) b-solid b-blue-60\n (border-image-repeat:stretch)\n (border-image-slice:25%)\n (border-image-source:url('/demo/border-grid.svg'))\n (border-image-width:1) font-md bg-surface-base\n fg-text-body box-border\">\n <span class=\"px-xs py-3xs bg-surface-base fg-text-body\">\n Edge sample\n </span>\n</div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"block",
|
|
13
|
+
"mb-md",
|
|
14
|
+
"flex",
|
|
15
|
+
"items-center",
|
|
16
|
+
"justify-center",
|
|
17
|
+
"h(130)",
|
|
18
|
+
"w(250)",
|
|
19
|
+
"max-w-full",
|
|
20
|
+
"p-md",
|
|
21
|
+
"b(12)",
|
|
22
|
+
"b-solid",
|
|
23
|
+
"b-blue-60",
|
|
24
|
+
"(border-image-repeat:stretch)",
|
|
25
|
+
"(border-image-slice:24)",
|
|
26
|
+
"(border-image-source:url('/demo/border-grid.svg'))",
|
|
27
|
+
"(border-image-width:1)",
|
|
28
|
+
"font-md",
|
|
29
|
+
"bg-surface-base",
|
|
30
|
+
"fg-text-body",
|
|
31
|
+
"box-border",
|
|
32
|
+
"px-xs",
|
|
33
|
+
"py-3xs",
|
|
34
|
+
"(border-image-slice:25%)"
|
|
35
|
+
],
|
|
36
|
+
"classLists": [
|
|
37
|
+
"block mb-md",
|
|
38
|
+
"flex items-center justify-center h(130) w(250) max-w-full p-md b(12) b-solid b-blue-60 (border-image-repeat:stretch) (border-image-slice:24) (border-image-source:url('/demo/border-grid.svg')) (border-image-width:1) font-md bg-surface-base fg-text-body box-border",
|
|
39
|
+
"px-xs py-3xs bg-surface-base fg-text-body",
|
|
40
|
+
"flex items-center justify-center h(130) w(250) max-w-full p-md b(12) b-solid b-blue-60 (border-image-repeat:stretch) (border-image-slice:25%) (border-image-source:url('/demo/border-grid.svg')) (border-image-width:1) font-md bg-surface-base fg-text-body box-border",
|
|
41
|
+
"px-xs py-3xs bg-surface-base fg-text-body"
|
|
42
|
+
],
|
|
43
|
+
"highlighted": []
|
|
44
|
+
}
|
|
45
|
+
]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "border-radius",
|
|
4
|
+
"id": "use-a-radius-token",
|
|
5
|
+
"title": "Use a radius token",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Radius only · child corners stay square -->\n<div id=\"target\"\n class=\"w(240) max-w-full r-2xl bg-surface-inset\n box-border\">\n <img src=\"/demo/landscape.svg\"\n alt=\"Blue and violet mountains\"\n width=\"320\" height=\"200\"\n class=\"block h-auto w-full\" />\n</div>",
|
|
8
|
+
"<!-- Radius + overflow hidden · child is clipped -->\n<div id=\"target\"\n class=\"overflow-hidden w(240) max-w-full r-2xl\n bg-surface-inset box-border\">\n <img src=\"/demo/landscape.svg\"\n alt=\"Blue and violet mountains\"\n width=\"320\" height=\"200\"\n class=\"block h-auto w-full\" />\n</div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"w(240)",
|
|
13
|
+
"max-w-full",
|
|
14
|
+
"r-2xl",
|
|
15
|
+
"bg-surface-inset",
|
|
16
|
+
"box-border",
|
|
17
|
+
"block",
|
|
18
|
+
"h-auto",
|
|
19
|
+
"w-full",
|
|
20
|
+
"overflow-hidden"
|
|
21
|
+
],
|
|
22
|
+
"classLists": [
|
|
23
|
+
"w(240) max-w-full r-2xl bg-surface-inset box-border",
|
|
24
|
+
"block h-auto w-full",
|
|
25
|
+
"overflow-hidden w(240) max-w-full r-2xl bg-surface-inset box-border",
|
|
26
|
+
"block h-auto w-full"
|
|
27
|
+
],
|
|
28
|
+
"highlighted": []
|
|
29
|
+
}
|
|
30
|
+
]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "box-decoration-break",
|
|
4
|
+
"id": "clone",
|
|
5
|
+
"title": "Clone",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Slice · shared decoration -->\n<div class=\"w(220) max-w-full font-lg (line-height:2.2)\">\n <span id=\"target\"\n class=\"px-xs py-3xs b(1) b-solid b-blue r-sm\n bg-blue-10 fg-blue-80\n (box-decoration-break:slice)\">\n Clear thinking needs room to take shape.\n </span>\n</div>",
|
|
8
|
+
"<!-- Clone · each fragment decorated -->\n<div class=\"w(220) max-w-full font-lg (line-height:2.2)\">\n <span id=\"target\"\n class=\"px-xs py-3xs b(1) b-solid b-blue r-sm\n bg-blue-10 fg-blue-80\n (box-decoration-break:clone)\">\n Clear thinking needs room to take shape.\n </span>\n</div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"w(220)",
|
|
13
|
+
"max-w-full",
|
|
14
|
+
"font-lg",
|
|
15
|
+
"(line-height:2.2)",
|
|
16
|
+
"px-xs",
|
|
17
|
+
"py-3xs",
|
|
18
|
+
"b(1)",
|
|
19
|
+
"b-solid",
|
|
20
|
+
"b-blue",
|
|
21
|
+
"r-sm",
|
|
22
|
+
"bg-blue-10",
|
|
23
|
+
"fg-blue-80",
|
|
24
|
+
"(box-decoration-break:slice)",
|
|
25
|
+
"(box-decoration-break:clone)"
|
|
26
|
+
],
|
|
27
|
+
"classLists": [
|
|
28
|
+
"w(220) max-w-full font-lg (line-height:2.2)",
|
|
29
|
+
"px-xs py-3xs b(1) b-solid b-blue r-sm bg-blue-10 fg-blue-80 (box-decoration-break:slice)",
|
|
30
|
+
"w(220) max-w-full font-lg (line-height:2.2)",
|
|
31
|
+
"px-xs py-3xs b(1) b-solid b-blue r-sm bg-blue-10 fg-blue-80 (box-decoration-break:clone)"
|
|
32
|
+
],
|
|
33
|
+
"highlighted": []
|
|
34
|
+
}
|
|
35
|
+
]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "box-shadow",
|
|
4
|
+
"id": "customize-mode-specific-tokens",
|
|
5
|
+
"title": "Customize mode-specific tokens",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Configured small shadow · two theme definitions -->\n<article id=\"target\"\n class=\"w(240) max-w-full p-lg r-md bg-surface-base\n fg-text-body shadow-sm box-border\">\n <h4 class=\"m(0) font-lg\">\n Workspace library\n </h4>\n <p class=\"mx(0) mb(0) mt-sm font-sm\">\n Shared assets and components.\n </p>\n</article>"
|
|
8
|
+
],
|
|
9
|
+
"css": "@theme {\n --shadow-sm: 0 0 0 1px oklch(0% 0 none / .08),\n 0 6px 12px -2px oklch(0% 0 none / .14);\n}\n\n@media (prefers-color-scheme: light) { :root, :host {\n --shadow-sm: 0 0 0 1px oklch(0% 0 none / .08),\n 0 6px 12px -2px oklch(0% 0 none / .14);\n} }\n\n\n\n@media (prefers-color-scheme: dark) { :root, :host {\n --shadow-sm: 0 0 0 1px oklch(100% 0 none / .16),\n 0 6px 12px -2px oklch(0% 0 none / .5);\n} }\n\n",
|
|
10
|
+
"classes": [
|
|
11
|
+
"w(240)",
|
|
12
|
+
"max-w-full",
|
|
13
|
+
"p-lg",
|
|
14
|
+
"r-md",
|
|
15
|
+
"bg-surface-base",
|
|
16
|
+
"fg-text-body",
|
|
17
|
+
"shadow-sm",
|
|
18
|
+
"box-border",
|
|
19
|
+
"m(0)",
|
|
20
|
+
"font-lg",
|
|
21
|
+
"mx(0)",
|
|
22
|
+
"mb(0)",
|
|
23
|
+
"mt-sm",
|
|
24
|
+
"font-sm"
|
|
25
|
+
],
|
|
26
|
+
"classLists": [
|
|
27
|
+
"w(240) max-w-full p-lg r-md bg-surface-base fg-text-body shadow-sm box-border",
|
|
28
|
+
"m(0) font-lg",
|
|
29
|
+
"mx(0) mb(0) mt-sm font-sm"
|
|
30
|
+
],
|
|
31
|
+
"highlighted": []
|
|
32
|
+
}
|
|
33
|
+
]
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "clear",
|
|
4
|
+
"id": "clearing-both-left-and-right-floats",
|
|
5
|
+
"title": "Clearing both left and right floats",
|
|
6
|
+
"html": [
|
|
7
|
+
"<div>\n <div class=\"(float:left) (height:8.5rem) (width:34%)\">Left</div>\n <div class=\"(float:right) (height:5.5rem) (width:34%)\">Right</div>\n \n <div class=\"(clear:both)\">Clear</div>\n</div>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"(float:left)",
|
|
12
|
+
"(height:8.5rem)",
|
|
13
|
+
"(width:34%)",
|
|
14
|
+
"(float:right)",
|
|
15
|
+
"(height:5.5rem)",
|
|
16
|
+
"(clear:both)"
|
|
17
|
+
],
|
|
18
|
+
"classLists": [
|
|
19
|
+
"(float:left) (height:8.5rem) (width:34%)",
|
|
20
|
+
"(float:right) (height:5.5rem) (width:34%)",
|
|
21
|
+
"(clear:both)"
|
|
22
|
+
],
|
|
23
|
+
"highlighted": [
|
|
24
|
+
"(clear:both)"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"page": "clear",
|
|
29
|
+
"id": "clearing-left-floats",
|
|
30
|
+
"title": "Clearing left floats",
|
|
31
|
+
"html": [
|
|
32
|
+
"<div>\n <div class=\"(float:left) (height:4.5rem) (width:34%)\">Left</div>\n <div class=\"(float:right) (height:8.5rem) (width:34%)\">Right</div>\n \n <div class=\"(clear:left)\">Clear</div>\n</div>"
|
|
33
|
+
],
|
|
34
|
+
"css": "",
|
|
35
|
+
"classes": [
|
|
36
|
+
"(float:left)",
|
|
37
|
+
"(height:4.5rem)",
|
|
38
|
+
"(width:34%)",
|
|
39
|
+
"(float:right)",
|
|
40
|
+
"(height:8.5rem)",
|
|
41
|
+
"(clear:left)"
|
|
42
|
+
],
|
|
43
|
+
"classLists": [
|
|
44
|
+
"(float:left) (height:4.5rem) (width:34%)",
|
|
45
|
+
"(float:right) (height:8.5rem) (width:34%)",
|
|
46
|
+
"(clear:left)"
|
|
47
|
+
],
|
|
48
|
+
"highlighted": [
|
|
49
|
+
"(clear:left)"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"page": "clear",
|
|
54
|
+
"id": "clearing-right-floats",
|
|
55
|
+
"title": "Clearing right floats",
|
|
56
|
+
"html": [
|
|
57
|
+
"<div>\n <div class=\"(float:left) (height:8.5rem) (width:34%)\">Left</div>\n <div class=\"(float:right) (height:4.5rem) (width:34%)\">Right</div>\n \n <div class=\"(clear:right)\">Clear</div>\n</div>"
|
|
58
|
+
],
|
|
59
|
+
"css": "",
|
|
60
|
+
"classes": [
|
|
61
|
+
"(float:left)",
|
|
62
|
+
"(height:8.5rem)",
|
|
63
|
+
"(width:34%)",
|
|
64
|
+
"(float:right)",
|
|
65
|
+
"(height:4.5rem)",
|
|
66
|
+
"(clear:right)"
|
|
67
|
+
],
|
|
68
|
+
"classLists": [
|
|
69
|
+
"(float:left) (height:8.5rem) (width:34%)",
|
|
70
|
+
"(float:right) (height:4.5rem) (width:34%)",
|
|
71
|
+
"(clear:right)"
|
|
72
|
+
],
|
|
73
|
+
"highlighted": [
|
|
74
|
+
"(clear:right)"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "clip-path",
|
|
4
|
+
"id": "clip-with-an-inset",
|
|
5
|
+
"title": "Clip with an inset",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Unclipped · original border -->\n<div\n class=\"h(120) w(240) max-w-full\n outline(1) outline-solid outline-line-subtle bg-surface-base\">\n <div id=\"target\"\n class=\"grid (place-items:center) h(120) w(240)\n max-w-full b(2) b-solid b-blue-60 font-md\n bg-blue-10 fg-blue-80 (clip-path:none)\">\n Clipped panel\n </div>\n</div>",
|
|
8
|
+
"<!-- Inset · rounded paint boundary -->\n<div\n class=\"h(120) w(240) max-w-full\n outline(1) outline-solid outline-line-subtle bg-surface-base\">\n <div id=\"target\"\n class=\"grid (place-items:center) h(120) w(240)\n max-w-full b(2) b-solid b-blue-60 font-md\n bg-blue-10 fg-blue-80\n (clip-path:inset(8px|24px|round|12px))\">\n Clipped panel\n </div>\n</div>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"h(120)",
|
|
13
|
+
"w(240)",
|
|
14
|
+
"max-w-full",
|
|
15
|
+
"outline(1)",
|
|
16
|
+
"outline-solid",
|
|
17
|
+
"outline-line-subtle",
|
|
18
|
+
"bg-surface-base",
|
|
19
|
+
"grid",
|
|
20
|
+
"(place-items:center)",
|
|
21
|
+
"b(2)",
|
|
22
|
+
"b-solid",
|
|
23
|
+
"b-blue-60",
|
|
24
|
+
"font-md",
|
|
25
|
+
"bg-blue-10",
|
|
26
|
+
"fg-blue-80",
|
|
27
|
+
"(clip-path:none)",
|
|
28
|
+
"(clip-path:inset(8px|24px|round|12px))"
|
|
29
|
+
],
|
|
30
|
+
"classLists": [
|
|
31
|
+
"h(120) w(240) max-w-full outline(1) outline-solid outline-line-subtle bg-surface-base",
|
|
32
|
+
"grid (place-items:center) h(120) w(240) max-w-full b(2) b-solid b-blue-60 font-md bg-blue-10 fg-blue-80 (clip-path:none)",
|
|
33
|
+
"h(120) w(240) max-w-full outline(1) outline-solid outline-line-subtle bg-surface-base",
|
|
34
|
+
"grid (place-items:center) h(120) w(240) max-w-full b(2) b-solid b-blue-60 font-md bg-blue-10 fg-blue-80 (clip-path:inset(8px|24px|round|12px))"
|
|
35
|
+
],
|
|
36
|
+
"highlighted": []
|
|
37
|
+
}
|
|
38
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "content",
|
|
4
|
+
"id": "add-indicators-for-external-links",
|
|
5
|
+
"title": "Add indicators for external links",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Descendant selector · external link -->\n<article class=\"font-md leading-lg\n (content:'\\00a0↗')_:where(a[href^='http'])::after\">\n <p class=\"m(0)\">Read the <a id=\"target\" class=\"underline fg-text-blue\" href=\"https://www.example.com\">project website</a>.</p>\n <p class=\"m(0)\">Return to <a class=\"underline\" href=\"/en/reference/content\">this reference</a>.</p>\n</article>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"font-md",
|
|
12
|
+
"leading-lg",
|
|
13
|
+
"(content:'\\00a0↗')_:where(a[href^='http'])::after",
|
|
14
|
+
"m(0)",
|
|
15
|
+
"underline",
|
|
16
|
+
"fg-text-blue"
|
|
17
|
+
],
|
|
18
|
+
"classLists": [
|
|
19
|
+
"font-md leading-lg (content:'\\00a0↗')_:where(a[href^='http'])::after",
|
|
20
|
+
"m(0)",
|
|
21
|
+
"underline fg-text-blue",
|
|
22
|
+
"m(0)",
|
|
23
|
+
"underline"
|
|
24
|
+
],
|
|
25
|
+
"highlighted": []
|
|
26
|
+
}
|
|
27
|
+
]
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "counter-set",
|
|
4
|
+
"id": "set-a-counter-on-one-item",
|
|
5
|
+
"title": "Set a counter on one item",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Sequence · 1, 9, 10 -->\n<ol role=\"list\" class=\"m(0) p(0) font-md leading-lg (list-style:none) (counter-reset:step|0)\">\n <li class=\"mb-2xs (counter-increment:step|1) fg-text-blue::before\n (content:counter(step)'.\\00a0')::before\">Install dependencies</li>\n <li id=\"target\" value=\"9\" class=\"mb-2xs (counter-increment:step|1) (counter-set:step|9)\n fg-text-blue::before (content:counter(step)'.\\00a0')::before\">Deployment checklist</li>\n <li class=\"mb-2xs (counter-increment:step|1) fg-text-blue::before\n (content:counter(step)'.\\00a0')::before\">Verify production</li>\n</ol>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"m(0)",
|
|
12
|
+
"p(0)",
|
|
13
|
+
"font-md",
|
|
14
|
+
"leading-lg",
|
|
15
|
+
"(list-style:none)",
|
|
16
|
+
"(counter-reset:step|0)",
|
|
17
|
+
"mb-2xs",
|
|
18
|
+
"(counter-increment:step|1)",
|
|
19
|
+
"fg-text-blue::before",
|
|
20
|
+
"(content:counter(step)'.\\00a0')::before",
|
|
21
|
+
"(counter-set:step|9)"
|
|
22
|
+
],
|
|
23
|
+
"classLists": [
|
|
24
|
+
"m(0) p(0) font-md leading-lg (list-style:none) (counter-reset:step|0)",
|
|
25
|
+
"mb-2xs (counter-increment:step|1) fg-text-blue::before (content:counter(step)'.\\00a0')::before",
|
|
26
|
+
"mb-2xs (counter-increment:step|1) (counter-set:step|9) fg-text-blue::before (content:counter(step)'.\\00a0')::before",
|
|
27
|
+
"mb-2xs (counter-increment:step|1) fg-text-blue::before (content:counter(step)'.\\00a0')::before"
|
|
28
|
+
],
|
|
29
|
+
"highlighted": []
|
|
30
|
+
}
|
|
31
|
+
]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "fill",
|
|
4
|
+
"id": "use-theme-colors",
|
|
5
|
+
"title": "Use theme colors",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Theme alias · follows the mode -->\n<svg id=\"target\" role=\"img\" aria-label=\"Triangle\"\n width=\"96\" height=\"96\" viewBox=\"0 0 24 24\"\n class=\"block fill-blue (stroke:none)\">\n <path d=\"M12 4 20 20H4Z\" />\n</svg>",
|
|
8
|
+
"<!-- Palette step · fixed blue-60 -->\n<svg id=\"target\" role=\"img\" aria-label=\"Triangle\"\n width=\"96\" height=\"96\" viewBox=\"0 0 24 24\"\n class=\"block fill-blue-60 (stroke:none)\">\n <path d=\"M12 4 20 20H4Z\" />\n</svg>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"block",
|
|
13
|
+
"fill-blue",
|
|
14
|
+
"(stroke:none)",
|
|
15
|
+
"fill-blue-60"
|
|
16
|
+
],
|
|
17
|
+
"classLists": [
|
|
18
|
+
"block fill-blue (stroke:none)",
|
|
19
|
+
"block fill-blue-60 (stroke:none)"
|
|
20
|
+
],
|
|
21
|
+
"highlighted": []
|
|
22
|
+
}
|
|
23
|
+
]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "filter",
|
|
4
|
+
"id": "use-drop-shadow-for-transparent-images",
|
|
5
|
+
"title": "Use drop shadow for transparent images",
|
|
6
|
+
"html": [
|
|
7
|
+
"<!-- Drop shadow · follows the shapes -->\n<svg id=\"target\" role=\"img\"\n aria-label=\"Circle and diamond\"\n width=\"160\" height=\"120\" viewBox=\"0 0 160 120\"\n class=\"block m-md\n (filter:drop-shadow(0|4px|2px|#7c3aed))\">\n <circle cx=\"48\" cy=\"60\" r=\"28\" fill=\"#2563eb\" />\n <path d=\"M100 30 140 60 100 90 60 60Z\" fill=\"#7c3aed\" />\n</svg>",
|
|
8
|
+
"<!-- Box shadow · follows the viewport box -->\n<svg id=\"target\" role=\"img\"\n aria-label=\"Circle and diamond\"\n width=\"160\" height=\"120\" viewBox=\"0 0 160 120\"\n class=\"block m-md (box-shadow:0|4px|2px|#7c3aed)\">\n <circle cx=\"48\" cy=\"60\" r=\"28\" fill=\"#2563eb\" />\n <path d=\"M100 30 140 60 100 90 60 60Z\" fill=\"#7c3aed\" />\n</svg>"
|
|
9
|
+
],
|
|
10
|
+
"css": "",
|
|
11
|
+
"classes": [
|
|
12
|
+
"block",
|
|
13
|
+
"m-md",
|
|
14
|
+
"(filter:drop-shadow(0|4px|2px|#7c3aed))",
|
|
15
|
+
"(box-shadow:0|4px|2px|#7c3aed)"
|
|
16
|
+
],
|
|
17
|
+
"classLists": [
|
|
18
|
+
"block m-md (filter:drop-shadow(0|4px|2px|#7c3aed))",
|
|
19
|
+
"block m-md (box-shadow:0|4px|2px|#7c3aed)"
|
|
20
|
+
],
|
|
21
|
+
"highlighted": []
|
|
22
|
+
}
|
|
23
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"page": "flex-direction",
|
|
4
|
+
"id": "lay-out-items-in-a-row",
|
|
5
|
+
"title": "Lay out items in a row",
|
|
6
|
+
"html": [
|
|
7
|
+
"<div id=\"layout\" class=\"flex flex-row gap-sm\">\n <div id=\"item-1\" class=\"(flex:none) (height:4rem) (width:5rem) p-sm\">01</div>\n <div id=\"item-2\" class=\"(flex:none) (height:4rem) (width:5rem) p-sm\">02</div>\n <div id=\"item-3\" class=\"(flex:none) (height:4rem) (width:5rem) p-sm\">03</div>\n</div>"
|
|
8
|
+
],
|
|
9
|
+
"css": "",
|
|
10
|
+
"classes": [
|
|
11
|
+
"flex",
|
|
12
|
+
"flex-row",
|
|
13
|
+
"gap-sm",
|
|
14
|
+
"(flex:none)",
|
|
15
|
+
"(height:4rem)",
|
|
16
|
+
"(width:5rem)",
|
|
17
|
+
"p-sm"
|
|
18
|
+
],
|
|
19
|
+
"classLists": [
|
|
20
|
+
"flex flex-row gap-sm",
|
|
21
|
+
"(flex:none) (height:4rem) (width:5rem) p-sm",
|
|
22
|
+
"(flex:none) (height:4rem) (width:5rem) p-sm",
|
|
23
|
+
"(flex:none) (height:4rem) (width:5rem) p-sm"
|
|
24
|
+
],
|
|
25
|
+
"highlighted": []
|
|
26
|
+
}
|
|
27
|
+
]
|