@bookklik/senangstart-css 0.1.0 → 0.1.2
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/.github/workflows/deploy-docs.yml +55 -0
- package/dist/senangstart-css.js +503 -0
- package/dist/senangstart-css.min.js +375 -0
- package/docs/.vitepress/cache/deps/_metadata.json +52 -0
- package/docs/.vitepress/cache/deps/chunk-2CLQ7TTZ.js +9719 -0
- package/docs/.vitepress/cache/deps/chunk-2CLQ7TTZ.js.map +7 -0
- package/docs/.vitepress/cache/deps/chunk-LE5NDSFD.js +12824 -0
- package/docs/.vitepress/cache/deps/chunk-LE5NDSFD.js.map +7 -0
- package/docs/.vitepress/cache/deps/package.json +3 -0
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +4505 -0
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +7 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +583 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +7 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js +1333 -0
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js.map +7 -0
- package/docs/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js +1665 -0
- package/docs/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js.map +7 -0
- package/docs/.vitepress/cache/deps/vitepress___minisearch.js +1813 -0
- package/docs/.vitepress/cache/deps/vitepress___minisearch.js.map +7 -0
- package/docs/.vitepress/cache/deps/vue.js +347 -0
- package/docs/.vitepress/cache/deps/vue.js.map +7 -0
- package/docs/.vitepress/config.js +108 -0
- package/docs/.vitepress/dist/404.html +22 -0
- package/docs/.vitepress/dist/assets/app.BTYj1wZj.js +1 -0
- package/docs/.vitepress/dist/assets/chunks/@localSearchIndexroot.DmMP4oUp.js +1 -0
- package/docs/.vitepress/dist/assets/chunks/VPLocalSearchBox.jxQ0k_uL.js +9 -0
- package/docs/.vitepress/dist/assets/chunks/framework.qISVh_QZ.js +19 -0
- package/docs/.vitepress/dist/assets/chunks/theme.B9Wtbwgj.js +2 -0
- package/docs/.vitepress/dist/assets/examples_cards.md.D4i0phvj.js +84 -0
- package/docs/.vitepress/dist/assets/examples_cards.md.D4i0phvj.lean.js +1 -0
- package/docs/.vitepress/dist/assets/examples_forms.md.BnsjqHST.js +169 -0
- package/docs/.vitepress/dist/assets/examples_forms.md.BnsjqHST.lean.js +1 -0
- package/docs/.vitepress/dist/assets/examples_hero.md.CCcb2x8Y.js +118 -0
- package/docs/.vitepress/dist/assets/examples_hero.md.CCcb2x8Y.lean.js +1 -0
- package/docs/.vitepress/dist/assets/examples_index.md.CcyXbirn.js +52 -0
- package/docs/.vitepress/dist/assets/examples_index.md.CcyXbirn.lean.js +1 -0
- package/docs/.vitepress/dist/assets/examples_navigation.md.CppyHbnP.js +106 -0
- package/docs/.vitepress/dist/assets/examples_navigation.md.CppyHbnP.lean.js +1 -0
- package/docs/.vitepress/dist/assets/guide_cdn.md.CANCjnm5.js +30 -0
- package/docs/.vitepress/dist/assets/guide_cdn.md.CANCjnm5.lean.js +1 -0
- package/docs/.vitepress/dist/assets/guide_cli.md.zXEKk-bu.js +44 -0
- package/docs/.vitepress/dist/assets/guide_cli.md.zXEKk-bu.lean.js +1 -0
- package/docs/.vitepress/dist/assets/guide_configuration.md.D2JZzhKm.js +79 -0
- package/docs/.vitepress/dist/assets/guide_configuration.md.D2JZzhKm.lean.js +1 -0
- package/docs/.vitepress/dist/assets/guide_getting-started.md.tO7bvmZd.js +47 -0
- package/docs/.vitepress/dist/assets/guide_getting-started.md.tO7bvmZd.lean.js +1 -0
- package/docs/.vitepress/dist/assets/guide_index.md.C1xk2lBl.js +3 -0
- package/docs/.vitepress/dist/assets/guide_index.md.C1xk2lBl.lean.js +1 -0
- package/docs/.vitepress/dist/assets/guide_natural-scale.md.D1oVRN5V.js +22 -0
- package/docs/.vitepress/dist/assets/guide_natural-scale.md.D1oVRN5V.lean.js +1 -0
- package/docs/.vitepress/dist/assets/guide_philosophy.md.DPyyMH8d.js +7 -0
- package/docs/.vitepress/dist/assets/guide_philosophy.md.DPyyMH8d.lean.js +1 -0
- package/docs/.vitepress/dist/assets/guide_responsive.md.wksOAMT5.js +57 -0
- package/docs/.vitepress/dist/assets/guide_responsive.md.wksOAMT5.lean.js +1 -0
- package/docs/.vitepress/dist/assets/guide_states.md.DRjYOZDJ.js +77 -0
- package/docs/.vitepress/dist/assets/guide_states.md.DRjYOZDJ.lean.js +1 -0
- package/docs/.vitepress/dist/assets/guide_tri-attribute.md.CoFqfmPZ.js +45 -0
- package/docs/.vitepress/dist/assets/guide_tri-attribute.md.CoFqfmPZ.lean.js +1 -0
- package/docs/.vitepress/dist/assets/index.md.CUZJzNzP.js +7 -0
- package/docs/.vitepress/dist/assets/index.md.CUZJzNzP.lean.js +1 -0
- package/docs/.vitepress/dist/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-cyrillic.By2_1cv3.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-greek-ext.1u6EdAuj.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-greek.DJ8dCoTZ.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-latin-ext.CN1xVJS-.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-latin.C2AdPX0b.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-vietnamese.BSbpV94h.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-greek.BBVDIX6e.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-latin.Di8DUHzh.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-vietnamese.BjW4sHH5.woff2 +0 -0
- package/docs/.vitepress/dist/assets/reference_breakpoints.md.BEhuwXBS.js +48 -0
- package/docs/.vitepress/dist/assets/reference_breakpoints.md.BEhuwXBS.lean.js +1 -0
- package/docs/.vitepress/dist/assets/reference_colors.md.Do4abjs1.js +29 -0
- package/docs/.vitepress/dist/assets/reference_colors.md.Do4abjs1.lean.js +1 -0
- package/docs/.vitepress/dist/assets/reference_layout.md.DqSoofMZ.js +13 -0
- package/docs/.vitepress/dist/assets/reference_layout.md.DqSoofMZ.lean.js +1 -0
- package/docs/.vitepress/dist/assets/reference_space.md.luOYAfQg.js +24 -0
- package/docs/.vitepress/dist/assets/reference_space.md.luOYAfQg.lean.js +1 -0
- package/docs/.vitepress/dist/assets/reference_spacing.md.DdsDhDhS.js +32 -0
- package/docs/.vitepress/dist/assets/reference_spacing.md.DdsDhDhS.lean.js +1 -0
- package/docs/.vitepress/dist/assets/reference_visual.md.DZFvxgPk.js +22 -0
- package/docs/.vitepress/dist/assets/reference_visual.md.DZFvxgPk.lean.js +1 -0
- package/docs/.vitepress/dist/assets/style.BuMqNgkb.css +1 -0
- package/docs/.vitepress/dist/examples/cards.html +108 -0
- package/docs/.vitepress/dist/examples/forms.html +193 -0
- package/docs/.vitepress/dist/examples/hero.html +142 -0
- package/docs/.vitepress/dist/examples/index.html +76 -0
- package/docs/.vitepress/dist/examples/navigation.html +130 -0
- package/docs/.vitepress/dist/guide/cdn.html +54 -0
- package/docs/.vitepress/dist/guide/cli.html +68 -0
- package/docs/.vitepress/dist/guide/configuration.html +103 -0
- package/docs/.vitepress/dist/guide/getting-started.html +71 -0
- package/docs/.vitepress/dist/guide/index.html +27 -0
- package/docs/.vitepress/dist/guide/natural-scale.html +46 -0
- package/docs/.vitepress/dist/guide/philosophy.html +31 -0
- package/docs/.vitepress/dist/guide/responsive.html +81 -0
- package/docs/.vitepress/dist/guide/states.html +101 -0
- package/docs/.vitepress/dist/guide/tri-attribute.html +69 -0
- package/docs/.vitepress/dist/hashmap.json +1 -0
- package/docs/.vitepress/dist/index.html +31 -0
- package/docs/.vitepress/dist/reference/breakpoints.html +72 -0
- package/docs/.vitepress/dist/reference/colors.html +53 -0
- package/docs/.vitepress/dist/reference/layout.html +37 -0
- package/docs/.vitepress/dist/reference/space.html +48 -0
- package/docs/.vitepress/dist/reference/spacing.html +56 -0
- package/docs/.vitepress/dist/reference/visual.html +46 -0
- package/docs/.vitepress/dist/vp-icons.css +1 -0
- package/docs/.vitepress/theme/custom.css +65 -0
- package/docs/.vitepress/theme/index.js +4 -0
- package/docs/examples/cards.md +116 -0
- package/docs/examples/forms.md +207 -0
- package/docs/examples/hero.md +150 -0
- package/docs/examples/index.md +87 -0
- package/docs/examples/navigation.md +144 -0
- package/docs/guide/cdn.md +110 -0
- package/docs/guide/cli.md +174 -0
- package/docs/guide/configuration.md +152 -0
- package/docs/guide/getting-started.md +130 -0
- package/docs/guide/index.md +64 -0
- package/docs/guide/natural-scale.md +123 -0
- package/docs/guide/philosophy.md +103 -0
- package/docs/guide/responsive.md +129 -0
- package/docs/guide/states.md +162 -0
- package/docs/guide/tri-attribute.md +187 -0
- package/docs/index.md +64 -0
- package/docs/reference/breakpoints.md +131 -0
- package/docs/reference/colors.md +106 -0
- package/docs/reference/layout.md +115 -0
- package/docs/reference/space.md +121 -0
- package/docs/reference/spacing.md +74 -0
- package/docs/reference/visual.md +160 -0
- package/package.json +7 -13
- package/scripts/build-dist.js +49 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import{_ as t,c as s,o as a,ag as e}from"./chunks/framework.qISVh_QZ.js";const E=JSON.parse('{"title":"layout Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference/layout.md","filePath":"reference/layout.md"}'),l={name:"reference/layout.md"};function d(n,i,h,p,k,o){return a(),s("div",null,[...i[0]||(i[0]=[e(`<h1 id="layout-reference" tabindex="-1">layout Reference <a class="header-anchor" href="#layout-reference" aria-label="Permalink to "layout Reference""></a></h1><p>The <code>layout</code> attribute controls structure, positioning, and flow.</p><h2 id="display" tabindex="-1">Display <a class="header-anchor" href="#display" aria-label="Permalink to "Display""></a></h2><table tabindex="0"><thead><tr><th>Value</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>flex</code></td><td><code>display: flex</code></td></tr><tr><td><code>grid</code></td><td><code>display: grid</code></td></tr><tr><td><code>block</code></td><td><code>display: block</code></td></tr><tr><td><code>inline</code></td><td><code>display: inline-block</code></td></tr><tr><td><code>hidden</code></td><td><code>display: none</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Flexbox container</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
2
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"grid"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Grid container</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
3
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"hidden"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Hidden element</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="flex-direction" tabindex="-1">Flex Direction <a class="header-anchor" href="#flex-direction" aria-label="Permalink to "Flex Direction""></a></h2><table tabindex="0"><thead><tr><th>Value</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>row</code></td><td><code>flex-direction: row</code></td></tr><tr><td><code>col</code></td><td><code>flex-direction: column</code></td></tr><tr><td><code>row-reverse</code></td><td><code>flex-direction: row-reverse</code></td></tr><tr><td><code>col-reverse</code></td><td><code>flex-direction: column-reverse</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex row"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Horizontal</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
4
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex col"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Vertical</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="alignment" tabindex="-1">Alignment <a class="header-anchor" href="#alignment" aria-label="Permalink to "Alignment""></a></h2><table tabindex="0"><thead><tr><th>Value</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>center</code></td><td><code>justify-content: center; align-items: center</code></td></tr><tr><td><code>start</code></td><td><code>justify-content: flex-start; align-items: flex-start</code></td></tr><tr><td><code>end</code></td><td><code>justify-content: flex-end; align-items: flex-end</code></td></tr><tr><td><code>between</code></td><td><code>justify-content: space-between</code></td></tr><tr><td><code>around</code></td><td><code>justify-content: space-around</code></td></tr><tr><td><code>evenly</code></td><td><code>justify-content: space-evenly</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex center"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Centered</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
5
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex between"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Space between</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="flex-wrap" tabindex="-1">Flex Wrap <a class="header-anchor" href="#flex-wrap" aria-label="Permalink to "Flex Wrap""></a></h2><table tabindex="0"><thead><tr><th>Value</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>wrap</code></td><td><code>flex-wrap: wrap</code></td></tr><tr><td><code>nowrap</code></td><td><code>flex-wrap: nowrap</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex wrap"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Wrapping flex</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="position" tabindex="-1">Position <a class="header-anchor" href="#position" aria-label="Permalink to "Position""></a></h2><table tabindex="0"><thead><tr><th>Value</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>relative</code></td><td><code>position: relative</code></td></tr><tr><td><code>absolute</code></td><td><code>position: absolute</code></td></tr><tr><td><code>fixed</code></td><td><code>position: fixed</code></td></tr><tr><td><code>sticky</code></td><td><code>position: sticky</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">nav</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"fixed"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Fixed nav</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">nav</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
6
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"sticky"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Sticky element</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="z-index" tabindex="-1">Z-Index <a class="header-anchor" href="#z-index" aria-label="Permalink to "Z-Index""></a></h2><table tabindex="0"><thead><tr><th>Value</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>z:base</code></td><td><code>z-index: 0</code></td></tr><tr><td><code>z:low</code></td><td><code>z-index: 10</code></td></tr><tr><td><code>z:mid</code></td><td><code>z-index: 50</code></td></tr><tr><td><code>z:high</code></td><td><code>z-index: 100</code></td></tr><tr><td><code>z:top</code></td><td><code>z-index: 9999</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">nav</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"fixed z:top"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Always on top</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">nav</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
7
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"absolute z:high"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>High z-index</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="overflow" tabindex="-1">Overflow <a class="header-anchor" href="#overflow" aria-label="Permalink to "Overflow""></a></h2><table tabindex="0"><thead><tr><th>Value</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>overflow:hidden</code></td><td><code>overflow: hidden</code></td></tr><tr><td><code>overflow:auto</code></td><td><code>overflow: auto</code></td></tr><tr><td><code>overflow:scroll</code></td><td><code>overflow: scroll</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"overflow:hidden"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Clipped content</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="combining-values" tabindex="-1">Combining Values <a class="header-anchor" href="#combining-values" aria-label="Permalink to "Combining Values""></a></h2><p>Combine multiple layout values with spaces:</p><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex col center wrap"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
8
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Vertical, centered, wrapping flexbox</span></span>
|
|
9
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"></</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
10
|
+
<span class="line"></span>
|
|
11
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">nav</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex between fixed z:top"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
12
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Fixed nav with space-between</span></span>
|
|
13
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"></</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">nav</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div>`,26)])])}const c=t(l,[["render",d]]);export{E as __pageData,c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t,c as s,o as a,ag as e}from"./chunks/framework.qISVh_QZ.js";const E=JSON.parse('{"title":"layout Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference/layout.md","filePath":"reference/layout.md"}'),l={name:"reference/layout.md"};function d(n,i,h,p,k,o){return a(),s("div",null,[...i[0]||(i[0]=[e("",26)])])}const c=t(l,[["render",d]]);export{E as __pageData,c as default};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{_ as i,c as t,o as a,ag as e}from"./chunks/framework.qISVh_QZ.js";const o=JSON.parse('{"title":"space Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference/space.md","filePath":"reference/space.md"}'),h={name:"reference/space.md"};function d(n,s,l,p,k,r){return a(),t("div",null,[...s[0]||(s[0]=[e(`<h1 id="space-reference" tabindex="-1">space Reference <a class="header-anchor" href="#space-reference" aria-label="Permalink to "space Reference""></a></h1><p>The <code>space</code> attribute controls sizing and spacing.</p><h2 id="syntax" tabindex="-1">Syntax <a class="header-anchor" href="#syntax" aria-label="Permalink to "Syntax""></a></h2><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>[breakpoint]:[property]:[scale]</span></span></code></pre></div><p><strong>Breakpoints:</strong> <code>mob:</code>, <code>tab:</code>, <code>lap:</code>, <code>desk:</code></p><p><strong>Scale values:</strong> <code>none</code>, <code>tiny</code>, <code>small</code>, <code>medium</code>, <code>big</code>, <code>giant</code>, <code>vast</code></p><h2 id="padding" tabindex="-1">Padding <a class="header-anchor" href="#padding" aria-label="Permalink to "Padding""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>p</code></td><td><code>padding</code> (all sides)</td></tr><tr><td><code>p-t</code></td><td><code>padding-top</code></td></tr><tr><td><code>p-r</code></td><td><code>padding-right</code></td></tr><tr><td><code>p-b</code></td><td><code>padding-bottom</code></td></tr><tr><td><code>p-l</code></td><td><code>padding-left</code></td></tr><tr><td><code>p-x</code></td><td><code>padding-left</code> + <code>padding-right</code></td></tr><tr><td><code>p-y</code></td><td><code>padding-top</code> + <code>padding-bottom</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"p:medium"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>All sides</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
2
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"p-x:big p-y:small"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Horizontal/vertical</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
3
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"p-t:tiny p-b:giant"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Top and bottom</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="margin" tabindex="-1">Margin <a class="header-anchor" href="#margin" aria-label="Permalink to "Margin""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>m</code></td><td><code>margin</code> (all sides)</td></tr><tr><td><code>m-t</code></td><td><code>margin-top</code></td></tr><tr><td><code>m-r</code></td><td><code>margin-right</code></td></tr><tr><td><code>m-b</code></td><td><code>margin-bottom</code></td></tr><tr><td><code>m-l</code></td><td><code>margin-left</code></td></tr><tr><td><code>m-x</code></td><td><code>margin-left</code> + <code>margin-right</code></td></tr><tr><td><code>m-y</code></td><td><code>margin-top</code> + <code>margin-bottom</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"m:medium"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>All sides</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
4
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"m-b:big"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Bottom margin</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
5
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"m-x:auto"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Center horizontally</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="gap" tabindex="-1">Gap <a class="header-anchor" href="#gap" aria-label="Permalink to "Gap""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>g</code></td><td><code>gap</code> (flex/grid)</td></tr><tr><td><code>g-x</code></td><td><code>column-gap</code></td></tr><tr><td><code>g-y</code></td><td><code>row-gap</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex"</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"g:small"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Small gap</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
6
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"grid"</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"g-x:big g-y:small"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Different gaps</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="sizing" tabindex="-1">Sizing <a class="header-anchor" href="#sizing" aria-label="Permalink to "Sizing""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>w</code></td><td><code>width</code></td></tr><tr><td><code>h</code></td><td><code>height</code></td></tr><tr><td><code>min-w</code></td><td><code>min-width</code></td></tr><tr><td><code>max-w</code></td><td><code>max-width</code></td></tr><tr><td><code>min-h</code></td><td><code>min-height</code></td></tr><tr><td><code>max-h</code></td><td><code>max-height</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"w:[100%] h:[400px]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Explicit size</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
7
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"max-w:[1200px]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Max width container</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
8
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"min-h:[100vh]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Full viewport height</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="arbitrary-values-escape-hatch" tabindex="-1">Arbitrary Values (Escape Hatch) <a class="header-anchor" href="#arbitrary-values-escape-hatch" aria-label="Permalink to "Arbitrary Values (Escape Hatch)""></a></h2><p>Use brackets <code>[value]</code> for specific values:</p><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"w:[350px]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>350 pixels</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
9
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"h:[50vh]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>50% viewport height</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
10
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"p:[20px_40px]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>20px vertical, 40px horizontal</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
11
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"m-t:[5rem]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>5rem top margin</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="responsive-examples" tabindex="-1">Responsive Examples <a class="header-anchor" href="#responsive-examples" aria-label="Permalink to "Responsive Examples""></a></h2><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"><!-- Progressive padding --></span></span>
|
|
12
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">section</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"p:small tab:p:medium lap:p:big desk:p:giant"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
13
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Grows with screen size</span></span>
|
|
14
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"></</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">section</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
15
|
+
<span class="line"></span>
|
|
16
|
+
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"><!-- Responsive width --></span></span>
|
|
17
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"w:[100%] tab:w:[50%] lap:w:[33%]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
18
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Full → half → third</span></span>
|
|
19
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"></</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
20
|
+
<span class="line"></span>
|
|
21
|
+
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"><!-- Responsive gap --></span></span>
|
|
22
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex"</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"g:small tab:g:medium lap:g:big"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
23
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Growing gaps</span></span>
|
|
24
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"></</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="scale-reference" tabindex="-1">Scale Reference <a class="header-anchor" href="#scale-reference" aria-label="Permalink to "Scale Reference""></a></h2><table tabindex="0"><thead><tr><th>Keyword</th><th>Default Value</th></tr></thead><tbody><tr><td><code>none</code></td><td>0px</td></tr><tr><td><code>tiny</code></td><td>4px</td></tr><tr><td><code>small</code></td><td>8px</td></tr><tr><td><code>medium</code></td><td>16px</td></tr><tr><td><code>big</code></td><td>32px</td></tr><tr><td><code>giant</code></td><td>64px</td></tr><tr><td><code>vast</code></td><td>128px</td></tr></tbody></table>`,25)])])}const g=i(h,[["render",d]]);export{o as __pageData,g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as i,c as t,o as a,ag as e}from"./chunks/framework.qISVh_QZ.js";const o=JSON.parse('{"title":"space Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference/space.md","filePath":"reference/space.md"}'),h={name:"reference/space.md"};function d(n,s,l,p,k,r){return a(),t("div",null,[...s[0]||(s[0]=[e("",25)])])}const g=i(h,[["render",d]]);export{o as __pageData,g as default};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import{_ as i,c as a,o as n,ag as t}from"./chunks/framework.qISVh_QZ.js";const g=JSON.parse('{"title":"Spacing Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference/spacing.md","filePath":"reference/spacing.md"}'),p={name:"reference/spacing.md"};function l(e,s,h,k,d,r){return n(),a("div",null,[...s[0]||(s[0]=[t(`<h1 id="spacing-reference" tabindex="-1">Spacing Reference <a class="header-anchor" href="#spacing-reference" aria-label="Permalink to "Spacing Reference""></a></h1><p>Complete reference for the spacing scale.</p><h2 id="default-scale" tabindex="-1">Default Scale <a class="header-anchor" href="#default-scale" aria-label="Permalink to "Default Scale""></a></h2><table tabindex="0"><thead><tr><th>Keyword</th><th>Value</th><th>Use Case</th></tr></thead><tbody><tr><td><code>none</code></td><td>0px</td><td>Reset spacing</td></tr><tr><td><code>tiny</code></td><td>4px</td><td>Borders, small offsets</td></tr><tr><td><code>small</code></td><td>8px</td><td>Group related items</td></tr><tr><td><code>medium</code></td><td>16px</td><td>Standard default</td></tr><tr><td><code>big</code></td><td>32px</td><td>Separate sections</td></tr><tr><td><code>giant</code></td><td>64px</td><td>Layout divisions</td></tr><tr><td><code>vast</code></td><td>128px</td><td>Hero sections</td></tr></tbody></table><h2 id="css-variables" tabindex="-1">CSS Variables <a class="header-anchor" href="#css-variables" aria-label="Permalink to "CSS Variables""></a></h2><p>The spacing scale generates these CSS variables:</p><div class="language-css vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">css</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">:root</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
|
|
2
|
+
<span class="line"><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;"> --s-none</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">0</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">px</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">;</span></span>
|
|
3
|
+
<span class="line"><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;"> --s-tiny</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">4</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">px</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">;</span></span>
|
|
4
|
+
<span class="line"><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;"> --s-small</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">8</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">px</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">;</span></span>
|
|
5
|
+
<span class="line"><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;"> --s-medium</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">16</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">px</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">;</span></span>
|
|
6
|
+
<span class="line"><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;"> --s-big</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">32</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">px</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">;</span></span>
|
|
7
|
+
<span class="line"><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;"> --s-giant</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">64</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">px</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">;</span></span>
|
|
8
|
+
<span class="line"><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;"> --s-vast</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">128</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">px</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">;</span></span>
|
|
9
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><h2 id="usage-examples" tabindex="-1">Usage Examples <a class="header-anchor" href="#usage-examples" aria-label="Permalink to "Usage Examples""></a></h2><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"><!-- Padding --></span></span>
|
|
10
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"p:medium"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>16px padding all sides</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
11
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"p-x:big"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>32px horizontal padding</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
12
|
+
<span class="line"></span>
|
|
13
|
+
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"><!-- Margin --></span></span>
|
|
14
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"m:small"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>8px margin all sides</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
15
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"m-b:giant"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>64px bottom margin</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
16
|
+
<span class="line"></span>
|
|
17
|
+
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"><!-- Gap --></span></span>
|
|
18
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex"</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"g:small"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>8px gap between items</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="customization" tabindex="-1">Customization <a class="header-anchor" href="#customization" aria-label="Permalink to "Customization""></a></h2><p>Override in <code>senangstart.config.js</code>:</p><div class="language-javascript vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">javascript</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> default</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
|
|
19
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> theme: {</span></span>
|
|
20
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> spacing: {</span></span>
|
|
21
|
+
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'tiny'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'2px'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// Override existing</span></span>
|
|
22
|
+
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'huge'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'256px'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// Add new</span></span>
|
|
23
|
+
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'massive'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'512px'</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> // Add new</span></span>
|
|
24
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
25
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
26
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><h2 id="visual-guide" tabindex="-1">Visual Guide <a class="header-anchor" href="#visual-guide" aria-label="Permalink to "Visual Guide""></a></h2><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>none │ (no space)</span></span>
|
|
27
|
+
<span class="line"><span>tiny │▌ 4px</span></span>
|
|
28
|
+
<span class="line"><span>small │██ 8px</span></span>
|
|
29
|
+
<span class="line"><span>medium │████ 16px</span></span>
|
|
30
|
+
<span class="line"><span>big │████████ 32px</span></span>
|
|
31
|
+
<span class="line"><span>giant │████████████████ 64px</span></span>
|
|
32
|
+
<span class="line"><span>vast │████████████████████████████████ 128px</span></span></code></pre></div>`,14)])])}const c=i(p,[["render",l]]);export{g as __pageData,c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as i,c as a,o as n,ag as t}from"./chunks/framework.qISVh_QZ.js";const g=JSON.parse('{"title":"Spacing Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference/spacing.md","filePath":"reference/spacing.md"}'),p={name:"reference/spacing.md"};function l(e,s,h,k,d,r){return n(),a("div",null,[...s[0]||(s[0]=[t("",14)])])}const c=i(p,[["render",l]]);export{g as __pageData,c as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import{_ as i,c as t,o as a,ag as e}from"./chunks/framework.qISVh_QZ.js";const E=JSON.parse('{"title":"visual Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference/visual.md","filePath":"reference/visual.md"}'),h={name:"reference/visual.md"};function d(l,s,n,p,k,r){return a(),t("div",null,[...s[0]||(s[0]=[e(`<h1 id="visual-reference" tabindex="-1">visual Reference <a class="header-anchor" href="#visual-reference" aria-label="Permalink to "visual Reference""></a></h1><p>The <code>visual</code> attribute controls colors, textures, and appearance.</p><h2 id="background" tabindex="-1">Background <a class="header-anchor" href="#background" aria-label="Permalink to "Background""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>bg:white</code></td><td><code>background-color: var(--c-white)</code></td></tr><tr><td><code>bg:primary</code></td><td><code>background-color: var(--c-primary)</code></td></tr><tr><td><code>bg:[#hex]</code></td><td><code>background-color: #hex</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"bg:white"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>White background</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
2
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"bg:primary"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Primary color</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
3
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"bg:[#FF5733]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Custom hex</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
4
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"bg:[rgba(0,0,0,0.5)]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Semi-transparent</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="text-color" tabindex="-1">Text Color <a class="header-anchor" href="#text-color" aria-label="Permalink to "Text Color""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>text:dark</code></td><td><code>color: var(--c-dark)</code></td></tr><tr><td><code>text:grey</code></td><td><code>color: var(--c-grey)</code></td></tr><tr><td><code>text:primary</code></td><td><code>color: var(--c-primary)</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"text:dark"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Dark text</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
5
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"text:grey"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Grey text</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
6
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"text:primary"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Primary text</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="text-size" tabindex="-1">Text Size <a class="header-anchor" href="#text-size" aria-label="Permalink to "Text Size""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>text-size:tiny</code></td><td><code>font-size: 12px</code></td></tr><tr><td><code>text-size:small</code></td><td><code>font-size: 14px</code></td></tr><tr><td><code>text-size:medium</code></td><td><code>font-size: 16px</code></td></tr><tr><td><code>text-size:big</code></td><td><code>font-size: 20px</code></td></tr><tr><td><code>text-size:giant</code></td><td><code>font-size: 32px</code></td></tr><tr><td><code>text-size:vast</code></td><td><code>font-size: 48px</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"text-size:small"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Small text</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
7
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">h1</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"text-size:giant"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Giant heading</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">h1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="font-weight" tabindex="-1">Font Weight <a class="header-anchor" href="#font-weight" aria-label="Permalink to "Font Weight""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>font:normal</code></td><td><code>font-weight: 400</code></td></tr><tr><td><code>font:medium</code></td><td><code>font-weight: 500</code></td></tr><tr><td><code>font:bold</code></td><td><code>font-weight: 700</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"font:normal"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Normal weight</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
8
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"font:bold"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Bold text</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="text-alignment" tabindex="-1">Text Alignment <a class="header-anchor" href="#text-alignment" aria-label="Permalink to "Text Alignment""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>text:left</code></td><td><code>text-align: left</code></td></tr><tr><td><code>text:center</code></td><td><code>text-align: center</code></td></tr><tr><td><code>text:right</code></td><td><code>text-align: right</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">p</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"text:center"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Centered text</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">p</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="border-radius" tabindex="-1">Border Radius <a class="header-anchor" href="#border-radius" aria-label="Permalink to "Border Radius""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>rounded:none</code></td><td><code>border-radius: 0</code></td></tr><tr><td><code>rounded:small</code></td><td><code>border-radius: 4px</code></td></tr><tr><td><code>rounded:medium</code></td><td><code>border-radius: 8px</code></td></tr><tr><td><code>rounded:big</code></td><td><code>border-radius: 16px</code></td></tr><tr><td><code>rounded:round</code></td><td><code>border-radius: 9999px</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"rounded:small"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Subtle rounding</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
9
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"rounded:big"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Obvious rounding</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
10
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"rounded:round"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Pill button</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="box-shadow" tabindex="-1">Box Shadow <a class="header-anchor" href="#box-shadow" aria-label="Permalink to "Box Shadow""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>shadow:none</code></td><td><code>box-shadow: none</code></td></tr><tr><td><code>shadow:small</code></td><td><code>box-shadow: 0 1px 2px rgba(0,0,0,0.05)</code></td></tr><tr><td><code>shadow:medium</code></td><td><code>box-shadow: 0 4px 6px rgba(0,0,0,0.1)</code></td></tr><tr><td><code>shadow:big</code></td><td><code>box-shadow: 0 10px 15px rgba(0,0,0,0.15)</code></td></tr><tr><td><code>shadow:giant</code></td><td><code>box-shadow: 0 25px 50px rgba(0,0,0,0.25)</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"shadow:small"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Subtle shadow</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
11
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"shadow:big"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Prominent shadow</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="border" tabindex="-1">Border <a class="header-anchor" href="#border" aria-label="Permalink to "Border""></a></h2><table tabindex="0"><thead><tr><th>Property</th><th>CSS Output</th></tr></thead><tbody><tr><td><code>border:grey</code></td><td><code>border-color: var(--c-grey); border-style: solid</code></td></tr><tr><td><code>border-w:[2px]</code></td><td><code>border-width: 2px; border-style: solid</code></td></tr></tbody></table><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"border:grey border-w:[1px]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Bordered element</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="opacity" tabindex="-1">Opacity <a class="header-anchor" href="#opacity" aria-label="Permalink to "Opacity""></a></h2><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"opacity:[0.5]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>50% opacity</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
12
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"opacity:[0.8]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>80% opacity</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="color-palette" tabindex="-1">Color Palette <a class="header-anchor" href="#color-palette" aria-label="Permalink to "Color Palette""></a></h2><table tabindex="0"><thead><tr><th>Key</th><th>Default Value</th></tr></thead><tbody><tr><td><code>white</code></td><td>#FFFFFF</td></tr><tr><td><code>black</code></td><td>#000000</td></tr><tr><td><code>grey</code></td><td>#6B7280</td></tr><tr><td><code>dark</code></td><td>#1F2937</td></tr><tr><td><code>light</code></td><td>#F3F4F6</td></tr><tr><td><code>primary</code></td><td>#3B82F6</td></tr><tr><td><code>success</code></td><td>#10B981</td></tr><tr><td><code>warning</code></td><td>#F59E0B</td></tr><tr><td><code>danger</code></td><td>#EF4444</td></tr></tbody></table><h2 id="state-prefixes" tabindex="-1">State Prefixes <a class="header-anchor" href="#state-prefixes" aria-label="Permalink to "State Prefixes""></a></h2><p>Combine with <code>hover:</code>, <code>focus:</code>, <code>active:</code>, <code>disabled:</code>:</p><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"bg:primary hover:bg:[#2563EB]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
13
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Hover effect</span></span>
|
|
14
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"></</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
15
|
+
<span class="line"></span>
|
|
16
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">a</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"text:grey hover:text:primary"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
17
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Link hover</span></span>
|
|
18
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"></</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">a</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
19
|
+
<span class="line"></span>
|
|
20
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">input</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"border:grey focus:border:primary"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> /></span></span></code></pre></div><h2 id="combining-properties" tabindex="-1">Combining Properties <a class="header-anchor" href="#combining-properties" aria-label="Permalink to "Combining Properties""></a></h2><div class="language-html vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> visual</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"bg:white rounded:big shadow:medium text:dark"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
21
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Card with multiple visual properties</span></span>
|
|
22
|
+
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"></</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div>`,35)])])}const g=i(h,[["render",d]]);export{E as __pageData,g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as i,c as t,o as a,ag as e}from"./chunks/framework.qISVh_QZ.js";const E=JSON.parse('{"title":"visual Reference","description":"","frontmatter":{},"headers":[],"relativePath":"reference/visual.md","filePath":"reference/visual.md"}'),h={name:"reference/visual.md"};function d(l,s,n,p,k,r){return a(),t("div",null,[...s[0]||(s[0]=[e("",35)])])}const g=i(h,[["render",d]]);export{E as __pageData,g as default};
|