@leed-ai/cli 0.0.0-stage → 6.19.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.md +57 -0
- package/README.md +125 -2
- package/dist/LICENSE.md +57 -0
- package/dist/acorn-DAgDT1om.js +5087 -0
- package/dist/angular-l0_4PK8N.js +3598 -0
- package/dist/authShared-Dray38Ls.js +1161 -0
- package/dist/babel-CJeRQd5u.js +10038 -0
- package/dist/buildResults-tiq1nugP.js +21180 -0
- package/dist/chunk-1VJ9lAw7.js +42 -0
- package/dist/cliAuth-38JjD6hw.js +15 -0
- package/dist/env-B0bHiXJJ.js +29 -0
- package/dist/errors-CqKamGCu.js +481 -0
- package/dist/estree-E8WG8UHj.js +6930 -0
- package/dist/flow-6xaRIbPQ.js +52255 -0
- package/dist/glimmer-aJPjsfbT.js +7272 -0
- package/dist/graphql-mcgtPEiZ.js +1901 -0
- package/dist/html--eeea3Kl.js +6553 -0
- package/dist/leed.eleventy.mjs +6525 -0
- package/dist/leed.mjs +88952 -0
- package/dist/leed.sources.json +798 -0
- package/dist/leedLogger-Zkada5aO.js +78 -0
- package/dist/markdown-D73jNKwx.js +6836 -0
- package/dist/meriyah-CMp1nDDW.js +8932 -0
- package/dist/package.json +101 -0
- package/dist/postcss-h4fBr2Fn.js +6760 -0
- package/dist/prettier-CwFSKxfN.js +16821 -0
- package/dist/static/customer-site-worker/package.json +9 -0
- package/dist/static/customer-site-worker/src/assetsHydration.ts +55 -0
- package/dist/static/customer-site-worker/src/constants.ts +20 -0
- package/dist/static/customer-site-worker/src/cors.ts +120 -0
- package/dist/static/customer-site-worker/src/index.ts +242 -0
- package/dist/static/customer-site-worker/src/mcp-proxy.ts +98 -0
- package/dist/static/customer-site-worker/src/proxy.ts +92 -0
- package/dist/static/customer-site-worker/src/proxyHeaders.ts +47 -0
- package/dist/static/customer-site-worker/src/tier.ts +40 -0
- package/dist/static/customer-site-worker/src/types.ts +82 -0
- package/dist/static/customer-site-worker/test/functions-mock.worker.js +50 -0
- package/dist/static/customer-site-worker/tsconfig.json +19 -0
- package/dist/static/customer-site-worker/vitest.workers.config.ts +61 -0
- package/dist/static/install/husky/colors.mjs +5 -0
- package/dist/static/install/husky/hooks/commit-msg +1 -0
- package/dist/static/install/husky/hooks/pre-commit +1 -0
- package/dist/static/install/husky/hooks/pre-push +1 -0
- package/dist/static/install/husky/valid-command.mjs +29 -0
- package/dist/static/install/husky/valid-commit-msg.mjs +20 -0
- package/dist/static/install/package.json +10 -0
- package/dist/static/install/packages.txt +4 -0
- package/dist/static/install/tasks.json +111 -0
- package/dist/static/javascript/detectIncognito.js +195 -0
- package/dist/static/javascript/documentation.js +2781 -0
- package/dist/static/javascript/fp/fp.esm.js +2896 -0
- package/dist/static/javascript/fp/fp.js +3067 -0
- package/dist/static/javascript/live-search.js +986 -0
- package/dist/static/javascript/lunr-search.js +843 -0
- package/dist/static/javascript/timeme.js +451 -0
- package/dist/static/javascript/tracker/webmcp.js +67 -0
- package/dist/static/javascript/tracker/whisper.js +1 -0
- package/dist/static/javascript/utilities.js +819 -0
- package/dist/static/javascript/versions.json +74 -0
- package/dist/static/javascript/zoomable.js +488 -0
- package/dist/static/site/_data/eleventyComputed.js +228 -0
- package/dist/static/site/_data/leed-form-data.json +253 -0
- package/dist/static/site/_includes/leed/api/bits/array-type.hbs +24 -0
- package/dist/static/site/_includes/leed/api/bits/badges.hbs +9 -0
- package/dist/static/site/_includes/leed/api/bits/description.hbs +9 -0
- package/dist/static/site/_includes/leed/api/bits/examples.hbs +42 -0
- package/dist/static/site/_includes/leed/api/bits/scopes.hbs +28 -0
- package/dist/static/site/_includes/leed/api/object.hbs +110 -0
- package/dist/static/site/_includes/leed/api/parameters.hbs +11 -0
- package/dist/static/site/_includes/leed/api/property.hbs +153 -0
- package/dist/static/site/_includes/leed/api/request-body.hbs +51 -0
- package/dist/static/site/_includes/leed/api/responses.hbs +89 -0
- package/dist/static/site/_includes/leed/api/security-constraints.hbs +59 -0
- package/dist/static/site/_includes/leed/api/security.hbs +75 -0
- package/dist/static/site/_includes/leed/components/pagination.hbs +45 -0
- package/dist/static/site/_includes/leed/components/scroll-status-indicator-horizontal.hbs +22 -0
- package/dist/static/site/_includes/leed/docs/alpha/api.hbs +6 -0
- package/dist/static/site/_includes/leed/docs/alpha/base.hbs +26 -0
- package/dist/static/site/_includes/leed/docs/alpha/documentation.hbs +7 -0
- package/dist/static/site/_includes/leed/docs/api-article.hbs +75 -0
- package/dist/static/site/_includes/leed/docs/bravo/api.hbs +5 -0
- package/dist/static/site/_includes/leed/docs/bravo/base.hbs +31 -0
- package/dist/static/site/_includes/leed/docs/bravo/documentation.hbs +7 -0
- package/dist/static/site/_includes/leed/docs/charlie/api.hbs +6 -0
- package/dist/static/site/_includes/leed/docs/charlie/base.hbs +27 -0
- package/dist/static/site/_includes/leed/docs/charlie/documentation.hbs +10 -0
- package/dist/static/site/_includes/leed/docs/doc-article.hbs +40 -0
- package/dist/static/site/_includes/leed/docs/docs-footer.hbs +35 -0
- package/dist/static/site/_includes/leed/docs/docs-header.hbs +59 -0
- package/dist/static/site/_includes/leed/docs/document-search-modal.hbs +36 -0
- package/dist/static/site/_includes/leed/docs/document-search.hbs +23 -0
- package/dist/static/site/_includes/leed/docs/footer.hbs +12 -0
- package/dist/static/site/_includes/leed/docs/header/brand.hbs +19 -0
- package/dist/static/site/_includes/leed/docs/header/chrome.hbs +33 -0
- package/dist/static/site/_includes/leed/docs/header/compact.hbs +19 -0
- package/dist/static/site/_includes/leed/docs/header/cta.hbs +15 -0
- package/dist/static/site/_includes/leed/docs/header/nav.hbs +18 -0
- package/dist/static/site/_includes/leed/docs/header/top-search.hbs +15 -0
- package/dist/static/site/_includes/leed/docs/mini-bar.hbs +53 -0
- package/dist/static/site/_includes/leed/docs/pagination.hbs +19 -0
- package/dist/static/site/_includes/leed/docs/shell.hbs +56 -0
- package/dist/static/site/_includes/leed/docs/sidebar.hbs +52 -0
- package/dist/static/site/_includes/leed/docs/social-icons.hbs +81 -0
- package/dist/static/site/_includes/leed/docs/style.hbs +17 -0
- package/dist/static/site/_includes/leed/docs/toc.hbs +7 -0
- package/dist/static/site/_includes/leed/form.hbs +266 -0
- package/dist/static/site/_includes/leed/head.hbs +67 -0
- package/dist/static/site/_includes/leed/menu/builder.hbs +35 -0
- package/dist/static/site/_includes/leed/menu/item.hbs +67 -0
- package/dist/static/site/_includes/leed/menu/link.hbs +59 -0
- package/dist/static/site/_includes/leed/metadata/ogCard.hbs +40 -0
- package/dist/static/site/_includes/leed/metadata/siteMetadata.hbs +24 -0
- package/dist/static/site/_includes/leed/metadata/twitterCard.hbs +34 -0
- package/dist/static/site/_includes/leed/popup-video.hbs +21 -0
- package/dist/static/site/_includes/leed/stub-template.hbs +17 -0
- package/dist/static/site/_includes/leed/unsubscribe-form.hbs +30 -0
- package/dist/static/site/_layouts/leed-documentation.hbs +12 -0
- package/dist/static/site/leed-feed-atom.hbs +42 -0
- package/dist/static/site/leed-feed-json.hbs +56 -0
- package/dist/static/site/leed-feed-rss.hbs +39 -0
- package/dist/static/site/leed-headers.hbs +38 -0
- package/dist/static/site/leed-redirects.hbs +10 -0
- package/dist/static/site/leed-sitemap-pageType.hbs +28 -0
- package/dist/static/site/leed-sitemap.hbs +19 -0
- package/dist/static/site/leed-unsubscribe.hbs +44 -0
- package/dist/static/site/leed-unsubscribed.hbs +40 -0
- package/dist/static/tailwind/components/alerts.css +132 -0
- package/dist/static/tailwind/components/api-methods.css +39 -0
- package/dist/static/tailwind/components/breadcrumbs.css +31 -0
- package/dist/static/tailwind/components/code.css +88 -0
- package/dist/static/tailwind/components/collapsible.css +38 -0
- package/dist/static/tailwind/components/document-search.css +222 -0
- package/dist/static/tailwind/components/form.css +185 -0
- package/dist/static/tailwind/components/kbd.css +7 -0
- package/dist/static/tailwind/components/pagination.css +81 -0
- package/dist/static/tailwind/components/scroll-status-indicator.css +5 -0
- package/dist/static/tailwind/components/tab-groups.css +117 -0
- package/dist/static/tailwind/components/tables.css +0 -0
- package/dist/static/tailwind/components/toc.css +60 -0
- package/dist/static/tailwind/components.css +248 -0
- package/dist/static/tailwind/defaults.css +260 -0
- package/dist/static/tailwind/docs/api.css +701 -0
- package/dist/static/tailwind/docs/components/blockquote.css +5 -0
- package/dist/static/tailwind/docs/components/button.css +11 -0
- package/dist/static/tailwind/docs/components/docs-pagination.css +71 -0
- package/dist/static/tailwind/docs/components/mobile-bar.css +83 -0
- package/dist/static/tailwind/docs/components/navigation.css +279 -0
- package/dist/static/tailwind/docs/components/table.css +54 -0
- package/dist/static/tailwind/docs/components.css +6 -0
- package/dist/static/tailwind/docs/docs.css +427 -0
- package/dist/static/tailwind/docs/layouts/alpha.css +108 -0
- package/dist/static/tailwind/docs/layouts/bravo.css +218 -0
- package/dist/static/tailwind/docs/layouts/charlie.css +105 -0
- package/dist/static/tailwind/docs/layouts.css +3 -0
- package/dist/static/tailwind/docs/themes/amber.css +113 -0
- package/dist/static/tailwind/docs/themes/blue.css +94 -0
- package/dist/static/tailwind/docs/themes/cyan.css +111 -0
- package/dist/static/tailwind/docs/themes/emerald.css +111 -0
- package/dist/static/tailwind/docs/themes/fuchsia.css +111 -0
- package/dist/static/tailwind/docs/themes/green.css +95 -0
- package/dist/static/tailwind/docs/themes/indigo.css +111 -0
- package/dist/static/tailwind/docs/themes/lime.css +111 -0
- package/dist/static/tailwind/docs/themes/orange.css +111 -0
- package/dist/static/tailwind/docs/themes/pink.css +111 -0
- package/dist/static/tailwind/docs/themes/purple.css +111 -0
- package/dist/static/tailwind/docs/themes/red.css +111 -0
- package/dist/static/tailwind/docs/themes/rose.css +111 -0
- package/dist/static/tailwind/docs/themes/sky.css +111 -0
- package/dist/static/tailwind/docs/themes/teal.css +111 -0
- package/dist/static/tailwind/docs/themes/violet.css +111 -0
- package/dist/static/tailwind/docs/themes/yellow.css +111 -0
- package/dist/static/tailwind/docs/themes.css +84 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/brands.css +2455 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/fontawesome.css +8997 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/fonts.css +45 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/icons.json +2608 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1.css +3 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0/brands.css +2215 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0/fontawesome.css +19281 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0/fonts.css +445 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0.css +3 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1/brands.css +2455 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1/fontawesome.css +20365 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1/fonts.css +589 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1.css +3 -0
- package/dist/static/tailwind/fonts/all.css +6 -0
- package/dist/static/tailwind/fonts/config.jsonc +31 -0
- package/dist/static/tailwind/fonts/geist-mono.css +142 -0
- package/dist/static/tailwind/fonts/geist.css +142 -0
- package/dist/static/tailwind/fonts/inter.css +215 -0
- package/dist/static/tailwind/fonts/jetbrains-mono.css +126 -0
- package/dist/static/tailwind/fonts/noto-sans.css +134 -0
- package/dist/static/tailwind/fonts/open-sans.css +89 -0
- package/dist/static/tailwind/highlighters.css +14 -0
- package/dist/static/tailwind/hljs/README.md +53 -0
- package/dist/static/tailwind/hljs/a11y.css +96 -0
- package/dist/static/tailwind/hljs/atom-fruit.css +90 -0
- package/dist/static/tailwind/hljs/atom-one.css +164 -0
- package/dist/static/tailwind/hljs/default.css +164 -0
- package/dist/static/tailwind/hljs/github.css +101 -0
- package/dist/static/tailwind/hljs/google-code.css +112 -0
- package/dist/static/tailwind/hljs/grayscale.css +115 -0
- package/dist/static/tailwind/hljs/gruvbox-hard.css +115 -0
- package/dist/static/tailwind/hljs/gruvbox-medium.css +115 -0
- package/dist/static/tailwind/hljs/gruvbox-soft.css +115 -0
- package/dist/static/tailwind/hljs/papercolor.css +120 -0
- package/dist/static/tailwind/hljs/qt-creator.css +91 -0
- package/dist/static/tailwind/hljs/summerfruit.css +115 -0
- package/dist/static/tailwind/hljs/tomorrow.css +115 -0
- package/dist/static/tailwind/leed.css +170 -0
- package/dist/static/tailwind/site-tokens.reference.css +105 -0
- package/dist/static/tailwind/utils/icons.css +102 -0
- package/dist/static/tailwind/utils/utilities.css +105 -0
- package/dist/static/templates/pages/PAGE.hbs +27 -0
- package/dist/static/templates/pages/PAGE_LAYOUT.hbs +19 -0
- package/dist/static/templates/pages/PAGE_TYPE_INDEX.hbs +89 -0
- package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_ITEM.hbs +52 -0
- package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_LIST.hbs +39 -0
- package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_PAGINATION.hbs +11 -0
- package/dist/static/templates/raw-content/.ci/build.sh +58 -0
- package/dist/static/templates/raw-content/README.md +179 -0
- package/dist/static/templates/raw-content/_gitignore +50 -0
- package/dist/static/templates/raw-content/src/404.hbs +21 -0
- package/dist/static/templates/raw-content/src/_data/autolink.json +1 -0
- package/dist/static/templates/raw-content/src/_data/ctaList.json +1 -0
- package/dist/static/templates/raw-content/src/_data/leedForms.json +1 -0
- package/dist/static/templates/raw-content/src/_data/menu.json +1 -0
- package/dist/static/templates/raw-content/src/_includes/footer.hbs +18 -0
- package/dist/static/templates/raw-content/src/_includes/header-includes.hbs +25 -0
- package/dist/static/templates/raw-content/src/_includes/header.hbs +5 -0
- package/dist/static/templates/raw-content/src/_includes/site-template.hbs +23 -0
- package/dist/static/templates/raw-content/src/_includes/unsubscribe-DISABLED.hbs +17 -0
- package/dist/static/templates/raw-content/src/_includes/unsubscribed-DISABLED.hbs +13 -0
- package/dist/static/templates/raw-content/src/_layouts/empty.hbs +2 -0
- package/dist/static/templates/raw-content/src/index.hbs +21 -0
- package/dist/static/templates/raw-content/src/robots.hbs +9 -0
- package/dist/static/templates/raw-content/tailwind/site/base.css +44 -0
- package/dist/static/templates/raw-content/tailwind/site.config.css +3 -0
- package/dist/static/templates/sandbox/_gitignore +50 -0
- package/dist/static/templates/sandbox/identity.json +1 -0
- package/dist/static/templates/sandbox/src/404.hbs +21 -0
- package/dist/static/templates/sandbox/src/_data/autolink.json +1 -0
- package/dist/static/templates/sandbox/src/_data/ctaList.json +1 -0
- package/dist/static/templates/sandbox/src/_data/labelList.json +9 -0
- package/dist/static/templates/sandbox/src/_data/leedForms.json +20 -0
- package/dist/static/templates/sandbox/src/_data/menu.json +19 -0
- package/dist/static/templates/sandbox/src/_data/pageTypeList.json +14 -0
- package/dist/static/templates/sandbox/src/_data/searchIndexList.json +1 -0
- package/dist/static/templates/sandbox/src/_data/userList.json +11 -0
- package/dist/static/templates/sandbox/src/_includes/footer.hbs +18 -0
- package/dist/static/templates/sandbox/src/_includes/header-includes.hbs +25 -0
- package/dist/static/templates/sandbox/src/_includes/header.hbs +5 -0
- package/dist/static/templates/sandbox/src/_includes/site-template.hbs +23 -0
- package/dist/static/templates/sandbox/src/_layouts/empty.hbs +2 -0
- package/dist/static/templates/sandbox/src/index.hbs +20 -0
- package/dist/static/templates/sandbox/src/robots.hbs +9 -0
- package/dist/static/templates/sandbox/src/src.11tydata.json +39 -0
- package/dist/static/templates/sandbox/tailwind/site/base.css +44 -0
- package/dist/static/templates/sandbox/tailwind/site.config.css +3 -0
- package/dist/thrown-sukVkp_1.js +113 -0
- package/dist/typescript-D4T0V_Hn.js +23004 -0
- package/dist/yaml-9wR8GxF_.js +5236 -0
- package/package.json +157 -4
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
.docs-layout-bravo {
|
|
2
|
+
#docs-header-wrapper {
|
|
3
|
+
@apply w-full fixed top-0 z-40;
|
|
4
|
+
|
|
5
|
+
&:has(.document-search-modal-wrapper[aria-hidden="false"]) {
|
|
6
|
+
@apply z-[999999];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
#docs-sidebar-nav {
|
|
11
|
+
@apply fixed top-0 lg:top-[calc(var(--height-header)+51px)] lg:left-5 left-0 w-[234px] px-0 lg:h-[calc(100vh-var(--height-header)-67px)] h-full z-[99999] lg:z-99;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#docs-header-container {
|
|
15
|
+
@apply w-full mx-auto px-4 md:py-0 relative;
|
|
16
|
+
|
|
17
|
+
#docs-menu-container {
|
|
18
|
+
@apply z-50;
|
|
19
|
+
}
|
|
20
|
+
#docs-navigation-button-wrapper {
|
|
21
|
+
@apply z-40;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#docs-navigation-button-wrapper ul[role="menu"] {
|
|
25
|
+
@apply border-0;
|
|
26
|
+
|
|
27
|
+
> li > a {
|
|
28
|
+
@apply flex py-3 h-full items-center text-sm font-medium border-b-0 border-transparent text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-300;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#docs-container {
|
|
34
|
+
@apply fixed px-[0.5rem] pb-[0.5rem];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#docs-content-wrapper {
|
|
38
|
+
@apply flex-1 mx-2 mb-4 pr-6 pl-6 lg:mr-0 lg:ml-64 overflow-y-auto bg-white dark:bg-white/[0.02] border border-gray-200/70 dark:border-white/[0.07] rounded-2xl overflow-y-auto min-h-0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.docs-sidebar {
|
|
42
|
+
@apply border-0 w-72 pr-8 z-[20] bg-(--component-bg-color) md:bg-transparent;
|
|
43
|
+
|
|
44
|
+
/* `pb-4` rather than `py-4`: below `lg` this panel is the open drawer and
|
|
45
|
+
its own scrollport, and #docs-nav-filter sticks against it. A top padding
|
|
46
|
+
there would put a strip above the sticky box for menu rows to scroll
|
|
47
|
+
through, and the box already supplies that 1rem itself with `pt-4`.
|
|
48
|
+
See components/navigation.css. */
|
|
49
|
+
#docs-navigation {
|
|
50
|
+
@apply px-0 pb-4 md:px-4 lg:p-0;
|
|
51
|
+
|
|
52
|
+
/* Three corrections to the shared #docs-nav-filter for this layout.
|
|
53
|
+
|
|
54
|
+
`px-3` below `md`: this panel is `px-0` there and menu rows are inset
|
|
55
|
+
by `.leed-menu__item--wrapper`'s own `px-3`, so the box would otherwise
|
|
56
|
+
run edge to edge past every row beneath it. `md:px-0` hands the job
|
|
57
|
+
back to `md:px-4` above.
|
|
58
|
+
|
|
59
|
+
The background matches the backdrop rather than following
|
|
60
|
+
`.docs-sidebar` into transparency — see the `color-mix` note below.
|
|
61
|
+
The shared rule paints `--component-bg-color` at every width, which
|
|
62
|
+
reads as a differently colored panel around the input once the bar
|
|
63
|
+
behind it has gone transparent at `md`.
|
|
64
|
+
|
|
65
|
+
`lg:w-[226px]` matches the RENDERED search button above this nav, not
|
|
66
|
+
the `lg:w-[230px]` on its `.header-search-button` wrapper (line 190):
|
|
67
|
+
`#document-search-container` (line 165) carries `md:ml-1`, so the
|
|
68
|
+
button itself measures 230px - 4px = 226px. Match the control the
|
|
69
|
+
reader sees, not the box around it. The filter would otherwise be
|
|
70
|
+
202px — the 234px `#docs-sidebar-nav` less `.docs-sidebar`'s `pr-8` —
|
|
71
|
+
so the two stacked controls rendered at visibly different widths.
|
|
72
|
+
|
|
73
|
+
`pt-2` and no negative offsets below `lg`: the shared rule's
|
|
74
|
+
`-top-4 -mt-4` cancel a 1rem top padding on the scrollport, and this
|
|
75
|
+
layout's `pb-4` deliberately does not have one. With nothing to cancel
|
|
76
|
+
they over-pull, and the box's own `pt-4` then reads as too much space
|
|
77
|
+
above the input. */
|
|
78
|
+
#docs-nav-filter {
|
|
79
|
+
@apply px-3 pt-2 mt-0 top-0 md:px-0 lg:-top-4 lg:-mt-4 lg:pt-4 lg:w-[226px];
|
|
80
|
+
|
|
81
|
+
/* Opaque, and the exact color of what sits behind the nav — the box is
|
|
82
|
+
sticky, so menu rows pass underneath it and a transparent or merely
|
|
83
|
+
approximate fill lets their text show through. `.docs-sidebar` is
|
|
84
|
+
`md:bg-transparent` (line 42) — but `#docs-navigation` sits between
|
|
85
|
+
that and this box, and `components/navigation.css:42` paints it
|
|
86
|
+
`bg-(--component-bg-color) lg:bg-transparent`. So the page only
|
|
87
|
+
becomes the backdrop at `lg`, not at `md`: below `lg` the shared
|
|
88
|
+
rule's `--component-bg-color` already matches the panel exactly, and
|
|
89
|
+
gating this at `md` mismatched the whole 768-1023px band. From `lg`
|
|
90
|
+
the backdrop is `--docs-bg-color` with `#fixed-bg` (line 166) laying
|
|
91
|
+
3% of `--component-fixed-body-bg-color` over it; `color-mix`
|
|
92
|
+
reproduces that composite as one opaque color rather than guessing
|
|
93
|
+
at it — a plain `--docs-bg-color` would be 3% too light. */
|
|
94
|
+
@media (width >= 64rem) {
|
|
95
|
+
background-color: color-mix(in srgb, var(--component-fixed-body-bg-color) 3%, var(--docs-bg-color));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
#documentation {
|
|
102
|
+
@apply px-0 flex flex-col;
|
|
103
|
+
|
|
104
|
+
&:has(#docs-mini-bar) {
|
|
105
|
+
@apply pt-0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
nav#docs-pagination {
|
|
109
|
+
/* Empty grid cells to maintain layout */
|
|
110
|
+
&::before,
|
|
111
|
+
&::after {
|
|
112
|
+
@apply content-[""] block;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.docs-pagination__link {
|
|
116
|
+
@apply py-3 pb-4 px-4 rounded-xl border border-(--component-border-color)/20 hover:border-(--component-border-color)/40;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.docs-pagination__link--prev,
|
|
120
|
+
.docs-pagination__link--next {
|
|
121
|
+
@apply w-full;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#leed-toc {
|
|
127
|
+
@apply top-0 px-0!;
|
|
128
|
+
|
|
129
|
+
.leed-nav-toc {
|
|
130
|
+
@apply border-0 p-0 mt-2;
|
|
131
|
+
|
|
132
|
+
ol ol {
|
|
133
|
+
@apply ml-0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
li a {
|
|
137
|
+
@apply py-1 pl-4 my-0 border-l border-gray-950/5 dark:border-white/10 hover:border-gray-950/20 dark:hover:border-white/20;
|
|
138
|
+
}
|
|
139
|
+
li a[aria-current="location"] {
|
|
140
|
+
@apply border-l-(--component-primary-color);
|
|
141
|
+
}
|
|
142
|
+
li li a {
|
|
143
|
+
@apply pl-8;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.leed-breadcrumbs {
|
|
149
|
+
@apply mt-0 lg:mt-6;
|
|
150
|
+
& .leed-breadcrumbs__crumb {
|
|
151
|
+
a {
|
|
152
|
+
@apply text-(--component-text-color) hover:text-(--component-body-link-color) font-normal transition-colors duration-300;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Current page styling */
|
|
156
|
+
a[aria-current="location"] {
|
|
157
|
+
@apply text-(--component-text-color) font-medium pointer-events-none;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
#docs-mini-bar + .leed-breadcrumbs {
|
|
162
|
+
@apply mt-4;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
#docs-footer-wrapper {
|
|
166
|
+
@apply mx-0 xl:mx-[4rem];
|
|
167
|
+
}
|
|
168
|
+
#docs-footer {
|
|
169
|
+
@apply xl:max-w-5xl mx-auto px-4 md:px-0;
|
|
170
|
+
}
|
|
171
|
+
a.docs-heading-anchor {
|
|
172
|
+
@apply text-(--component-text-color)/70;
|
|
173
|
+
&:hover {
|
|
174
|
+
@apply text-(--component-text-color);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.divide-every-children {
|
|
178
|
+
:where(& > :not(:last-child)) {
|
|
179
|
+
@apply border-b border-(--component-step-light-color);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
#fixed-bg {
|
|
184
|
+
@apply fixed inset-0 -z-10 bg-(--component-fixed-body-bg-color)/3;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
#docs-layout {
|
|
188
|
+
@apply h-[calc(100vh-var(--height-header))] lg:h-[calc(100vh-4.5rem)] w-full;
|
|
189
|
+
}
|
|
190
|
+
#document-search-container {
|
|
191
|
+
@apply sticky top-0 z-10 md:ml-1;
|
|
192
|
+
|
|
193
|
+
.search-trigger-button {
|
|
194
|
+
@apply lg:bg-white dark:bg-(--component-bg-color) rounded-xl;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
#docs-content {
|
|
198
|
+
@apply w-full max-w-5xl;
|
|
199
|
+
}
|
|
200
|
+
.api-layout .api-sidebar-column {
|
|
201
|
+
@apply top-18 h-auto;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
#docs-mini-bar {
|
|
205
|
+
@apply top-0 -ml-6 pl-6 pr-6 w-[calc(100%+48px)];
|
|
206
|
+
& #docs-mini-bar-buttons {
|
|
207
|
+
button.mini-menu {
|
|
208
|
+
@apply p-0 ml-0 shadow-none;
|
|
209
|
+
}
|
|
210
|
+
button.mini-toc {
|
|
211
|
+
@apply mr-0;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
.header-search-button {
|
|
216
|
+
@apply static lg:absolute left-0 top-[calc(var(--height-header)+9px)] lg:w-[230px];
|
|
217
|
+
}
|
|
218
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
.docs-layout-charlie {
|
|
2
|
+
#docs-header-wrapper {
|
|
3
|
+
@apply w-full fixed top-0 z-99999 bg-(--component-bg-color);
|
|
4
|
+
/* md:bg-transparent; */
|
|
5
|
+
|
|
6
|
+
&:after {
|
|
7
|
+
@apply bg-(--component-header-bg-color) border-b border-(--component-header-border-color)/20 dark:border-(--component-header-border-color)/10;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
#docs-container {
|
|
12
|
+
@apply relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.docs-sidebar {
|
|
16
|
+
@apply border-r border-(--component-header-border-color)/20 dark:border-(--component-header-border-color)/10;
|
|
17
|
+
|
|
18
|
+
#docs-navigation {
|
|
19
|
+
/* `lg:pt-0` cancels the base rule's `lg:py-4`, and it is what keeps the
|
|
20
|
+
sticky filter still. `.docs-sidebar` is the desktop scrollport and
|
|
21
|
+
carries `pt-4`; the base `#docs-navigation` adds a second `lg:py-4`
|
|
22
|
+
inside it. #docs-nav-filter's `-mt-4` cancels one 1rem, so with two
|
|
23
|
+
above it the box rests 1rem lower than it sticks and visibly slides
|
|
24
|
+
that far on the first scroll. alpha and bravo never had the bug —
|
|
25
|
+
both already replace the base padding with `lg:p-0`. Charlie was the
|
|
26
|
+
only layout that let it through.
|
|
27
|
+
Bottom padding is deliberately left alone: `.docs-sidebar` is `pb-0`,
|
|
28
|
+
so `lg:py-4`'s lower half is the only gap under the last menu row. */
|
|
29
|
+
@apply px-3 lg:px-0 lg:pt-0;
|
|
30
|
+
/* The three transparent grounds below are DEFAULTS a site is expected to
|
|
31
|
+
override. Each selector already outranks everything that paints these
|
|
32
|
+
rows (`#docs-navigation a:hover` and the `[aria-current]` wrapper rule),
|
|
33
|
+
so `!` bought nothing except making a customer sidebar hover/current
|
|
34
|
+
ground impossible without an unlayered `!important` file.
|
|
35
|
+
Do not reinstate the `!`. */
|
|
36
|
+
[aria-current="page"] > .leed-menu__item--wrapper {
|
|
37
|
+
@apply bg-transparent;
|
|
38
|
+
}
|
|
39
|
+
& .leed-menu__item--wrapper {
|
|
40
|
+
@apply w-full lg:w-fit;
|
|
41
|
+
&:hover {
|
|
42
|
+
@apply bg-transparent;
|
|
43
|
+
}
|
|
44
|
+
&.leed-menu__item--no-link {
|
|
45
|
+
@apply hover:bg-transparent;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
#documentation {
|
|
52
|
+
@apply w-full;
|
|
53
|
+
|
|
54
|
+
nav#docs-pagination {
|
|
55
|
+
.docs-pagination__link {
|
|
56
|
+
@apply py-3 pb-4 px-4 rounded-xl border border-(--component-border-color)/20 hover:border-(--component-border-color)/40;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.docs-pagination__link--prev,
|
|
60
|
+
.docs-pagination__link--next {
|
|
61
|
+
@apply w-full;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#leed-toc {
|
|
67
|
+
.leed-nav-toc {
|
|
68
|
+
@apply border-0 p-0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
#docs-footer-wrapper {
|
|
73
|
+
@apply border-t border-(--component-border-color)/5 bg-(--component-header-bg-color);
|
|
74
|
+
|
|
75
|
+
#docs-footer {
|
|
76
|
+
@apply max-w-5xl mx-auto px-8 py-10;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.divide-every-children {
|
|
81
|
+
:where(& > :not(:last-child)) {
|
|
82
|
+
@apply border-b border-(--component-step-light-color);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
#docs-content {
|
|
87
|
+
@apply w-full max-w-5xl;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#docs-mini-bar {
|
|
91
|
+
@apply px-0 md:px-8;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
#docs-footer-wrapper {
|
|
95
|
+
@apply mt-0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* `bg-transparent` here is a DEFAULT ground, not a reset: nothing else paints
|
|
99
|
+
#docs-content-wrapper under charlie (bravo's `bg-white` sits on the
|
|
100
|
+
mutually-exclusive `.docs-layout-bravo`). A site must be able to give the
|
|
101
|
+
content column a ground at normal specificity. Do not reinstate the `!`. */
|
|
102
|
+
#docs-content-wrapper {
|
|
103
|
+
@apply bg-transparent flex-1 mx-auto flex flex-col min-w-0 max-w-5xl;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
@utility color-theme-amber {
|
|
2
|
+
/* primary colors */
|
|
3
|
+
--docs-primary-color: var(--color-amber-600);
|
|
4
|
+
--docs-primary-light: var(--color-amber-500);
|
|
5
|
+
--docs-primary-color-hover: var(--color-amber-700);
|
|
6
|
+
|
|
7
|
+
/* scroll status indicator colors */
|
|
8
|
+
--scroll-status-indicator-horizontal-start-bg: var(--docs-bg-color);
|
|
9
|
+
--scroll-status-indicator-horizontal-complete-bg: var(--docs-primary-color);
|
|
10
|
+
--scroll-status-indicator-horizontal-partial-bg: var(--color-zinc-500);
|
|
11
|
+
|
|
12
|
+
/* text colors */
|
|
13
|
+
--docs-text-color: var(--color-gray-700);
|
|
14
|
+
--docs-body-link-color: var(--docs-primary-color);
|
|
15
|
+
--docs-body-link-hover-color: var(--docs-primary-color-hover);
|
|
16
|
+
|
|
17
|
+
--docs-copied-content-text-color: var(--color-gray-100);
|
|
18
|
+
--menu-footer-header-text-color: var(--docs-text-color);
|
|
19
|
+
|
|
20
|
+
/* footer social icons colors */
|
|
21
|
+
--docs-footer-social-icons-color: var(--docs-text-color);
|
|
22
|
+
--docs-footer-social-icons-hover-color: var(--color-gray-500);
|
|
23
|
+
|
|
24
|
+
/* pagination icons colors */
|
|
25
|
+
--docs-pagination-icon-color: var(--color-gray-400);
|
|
26
|
+
--docs-pagination-icon-color-hover: var(--color-gray-900);
|
|
27
|
+
|
|
28
|
+
/* background and border colors */
|
|
29
|
+
--docs-bg-color: var(--color-white);
|
|
30
|
+
--docs-header-bg-color: var(--color-stone-100);
|
|
31
|
+
--docs-header-border-color: var(--color-gray-500);
|
|
32
|
+
--docs-sidebar-link-bg-color: var(--color-gray-100);
|
|
33
|
+
/* The row for the page you are on, in the sidebar and the mobile bar
|
|
34
|
+
(docs/components/navigation.css, docs/components/mobile-bar.css). Its text is
|
|
35
|
+
--docs-primary-color, and this is its ground; without it the chain in
|
|
36
|
+
components.css fell through to --default-current-location-bg-color, a slate
|
|
37
|
+
unrelated to any accent, so every built-in theme drew themed text on an
|
|
38
|
+
unthemed row. The accent's lightest tint keeps the pair inside one hue.
|
|
39
|
+
Light and dark are one rung apart from the ends of the ramp because the text
|
|
40
|
+
token is NOT lightened for dark mode — see the dark block below. */
|
|
41
|
+
--docs-current-location-bg-color: var(--color-amber-50);
|
|
42
|
+
--docs-code-bg-color: var(--color-stone-100);
|
|
43
|
+
--docs-code-inner-bg-color: var(--color-white);
|
|
44
|
+
--docs-code-border-color: var(--color-stone-950);
|
|
45
|
+
--docs-code-bg-color-selection: var(--color-amber-100);
|
|
46
|
+
--docs-form-border-color: var(--color-gray-300);
|
|
47
|
+
--docs-form-border-color-hover: var(--color-gray-400);
|
|
48
|
+
--form-border-color: var(--color-gray-200);
|
|
49
|
+
--form-download-spinner-text: var(--color-amber-600);
|
|
50
|
+
--docs-card-bg-color: var(--color-gray-100);
|
|
51
|
+
--docs-step-light-color: var(--color-gray-200);
|
|
52
|
+
--docs-fixed-body-bg-color: var(--color-slate-950);
|
|
53
|
+
--api-snippets-bg-color: var(--color-stone-100);
|
|
54
|
+
--docs-search-result-bg-color: var(--color-white);
|
|
55
|
+
--docs-search-button-bg-color: var(--color-white);
|
|
56
|
+
--docs-search-modal-bg-color: var(--color-white);
|
|
57
|
+
|
|
58
|
+
@media (prefers-color-scheme: dark) {
|
|
59
|
+
/* scroll status indicator colors */
|
|
60
|
+
--scroll-status-indicator-horizontal-partial-bg: var(--color-zinc-500);
|
|
61
|
+
--scroll-status-indicator-horizontal-complete-bg: var(--color-amber-800);
|
|
62
|
+
|
|
63
|
+
/* text colors */
|
|
64
|
+
--docs-text-color: var(--color-stone-400);
|
|
65
|
+
--docs-copied-content-text-color: var(--color-gray-300);
|
|
66
|
+
|
|
67
|
+
/* background and border colors */
|
|
68
|
+
--docs-bg-color: var(--color-stone-950);
|
|
69
|
+
|
|
70
|
+
--docs-form-border-color: var(--color-gray-800);
|
|
71
|
+
--docs-form-border-color-hover: var(--color-gray-700);
|
|
72
|
+
--form-border-color: var(--color-gray-600);
|
|
73
|
+
--form-download-spinner-text: var(--color-amber-400);
|
|
74
|
+
--docs-header-border-color: var(--color-white);
|
|
75
|
+
--docs-sidebar-link-bg-color: var(--color-gray-900);
|
|
76
|
+
/* Darkest rung of the same ramp, NOT a lightened accent: no theme overrides
|
|
77
|
+
--docs-primary-color for dark mode, so the row's text keeps its light-mode
|
|
78
|
+
rung here and the ground has to move to the far end to answer it. For the
|
|
79
|
+
themes whose accent already sits at 700-800 that is still a low-contrast
|
|
80
|
+
pair — the fix for those is a dark-mode --docs-primary-color, not a lighter
|
|
81
|
+
ground, which would make the row a bright slab on a near-black sidebar. */
|
|
82
|
+
--docs-current-location-bg-color: var(--color-amber-950);
|
|
83
|
+
--docs-sidebar-link-hover-bg-color: var(--color-gray-100);
|
|
84
|
+
|
|
85
|
+
--docs-footer-social-icons-hover-color: var(--color-gray-400);
|
|
86
|
+
--docs-pagination-icon-color: var(--color-gray-400);
|
|
87
|
+
--docs-pagination-icon-color-hover: var(--color-gray-200);
|
|
88
|
+
|
|
89
|
+
--docs-code-bg-color: var(--color-stone-900);
|
|
90
|
+
--docs-code-inner-bg-color: var(--color-neutral-950);
|
|
91
|
+
|
|
92
|
+
--docs-code-border-color: var(--color-white);
|
|
93
|
+
--docs-code-bg-color-selection: var(--color-amber-800);
|
|
94
|
+
--docs-card-bg-color: var(--color-stone-900);
|
|
95
|
+
--docs-step-light-color: var(--color-stone-800);
|
|
96
|
+
|
|
97
|
+
--docs-header-bg-color: var(--color-stone-900);
|
|
98
|
+
|
|
99
|
+
--docs-search-button-bg-color: var(--color-stone-950);
|
|
100
|
+
--docs-search-modal-bg-color: var(--color-stone-950);
|
|
101
|
+
|
|
102
|
+
/* Present in all 16 sibling themes and missing here — amber fell through to
|
|
103
|
+
--site-* / --default-* for these three, so a site using color-theme-amber
|
|
104
|
+
got an unthemed border and secondary button. Values mirror the siblings. */
|
|
105
|
+
--docs-border-color: var(--docs-header-border-color);
|
|
106
|
+
--docs-button-secondary-bg-color: var(--color-gray-600);
|
|
107
|
+
--docs-button-secondary-bg-hover-color: var(--color-gray-700);
|
|
108
|
+
|
|
109
|
+
--api-select-list-item-bg-color-hover: var(--color-white);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@apply docs-theme-defaults;
|
|
113
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@utility color-theme-blue {
|
|
2
|
+
--scroll-status-indicator-horizontal-start-bg: var(--docs-bg-color);
|
|
3
|
+
--scroll-status-indicator-horizontal-complete-bg: var(--color-blue-500);
|
|
4
|
+
--scroll-status-indicator-horizontal-partial-bg: var(--color-zinc-500);
|
|
5
|
+
--docs-primary-color: var(--color-blue-500);
|
|
6
|
+
--docs-primary-light: var(--color-blue-400);
|
|
7
|
+
--docs-primary-color-hover: var(--color-blue-600);
|
|
8
|
+
--docs-text-color: var(--color-gray-700);
|
|
9
|
+
--docs-body-link-color: var(--docs-primary-color);
|
|
10
|
+
--docs-body-link-hover-color: var(--docs-primary-color-hover);
|
|
11
|
+
--docs-bg-color: var(--color-white);
|
|
12
|
+
--docs-header-border-color: var(--color-slate-500);
|
|
13
|
+
--docs-sidebar-link-bg-color: var(--color-slate-100);
|
|
14
|
+
/* The row for the page you are on, in the sidebar and the mobile bar
|
|
15
|
+
(docs/components/navigation.css, docs/components/mobile-bar.css). Its text is
|
|
16
|
+
--docs-primary-color, and this is its ground; without it the chain in
|
|
17
|
+
components.css fell through to --default-current-location-bg-color, a slate
|
|
18
|
+
unrelated to any accent, so every built-in theme drew themed text on an
|
|
19
|
+
unthemed row. The accent's lightest tint keeps the pair inside one hue.
|
|
20
|
+
Light and dark are one rung apart from the ends of the ramp because the text
|
|
21
|
+
token is NOT lightened for dark mode — see the dark block below. */
|
|
22
|
+
--docs-current-location-bg-color: var(--color-blue-50);
|
|
23
|
+
--docs-code-bg-color: var(--color-slate-100);
|
|
24
|
+
--docs-code-inner-bg-color: var(--color-white);
|
|
25
|
+
--docs-copied-content-text-color: var(--color-slate-100);
|
|
26
|
+
--docs-code-border-color: var(--color-slate-950);
|
|
27
|
+
--docs-code-bg-color-selection: var(--color-blue-100);
|
|
28
|
+
--docs-footer-social-icons-color: var(--docs-text-color);
|
|
29
|
+
--docs-footer-social-icons-hover-color: var(--color-slate-500);
|
|
30
|
+
--docs-form-border-color: var(--color-slate-300);
|
|
31
|
+
--docs-form-border-color-hover: var(--color-slate-400);
|
|
32
|
+
--form-border-color: var(--color-slate-200);
|
|
33
|
+
--form-download-spinner-text: var(--color-blue-600);
|
|
34
|
+
--docs-pagination-icon-color: var(--color-slate-400);
|
|
35
|
+
--docs-pagination-icon-color-hover: var(--color-slate-900);
|
|
36
|
+
--docs-card-bg-color: var(--color-slate-100);
|
|
37
|
+
--docs-step-light-color: var(--color-slate-200);
|
|
38
|
+
--menu-footer-header-text-color: var(--docs-text-color);
|
|
39
|
+
--docs-fixed-body-bg-color: var(--color-slate-950);
|
|
40
|
+
|
|
41
|
+
--api-snippets-bg-color: var(--color-slate-100);
|
|
42
|
+
--docs-search-result-bg-color: var(--color-slate-100);
|
|
43
|
+
--docs-header-bg-color: var(--color-stone-100);
|
|
44
|
+
--docs-search-modal-bg-color: var(--color-white);
|
|
45
|
+
--docs-search-button-bg-color: var(--color-white);
|
|
46
|
+
|
|
47
|
+
--docs-border-color: var(--docs-header-border-color);
|
|
48
|
+
--api-select-list-item-bg-color-hover: var(--color-neutral-100);
|
|
49
|
+
--docs-button-secondary-bg-color: var(--color-gray-600);
|
|
50
|
+
--docs-button-secondary-bg-hover-color: var(--color-gray-700);
|
|
51
|
+
|
|
52
|
+
@media (prefers-color-scheme: dark) {
|
|
53
|
+
--scroll-status-indicator-horizontal-partial-bg: var(--color-zinc-500);
|
|
54
|
+
--scroll-status-indicator-horizontal-complete-bg: var(--color-blue-600);
|
|
55
|
+
|
|
56
|
+
--docs-text-color: var(--color-gray-400);
|
|
57
|
+
--docs-bg-color: var(--color-slate-950);
|
|
58
|
+
--docs-form-border-color: var(--color-slate-800);
|
|
59
|
+
--docs-form-border-color-hover: var(--color-slate-700);
|
|
60
|
+
--form-border-color: var(--color-slate-600);
|
|
61
|
+
--form-download-spinner-text: var(--color-blue-400);
|
|
62
|
+
--docs-header-border-color: var(--color-slate-200);
|
|
63
|
+
--docs-sidebar-link-bg-color: var(--color-slate-900);
|
|
64
|
+
/* Darkest rung of the same ramp, NOT a lightened accent: no theme overrides
|
|
65
|
+
--docs-primary-color for dark mode, so the row's text keeps its light-mode
|
|
66
|
+
rung here and the ground has to move to the far end to answer it. For the
|
|
67
|
+
themes whose accent already sits at 700-800 that is still a low-contrast
|
|
68
|
+
pair — the fix for those is a dark-mode --docs-primary-color, not a lighter
|
|
69
|
+
ground, which would make the row a bright slab on a near-black sidebar. */
|
|
70
|
+
--docs-current-location-bg-color: var(--color-blue-950);
|
|
71
|
+
--docs-sidebar-link-hover-bg-color: var(--color-slate-100);
|
|
72
|
+
|
|
73
|
+
--docs-footer-social-icons-hover-color: var(--color-slate-500);
|
|
74
|
+
|
|
75
|
+
--docs-pagination-icon-color: var(--color-slate-400);
|
|
76
|
+
--docs-pagination-icon-color-hover: var(--color-slate-200);
|
|
77
|
+
|
|
78
|
+
--docs-code-bg-color: var(--color-slate-900);
|
|
79
|
+
--docs-code-inner-bg-color: var(--color-slate-950);
|
|
80
|
+
--docs-copied-content-text-color: var(--color-slate-300);
|
|
81
|
+
--docs-code-border-color: var(--color-white);
|
|
82
|
+
--docs-code-bg-color-selection: var(--color-blue-800);
|
|
83
|
+
--docs-card-bg-color: var(--color-slate-900);
|
|
84
|
+
--docs-step-light-color: var(--color-slate-800);
|
|
85
|
+
|
|
86
|
+
--docs-header-bg-color: var(--color-slate-900);
|
|
87
|
+
--docs-search-modal-bg-color: var(--color-slate-950);
|
|
88
|
+
--docs-search-button-bg-color: var(--color-slate-950);
|
|
89
|
+
|
|
90
|
+
--api-select-list-item-bg-color-hover: var(--color-white);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@apply docs-theme-defaults;
|
|
94
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@utility color-theme-cyan {
|
|
2
|
+
/* primary colors */
|
|
3
|
+
--docs-primary-color: var(--color-cyan-700);
|
|
4
|
+
--docs-primary-light: var(--color-cyan-600);
|
|
5
|
+
--docs-primary-color-hover: var(--color-cyan-800);
|
|
6
|
+
|
|
7
|
+
/* scroll status indicator colors */
|
|
8
|
+
--scroll-status-indicator-horizontal-start-bg: var(--docs-bg-color);
|
|
9
|
+
--scroll-status-indicator-horizontal-complete-bg: var(--docs-primary-color);
|
|
10
|
+
--scroll-status-indicator-horizontal-partial-bg: var(--color-zinc-500);
|
|
11
|
+
|
|
12
|
+
/* text colors */
|
|
13
|
+
--docs-text-color: var(--color-gray-700);
|
|
14
|
+
--docs-body-link-color: var(--docs-primary-color);
|
|
15
|
+
--docs-body-link-hover-color: var(--docs-primary-color-hover);
|
|
16
|
+
|
|
17
|
+
--docs-copied-content-text-color: var(--color-slate-100);
|
|
18
|
+
--menu-footer-header-text-color: var(--docs-text-color);
|
|
19
|
+
|
|
20
|
+
/* footer social icons colors */
|
|
21
|
+
--docs-footer-social-icons-color: var(--docs-text-color);
|
|
22
|
+
--docs-footer-social-icons-hover-color: var(--color-slate-500);
|
|
23
|
+
|
|
24
|
+
/* pagination icons colors */
|
|
25
|
+
--docs-pagination-icon-color: var(--color-gray-400);
|
|
26
|
+
--docs-pagination-icon-color-hover: var(--color-gray-900);
|
|
27
|
+
|
|
28
|
+
/* background and border colors */
|
|
29
|
+
--docs-bg-color: var(--color-white);
|
|
30
|
+
--docs-header-bg-color: var(--color-stone-100);
|
|
31
|
+
--docs-header-border-color: var(--color-slate-500);
|
|
32
|
+
--docs-sidebar-link-bg-color: var(--color-slate-100);
|
|
33
|
+
/* The row for the page you are on, in the sidebar and the mobile bar
|
|
34
|
+
(docs/components/navigation.css, docs/components/mobile-bar.css). Its text is
|
|
35
|
+
--docs-primary-color, and this is its ground; without it the chain in
|
|
36
|
+
components.css fell through to --default-current-location-bg-color, a slate
|
|
37
|
+
unrelated to any accent, so every built-in theme drew themed text on an
|
|
38
|
+
unthemed row. The accent's lightest tint keeps the pair inside one hue.
|
|
39
|
+
Light and dark are one rung apart from the ends of the ramp because the text
|
|
40
|
+
token is NOT lightened for dark mode — see the dark block below. */
|
|
41
|
+
--docs-current-location-bg-color: var(--color-cyan-50);
|
|
42
|
+
--docs-code-bg-color: var(--color-slate-100);
|
|
43
|
+
--docs-code-inner-bg-color: var(--color-white);
|
|
44
|
+
--docs-code-border-color: var(--color-stone-950);
|
|
45
|
+
--docs-code-bg-color-selection: var(--color-cyan-100);
|
|
46
|
+
--docs-form-border-color: var(--color-slate-300);
|
|
47
|
+
--docs-form-border-color-hover: var(--color-slate-400);
|
|
48
|
+
--form-border-color: var(--color-gray-200);
|
|
49
|
+
--form-download-spinner-text: var(--color-cyan-700);
|
|
50
|
+
--docs-card-bg-color: var(--color-slate-100);
|
|
51
|
+
--docs-step-light-color: var(--color-slate-200);
|
|
52
|
+
--docs-fixed-body-bg-color: var(--color-slate-950);
|
|
53
|
+
--api-snippets-bg-color: var(--color-stone-100);
|
|
54
|
+
--docs-search-result-bg-color: var(--color-white);
|
|
55
|
+
--docs-search-button-bg-color: var(--color-white);
|
|
56
|
+
--docs-search-modal-bg-color: var(--color-white);
|
|
57
|
+
|
|
58
|
+
--docs-border-color: var(--docs-header-border-color);
|
|
59
|
+
--api-select-list-item-bg-color-hover: var(--color-neutral-100);
|
|
60
|
+
--docs-button-secondary-bg-color: var(--color-gray-600);
|
|
61
|
+
--docs-button-secondary-bg-hover-color: var(--color-gray-700);
|
|
62
|
+
|
|
63
|
+
@media (prefers-color-scheme: dark) {
|
|
64
|
+
/* scroll status indicator colors */
|
|
65
|
+
--scroll-status-indicator-horizontal-partial-bg: var(--color-zinc-500);
|
|
66
|
+
--scroll-status-indicator-horizontal-complete-bg: var(--color-cyan-800);
|
|
67
|
+
|
|
68
|
+
/* text colors */
|
|
69
|
+
--docs-text-color: var(--color-gray-400);
|
|
70
|
+
--docs-copied-content-text-color: var(--color-slate-300);
|
|
71
|
+
|
|
72
|
+
/* background and border colors */
|
|
73
|
+
--docs-bg-color: var(--color-slate-950);
|
|
74
|
+
|
|
75
|
+
--docs-form-border-color: var(--color-slate-800);
|
|
76
|
+
--docs-form-border-color-hover: var(--color-slate-700);
|
|
77
|
+
--form-border-color: var(--color-gray-600);
|
|
78
|
+
--form-download-spinner-text: var(--color-cyan-400);
|
|
79
|
+
--docs-header-border-color: var(--color-white);
|
|
80
|
+
--docs-sidebar-link-bg-color: var(--color-slate-900);
|
|
81
|
+
/* Darkest rung of the same ramp, NOT a lightened accent: no theme overrides
|
|
82
|
+
--docs-primary-color for dark mode, so the row's text keeps its light-mode
|
|
83
|
+
rung here and the ground has to move to the far end to answer it. For the
|
|
84
|
+
themes whose accent already sits at 700-800 that is still a low-contrast
|
|
85
|
+
pair — the fix for those is a dark-mode --docs-primary-color, not a lighter
|
|
86
|
+
ground, which would make the row a bright slab on a near-black sidebar. */
|
|
87
|
+
--docs-current-location-bg-color: var(--color-cyan-950);
|
|
88
|
+
--docs-sidebar-link-hover-bg-color: var(--color-slate-100);
|
|
89
|
+
|
|
90
|
+
--docs-footer-social-icons-hover-color: var(--color-slate-400);
|
|
91
|
+
--docs-pagination-icon-color: var(--color-slate-400);
|
|
92
|
+
--docs-pagination-icon-color-hover: var(--color-slate-200);
|
|
93
|
+
|
|
94
|
+
--docs-code-bg-color: var(--color-slate-900);
|
|
95
|
+
--docs-code-inner-bg-color: var(--color-slate-950);
|
|
96
|
+
|
|
97
|
+
--docs-code-border-color: var(--color-white);
|
|
98
|
+
--docs-code-bg-color-selection: var(--color-cyan-800);
|
|
99
|
+
--docs-card-bg-color: var(--color-slate-900);
|
|
100
|
+
--docs-step-light-color: var(--color-slate-800);
|
|
101
|
+
|
|
102
|
+
--docs-header-bg-color: var(--color-slate-900);
|
|
103
|
+
|
|
104
|
+
--docs-search-button-bg-color: var(--color-slate-950);
|
|
105
|
+
--docs-search-modal-bg-color: var(--color-slate-950);
|
|
106
|
+
|
|
107
|
+
--api-select-list-item-bg-color-hover: var(--color-white);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@apply docs-theme-defaults;
|
|
111
|
+
}
|