@bookklik/senangstart-css 0.1.4 → 0.1.7
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 +7 -1
- package/dist/senangstart-css.js +1436 -14
- package/dist/senangstart-css.min.js +1159 -10
- package/docs/.vitepress/config.js +621 -15
- package/docs/SYNTAX-REFERENCE.md +1555 -0
- package/docs/guide/preflight.md +139 -0
- package/docs/ms/guide/preflight.md +139 -0
- package/docs/ms/reference/colors.md +45 -45
- package/docs/ms/reference/layout/align-content.md +35 -0
- package/docs/ms/reference/layout/align-items.md +33 -0
- package/docs/ms/reference/layout/align-self.md +34 -0
- package/docs/ms/reference/layout/aspect-ratio.md +40 -0
- package/docs/ms/reference/layout/border-collapse.md +30 -0
- package/docs/ms/reference/layout/border-spacing.md +39 -0
- package/docs/ms/reference/layout/box-sizing.md +30 -0
- package/docs/ms/reference/layout/caption-side.md +30 -0
- package/docs/ms/reference/layout/columns.md +30 -0
- package/docs/ms/reference/layout/container.md +29 -0
- package/docs/ms/reference/layout/display.md +60 -0
- package/docs/ms/reference/layout/flex-basis.md +38 -0
- package/docs/ms/reference/layout/flex-direction.md +33 -0
- package/docs/ms/reference/layout/flex-items.md +32 -0
- package/docs/ms/reference/layout/flex-wrap.md +31 -0
- package/docs/ms/reference/layout/flex.md +40 -0
- package/docs/ms/reference/layout/float-clear.md +32 -0
- package/docs/ms/reference/layout/grid-auto-flow.md +33 -0
- package/docs/ms/reference/layout/grid-auto-sizing.md +32 -0
- package/docs/ms/reference/layout/grid-column-span.md +31 -0
- package/docs/ms/reference/layout/grid-columns.md +32 -0
- package/docs/ms/reference/layout/grid-row-span.md +30 -0
- package/docs/ms/reference/layout/grid-rows.md +31 -0
- package/docs/ms/reference/layout/inset.md +44 -0
- package/docs/ms/reference/layout/isolation.md +30 -0
- package/docs/ms/reference/layout/justify-content.md +36 -0
- package/docs/ms/reference/layout/justify-items.md +32 -0
- package/docs/ms/reference/layout/justify-self.md +33 -0
- package/docs/ms/reference/layout/object-fit.md +33 -0
- package/docs/ms/reference/layout/object-position.md +45 -0
- package/docs/ms/reference/layout/order.md +32 -0
- package/docs/ms/reference/layout/overflow.md +34 -0
- package/docs/ms/reference/layout/overscroll.md +31 -0
- package/docs/ms/reference/layout/place-content.md +35 -0
- package/docs/ms/reference/layout/place-items.md +32 -0
- package/docs/ms/reference/layout/place-self.md +33 -0
- package/docs/ms/reference/layout/position.md +34 -0
- package/docs/ms/reference/layout/shorthand-alignment.md +34 -0
- package/docs/ms/reference/layout/table-layout.md +30 -0
- package/docs/ms/reference/layout/visibility.md +30 -0
- package/docs/ms/reference/layout/z-index.md +33 -0
- package/docs/ms/reference/layout.md +53 -95
- package/docs/ms/reference/space/arbitrary-values.md +32 -0
- package/docs/ms/reference/space/gap.md +44 -0
- package/docs/ms/reference/space/height.md +44 -0
- package/docs/ms/reference/space/margin.md +49 -0
- package/docs/ms/reference/space/padding.md +49 -0
- package/docs/ms/reference/space/scale-reference.md +43 -0
- package/docs/ms/reference/space/sizing.md +27 -0
- package/docs/ms/reference/space/width.md +45 -0
- package/docs/ms/reference/space.md +15 -99
- package/docs/ms/reference/spacing.md +22 -8
- package/docs/ms/reference/visual/accent-color.md +31 -0
- package/docs/ms/reference/visual/animation-builtin.md +41 -0
- package/docs/ms/reference/visual/animation-delay.md +41 -0
- package/docs/ms/reference/visual/animation-direction.md +32 -0
- package/docs/ms/reference/visual/animation-duration.md +43 -0
- package/docs/ms/reference/visual/animation-fill.md +32 -0
- package/docs/ms/reference/visual/animation-iteration.md +30 -0
- package/docs/ms/reference/visual/animation-play.md +30 -0
- package/docs/ms/reference/visual/appearance.md +30 -0
- package/docs/ms/reference/visual/backdrop-blur.md +43 -0
- package/docs/ms/reference/visual/backdrop-brightness.md +41 -0
- package/docs/ms/reference/visual/backdrop-contrast.md +41 -0
- package/docs/ms/reference/visual/backdrop-grayscale.md +39 -0
- package/docs/ms/reference/visual/backdrop-hue-rotate.md +39 -0
- package/docs/ms/reference/visual/backdrop-invert.md +39 -0
- package/docs/ms/reference/visual/backdrop-opacity.md +39 -0
- package/docs/ms/reference/visual/backdrop-saturate.md +41 -0
- package/docs/ms/reference/visual/backdrop-sepia.md +39 -0
- package/docs/ms/reference/visual/background-attachment.md +31 -0
- package/docs/ms/reference/visual/background-blend-mode.md +34 -0
- package/docs/ms/reference/visual/background-clip.md +32 -0
- package/docs/ms/reference/visual/background-color.md +33 -0
- package/docs/ms/reference/visual/background-image.md +41 -0
- package/docs/ms/reference/visual/background-origin.md +31 -0
- package/docs/ms/reference/visual/background-position.md +45 -0
- package/docs/ms/reference/visual/background-repeat.md +34 -0
- package/docs/ms/reference/visual/background-size.md +39 -0
- package/docs/ms/reference/visual/background.md +13 -0
- package/docs/ms/reference/visual/blend-modes.md +34 -0
- package/docs/ms/reference/visual/border-radius.md +34 -0
- package/docs/ms/reference/visual/border-style.md +33 -0
- package/docs/ms/reference/visual/border-width.md +44 -0
- package/docs/ms/reference/visual/border.md +43 -0
- package/docs/ms/reference/visual/box-shadow.md +33 -0
- package/docs/ms/reference/visual/caret-color.md +31 -0
- package/docs/ms/reference/visual/color-scheme.md +31 -0
- package/docs/ms/reference/visual/cursor.md +37 -0
- package/docs/ms/reference/visual/field-sizing.md +30 -0
- package/docs/ms/reference/visual/fill.md +38 -0
- package/docs/ms/reference/visual/filter-blur.md +43 -0
- package/docs/ms/reference/visual/filter-brightness.md +41 -0
- package/docs/ms/reference/visual/filter-contrast.md +41 -0
- package/docs/ms/reference/visual/filter-drop-shadow.md +42 -0
- package/docs/ms/reference/visual/filter-grayscale.md +39 -0
- package/docs/ms/reference/visual/filter-hue-rotate.md +39 -0
- package/docs/ms/reference/visual/filter-invert.md +39 -0
- package/docs/ms/reference/visual/filter-saturate.md +41 -0
- package/docs/ms/reference/visual/filter-sepia.md +39 -0
- package/docs/ms/reference/visual/font-family.md +31 -0
- package/docs/ms/reference/visual/font-smoothing.md +30 -0
- package/docs/ms/reference/visual/font-style.md +30 -0
- package/docs/ms/reference/visual/font-variant-numeric.md +35 -0
- package/docs/ms/reference/visual/font-weight.md +31 -0
- package/docs/ms/reference/visual/forced-color-adjust.md +30 -0
- package/docs/ms/reference/visual/hyphens.md +31 -0
- package/docs/ms/reference/visual/letter-spacing.md +42 -0
- package/docs/ms/reference/visual/line-clamp.md +40 -0
- package/docs/ms/reference/visual/line-height.md +42 -0
- package/docs/ms/reference/visual/list-style.md +34 -0
- package/docs/ms/reference/visual/mask.md +39 -0
- package/docs/ms/reference/visual/opacity.md +33 -0
- package/docs/ms/reference/visual/outline.md +31 -0
- package/docs/ms/reference/visual/pointer-events.md +30 -0
- package/docs/ms/reference/visual/resize.md +32 -0
- package/docs/ms/reference/visual/scroll-behavior.md +30 -0
- package/docs/ms/reference/visual/scroll-margin.md +41 -0
- package/docs/ms/reference/visual/scroll-padding.md +41 -0
- package/docs/ms/reference/visual/scroll-snap-align.md +32 -0
- package/docs/ms/reference/visual/scroll-snap-stop.md +30 -0
- package/docs/ms/reference/visual/scroll-snap-type.md +34 -0
- package/docs/ms/reference/visual/state-prefixes.md +37 -0
- package/docs/ms/reference/visual/stroke-width.md +39 -0
- package/docs/ms/reference/visual/stroke.md +38 -0
- package/docs/ms/reference/visual/text-alignment.md +32 -0
- package/docs/ms/reference/visual/text-color.md +41 -0
- package/docs/ms/reference/visual/text-decoration.md +32 -0
- package/docs/ms/reference/visual/text-indent.md +37 -0
- package/docs/ms/reference/visual/text-overflow.md +31 -0
- package/docs/ms/reference/visual/text-shadow.md +40 -0
- package/docs/ms/reference/visual/text-size.md +32 -0
- package/docs/ms/reference/visual/text-transform.md +32 -0
- package/docs/ms/reference/visual/text-wrap.md +32 -0
- package/docs/ms/reference/visual/touch-action.md +36 -0
- package/docs/ms/reference/visual/transform-backface.md +30 -0
- package/docs/ms/reference/visual/transform-origin.md +45 -0
- package/docs/ms/reference/visual/transform-perspective-origin.md +45 -0
- package/docs/ms/reference/visual/transform-perspective.md +43 -0
- package/docs/ms/reference/visual/transform-rotate.md +40 -0
- package/docs/ms/reference/visual/transform-scale.md +43 -0
- package/docs/ms/reference/visual/transform-skew.md +40 -0
- package/docs/ms/reference/visual/transform-style.md +30 -0
- package/docs/ms/reference/visual/transform-translate.md +39 -0
- package/docs/ms/reference/visual/transition-delay.md +41 -0
- package/docs/ms/reference/visual/transition-duration.md +43 -0
- package/docs/ms/reference/visual/transition-property.md +34 -0
- package/docs/ms/reference/visual/transition-timing.md +40 -0
- package/docs/ms/reference/visual/typography-keywords.md +81 -0
- package/docs/ms/reference/visual/user-select.md +32 -0
- package/docs/ms/reference/visual/vertical-align.md +36 -0
- package/docs/ms/reference/visual/whitespace.md +34 -0
- package/docs/ms/reference/visual/will-change.md +33 -0
- package/docs/ms/reference/visual/word-break.md +32 -0
- package/docs/ms/reference/visual.md +145 -148
- package/docs/public/assets/senangstart-css.min.js +1545 -0
- package/docs/reference/layout/align-content.md +35 -0
- package/docs/reference/layout/align-items.md +33 -0
- package/docs/reference/layout/align-self.md +34 -0
- package/docs/reference/layout/aspect-ratio.md +40 -0
- package/docs/reference/layout/border-collapse.md +30 -0
- package/docs/reference/layout/border-spacing.md +39 -0
- package/docs/reference/layout/box-sizing.md +30 -0
- package/docs/reference/layout/caption-side.md +30 -0
- package/docs/reference/layout/columns.md +30 -0
- package/docs/reference/layout/container.md +29 -0
- package/docs/reference/layout/display.md +60 -0
- package/docs/reference/layout/flex-basis.md +38 -0
- package/docs/reference/layout/flex-direction.md +33 -0
- package/docs/reference/layout/flex-items.md +32 -0
- package/docs/reference/layout/flex-wrap.md +31 -0
- package/docs/reference/layout/flex.md +40 -0
- package/docs/reference/layout/float-clear.md +32 -0
- package/docs/reference/layout/grid-auto-flow.md +33 -0
- package/docs/reference/layout/grid-auto-sizing.md +32 -0
- package/docs/reference/layout/grid-column-span.md +31 -0
- package/docs/reference/layout/grid-columns.md +32 -0
- package/docs/reference/layout/grid-row-span.md +30 -0
- package/docs/reference/layout/grid-rows.md +31 -0
- package/docs/reference/layout/inset.md +44 -0
- package/docs/reference/layout/isolation.md +30 -0
- package/docs/reference/layout/justify-content.md +36 -0
- package/docs/reference/layout/justify-items.md +32 -0
- package/docs/reference/layout/justify-self.md +33 -0
- package/docs/reference/layout/object-fit.md +33 -0
- package/docs/reference/layout/object-position.md +45 -0
- package/docs/reference/layout/order.md +32 -0
- package/docs/reference/layout/overflow.md +34 -0
- package/docs/reference/layout/overscroll.md +31 -0
- package/docs/reference/layout/place-content.md +35 -0
- package/docs/reference/layout/place-items.md +32 -0
- package/docs/reference/layout/place-self.md +33 -0
- package/docs/reference/layout/position.md +34 -0
- package/docs/reference/layout/shorthand-alignment.md +34 -0
- package/docs/reference/layout/table-layout.md +30 -0
- package/docs/reference/layout/visibility.md +30 -0
- package/docs/reference/layout/z-index.md +33 -0
- package/docs/reference/layout.md +60 -102
- package/docs/reference/space/arbitrary-values.md +39 -0
- package/docs/reference/space/gap.md +44 -0
- package/docs/reference/space/height.md +44 -0
- package/docs/reference/space/margin.md +49 -0
- package/docs/reference/space/padding.md +49 -0
- package/docs/reference/space/scale-reference.md +43 -0
- package/docs/reference/space/width.md +45 -0
- package/docs/reference/space.md +14 -98
- package/docs/reference/spacing.md +22 -8
- package/docs/reference/visual/accent-color.md +31 -0
- package/docs/reference/visual/animation-builtin.md +41 -0
- package/docs/reference/visual/animation-delay.md +41 -0
- package/docs/reference/visual/animation-direction.md +32 -0
- package/docs/reference/visual/animation-duration.md +43 -0
- package/docs/reference/visual/animation-fill.md +32 -0
- package/docs/reference/visual/animation-iteration.md +30 -0
- package/docs/reference/visual/animation-play.md +30 -0
- package/docs/reference/visual/appearance.md +30 -0
- package/docs/reference/visual/backdrop-blur.md +43 -0
- package/docs/reference/visual/backdrop-brightness.md +41 -0
- package/docs/reference/visual/backdrop-contrast.md +41 -0
- package/docs/reference/visual/backdrop-grayscale.md +39 -0
- package/docs/reference/visual/backdrop-hue-rotate.md +39 -0
- package/docs/reference/visual/backdrop-invert.md +39 -0
- package/docs/reference/visual/backdrop-opacity.md +39 -0
- package/docs/reference/visual/backdrop-saturate.md +41 -0
- package/docs/reference/visual/backdrop-sepia.md +39 -0
- package/docs/reference/visual/background-attachment.md +31 -0
- package/docs/reference/visual/background-blend-mode.md +34 -0
- package/docs/reference/visual/background-clip.md +32 -0
- package/docs/reference/visual/background-color.md +33 -0
- package/docs/reference/visual/background-image.md +41 -0
- package/docs/reference/visual/background-origin.md +31 -0
- package/docs/reference/visual/background-position.md +45 -0
- package/docs/reference/visual/background-repeat.md +34 -0
- package/docs/reference/visual/background-size.md +39 -0
- package/docs/reference/visual/blend-modes.md +34 -0
- package/docs/reference/visual/border-radius.md +34 -0
- package/docs/reference/visual/border-style.md +33 -0
- package/docs/reference/visual/border-width.md +44 -0
- package/docs/reference/visual/border.md +43 -0
- package/docs/reference/visual/box-shadow.md +33 -0
- package/docs/reference/visual/caret-color.md +31 -0
- package/docs/reference/visual/color-scheme.md +31 -0
- package/docs/reference/visual/cursor.md +37 -0
- package/docs/reference/visual/field-sizing.md +30 -0
- package/docs/reference/visual/fill.md +38 -0
- package/docs/reference/visual/filter-blur.md +43 -0
- package/docs/reference/visual/filter-brightness.md +41 -0
- package/docs/reference/visual/filter-contrast.md +41 -0
- package/docs/reference/visual/filter-drop-shadow.md +42 -0
- package/docs/reference/visual/filter-grayscale.md +39 -0
- package/docs/reference/visual/filter-hue-rotate.md +39 -0
- package/docs/reference/visual/filter-invert.md +39 -0
- package/docs/reference/visual/filter-saturate.md +41 -0
- package/docs/reference/visual/filter-sepia.md +39 -0
- package/docs/reference/visual/font-family.md +31 -0
- package/docs/reference/visual/font-smoothing.md +30 -0
- package/docs/reference/visual/font-style.md +30 -0
- package/docs/reference/visual/font-variant-numeric.md +35 -0
- package/docs/reference/visual/font-weight.md +31 -0
- package/docs/reference/visual/forced-color-adjust.md +30 -0
- package/docs/reference/visual/hyphens.md +31 -0
- package/docs/reference/visual/letter-spacing.md +42 -0
- package/docs/reference/visual/line-clamp.md +40 -0
- package/docs/reference/visual/line-height.md +42 -0
- package/docs/reference/visual/list-style.md +34 -0
- package/docs/reference/visual/mask.md +39 -0
- package/docs/reference/visual/opacity.md +33 -0
- package/docs/reference/visual/outline.md +31 -0
- package/docs/reference/visual/pointer-events.md +30 -0
- package/docs/reference/visual/resize.md +32 -0
- package/docs/reference/visual/scroll-behavior.md +30 -0
- package/docs/reference/visual/scroll-margin.md +41 -0
- package/docs/reference/visual/scroll-padding.md +41 -0
- package/docs/reference/visual/scroll-snap-align.md +32 -0
- package/docs/reference/visual/scroll-snap-stop.md +30 -0
- package/docs/reference/visual/scroll-snap-type.md +34 -0
- package/docs/reference/visual/state-prefixes.md +37 -0
- package/docs/reference/visual/stroke-width.md +39 -0
- package/docs/reference/visual/stroke.md +38 -0
- package/docs/reference/visual/text-alignment.md +32 -0
- package/docs/reference/visual/text-color.md +41 -0
- package/docs/reference/visual/text-decoration.md +32 -0
- package/docs/reference/visual/text-indent.md +37 -0
- package/docs/reference/visual/text-overflow.md +31 -0
- package/docs/reference/visual/text-shadow.md +40 -0
- package/docs/reference/visual/text-size.md +32 -0
- package/docs/reference/visual/text-transform.md +32 -0
- package/docs/reference/visual/text-wrap.md +32 -0
- package/docs/reference/visual/touch-action.md +36 -0
- package/docs/reference/visual/transform-backface.md +30 -0
- package/docs/reference/visual/transform-origin.md +45 -0
- package/docs/reference/visual/transform-perspective-origin.md +45 -0
- package/docs/reference/visual/transform-perspective.md +43 -0
- package/docs/reference/visual/transform-rotate.md +40 -0
- package/docs/reference/visual/transform-scale.md +43 -0
- package/docs/reference/visual/transform-skew.md +40 -0
- package/docs/reference/visual/transform-style.md +30 -0
- package/docs/reference/visual/transform-translate.md +39 -0
- package/docs/reference/visual/transition-delay.md +41 -0
- package/docs/reference/visual/transition-duration.md +43 -0
- package/docs/reference/visual/transition-property.md +34 -0
- package/docs/reference/visual/transition-timing.md +40 -0
- package/docs/reference/visual/typography-keywords.md +81 -0
- package/docs/reference/visual/user-select.md +32 -0
- package/docs/reference/visual/vertical-align.md +36 -0
- package/docs/reference/visual/whitespace.md +34 -0
- package/docs/reference/visual/will-change.md +33 -0
- package/docs/reference/visual/word-break.md +32 -0
- package/docs/reference/visual.md +151 -154
- package/docs/syntax-reference.json +1973 -0
- package/package.json +10 -2
- package/playground/index.html +78 -0
- package/playground/jit-test.html +384 -0
- package/scripts/extract-syntax.js +152 -0
- package/scripts/generate-docs.js +352 -0
- package/src/cdn/jit.js +1436 -14
- package/src/cli/commands/build.js +5 -0
- package/src/cli/index.js +2 -0
- package/src/compiler/generators/css.js +1537 -25
- package/src/compiler/generators/preflight.js +379 -0
- package/src/config/defaults.js +19 -1
- package/src/definitions/index.js +153 -0
- package/src/definitions/layout-alignment.js +257 -0
- package/src/definitions/layout-flex.js +209 -0
- package/src/definitions/layout-grid.js +150 -0
- package/src/definitions/layout-positioning.js +89 -0
- package/src/definitions/layout-table.js +98 -0
- package/src/definitions/layout-utilities.js +262 -0
- package/src/definitions/layout.js +195 -0
- package/src/definitions/space.js +164 -0
- package/src/definitions/visual-backgrounds.js +423 -0
- package/src/definitions/visual-borders.js +111 -0
- package/src/definitions/visual-filters.js +204 -0
- package/src/definitions/visual-interactivity.js +292 -0
- package/src/definitions/visual-svg.js +80 -0
- package/src/definitions/visual-transform3d.js +159 -0
- package/src/definitions/visual-transforms.js +142 -0
- package/src/definitions/visual-transitions.js +277 -0
- package/src/definitions/visual-typography.js +386 -0
- package/src/definitions/visual.js +542 -0
- package/tests/helpers/test-utils.js +144 -0
- package/tests/integration/compiler.test.js +247 -0
- package/tests/sync/docs-sync.test.js +364 -0
- package/tests/unit/compiler/generators/css.test.js +719 -0
- package/tests/unit/compiler/parser.test.js +244 -0
- package/tests/unit/compiler/tokenizer.test.js +305 -0
- package/tests/unit/config/defaults.test.js +168 -0
- package/docs/.vitepress/cache/deps/_metadata.json +0 -31
- package/docs/.vitepress/cache/deps/chunk-LE5NDSFD.js +0 -12824
- package/docs/.vitepress/cache/deps/chunk-LE5NDSFD.js.map +0 -7
- package/docs/.vitepress/cache/deps/package.json +0 -3
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +0 -4505
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +0 -7
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +0 -9731
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +0 -7
- package/docs/.vitepress/cache/deps/vue.js +0 -347
- package/docs/.vitepress/cache/deps/vue.js.map +0 -7
- package/docs/.vitepress/dist/404.html +0 -22
- package/docs/.vitepress/dist/assets/app.DBXoyO4w.js +0 -1
- package/docs/.vitepress/dist/assets/chunks/framework.I305HrzY.js +0 -19
- package/docs/.vitepress/dist/assets/chunks/theme.CaXH1t3X.js +0 -1
- package/docs/.vitepress/dist/assets/examples_cards.md.BCzaqSD6.js +0 -84
- package/docs/.vitepress/dist/assets/examples_cards.md.BCzaqSD6.lean.js +0 -1
- package/docs/.vitepress/dist/assets/examples_forms.md.DOjr9LrG.js +0 -169
- package/docs/.vitepress/dist/assets/examples_forms.md.DOjr9LrG.lean.js +0 -1
- package/docs/.vitepress/dist/assets/examples_hero.md.CAorji-Y.js +0 -118
- package/docs/.vitepress/dist/assets/examples_hero.md.CAorji-Y.lean.js +0 -1
- package/docs/.vitepress/dist/assets/examples_index.md.BjUNsTob.js +0 -52
- package/docs/.vitepress/dist/assets/examples_index.md.BjUNsTob.lean.js +0 -1
- package/docs/.vitepress/dist/assets/examples_navigation.md.DvL-Yv_5.js +0 -106
- package/docs/.vitepress/dist/assets/examples_navigation.md.DvL-Yv_5.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_cdn.md.Bbb7-icp.js +0 -30
- package/docs/.vitepress/dist/assets/guide_cdn.md.Bbb7-icp.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_cli.md.yLsOZ7NL.js +0 -44
- package/docs/.vitepress/dist/assets/guide_cli.md.yLsOZ7NL.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_configuration.md.DN4FfKw4.js +0 -79
- package/docs/.vitepress/dist/assets/guide_configuration.md.DN4FfKw4.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_dark-mode.md.D6UJvQtM.js +0 -69
- package/docs/.vitepress/dist/assets/guide_dark-mode.md.D6UJvQtM.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_getting-started.md.K5nA8wXY.js +0 -47
- package/docs/.vitepress/dist/assets/guide_getting-started.md.K5nA8wXY.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_index.md.B0lRU150.js +0 -3
- package/docs/.vitepress/dist/assets/guide_index.md.B0lRU150.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_natural-scale.md.vvauT7U1.js +0 -22
- package/docs/.vitepress/dist/assets/guide_natural-scale.md.vvauT7U1.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_philosophy.md.mOb9kp32.js +0 -7
- package/docs/.vitepress/dist/assets/guide_philosophy.md.mOb9kp32.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_responsive.md.C7cF-4cR.js +0 -57
- package/docs/.vitepress/dist/assets/guide_responsive.md.C7cF-4cR.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_states.md.CwtGEGHB.js +0 -77
- package/docs/.vitepress/dist/assets/guide_states.md.CwtGEGHB.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_tri-attribute.md.CpjJLEMP.js +0 -45
- package/docs/.vitepress/dist/assets/guide_tri-attribute.md.CpjJLEMP.lean.js +0 -1
- package/docs/.vitepress/dist/assets/index.md.mYp6_S5X.js +0 -7
- package/docs/.vitepress/dist/assets/index.md.mYp6_S5X.lean.js +0 -1
- 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/ms_examples_cards.md.CaE5JNAs.js +0 -84
- package/docs/.vitepress/dist/assets/ms_examples_cards.md.CaE5JNAs.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_examples_forms.md.VvDzMzxF.js +0 -169
- package/docs/.vitepress/dist/assets/ms_examples_forms.md.VvDzMzxF.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_examples_hero.md.DC4c3kKW.js +0 -118
- package/docs/.vitepress/dist/assets/ms_examples_hero.md.DC4c3kKW.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_examples_index.md.C13ShcjA.js +0 -52
- package/docs/.vitepress/dist/assets/ms_examples_index.md.C13ShcjA.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_examples_navigation.md.BPtVjKbk.js +0 -106
- package/docs/.vitepress/dist/assets/ms_examples_navigation.md.BPtVjKbk.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_cdn.md.tZFpEjTS.js +0 -30
- package/docs/.vitepress/dist/assets/ms_guide_cdn.md.tZFpEjTS.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_cli.md.DBjxv3-o.js +0 -44
- package/docs/.vitepress/dist/assets/ms_guide_cli.md.DBjxv3-o.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_configuration.md.CyYNqREm.js +0 -79
- package/docs/.vitepress/dist/assets/ms_guide_configuration.md.CyYNqREm.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_dark-mode.md.DWDWvzzv.js +0 -69
- package/docs/.vitepress/dist/assets/ms_guide_dark-mode.md.DWDWvzzv.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_getting-started.md.WoQwRhlY.js +0 -47
- package/docs/.vitepress/dist/assets/ms_guide_getting-started.md.WoQwRhlY.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_index.md.pHpXZMmU.js +0 -3
- package/docs/.vitepress/dist/assets/ms_guide_index.md.pHpXZMmU.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_natural-scale.md.BiUfU-TH.js +0 -22
- package/docs/.vitepress/dist/assets/ms_guide_natural-scale.md.BiUfU-TH.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_philosophy.md.hf3SG2Ts.js +0 -7
- package/docs/.vitepress/dist/assets/ms_guide_philosophy.md.hf3SG2Ts.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_responsive.md.C4yS3zzM.js +0 -57
- package/docs/.vitepress/dist/assets/ms_guide_responsive.md.C4yS3zzM.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_states.md.DkDEjPdC.js +0 -77
- package/docs/.vitepress/dist/assets/ms_guide_states.md.DkDEjPdC.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_tri-attribute.md.C3Es_V5J.js +0 -45
- package/docs/.vitepress/dist/assets/ms_guide_tri-attribute.md.C3Es_V5J.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_index.md.Bmo9il08.js +0 -7
- package/docs/.vitepress/dist/assets/ms_index.md.Bmo9il08.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_breakpoints.md.DR7i_--b.js +0 -48
- package/docs/.vitepress/dist/assets/ms_reference_breakpoints.md.DR7i_--b.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_colors.md.06ZYiMcJ.js +0 -17
- package/docs/.vitepress/dist/assets/ms_reference_colors.md.06ZYiMcJ.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_layout.md.NGL6A5SR.js +0 -13
- package/docs/.vitepress/dist/assets/ms_reference_layout.md.NGL6A5SR.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_space.md.BG5YQ-09.js +0 -24
- package/docs/.vitepress/dist/assets/ms_reference_space.md.BG5YQ-09.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_spacing.md.XmXLLPOZ.js +0 -32
- package/docs/.vitepress/dist/assets/ms_reference_spacing.md.XmXLLPOZ.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_visual.md.BVOlkEqc.js +0 -22
- package/docs/.vitepress/dist/assets/ms_reference_visual.md.BVOlkEqc.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_breakpoints.md.BRbG8Fzi.js +0 -48
- package/docs/.vitepress/dist/assets/reference_breakpoints.md.BRbG8Fzi.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_colors.md.C7j7dSO1.js +0 -17
- package/docs/.vitepress/dist/assets/reference_colors.md.C7j7dSO1.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_layout.md.BWJ5NxSp.js +0 -13
- package/docs/.vitepress/dist/assets/reference_layout.md.BWJ5NxSp.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_space.md.DCsqfTWb.js +0 -24
- package/docs/.vitepress/dist/assets/reference_space.md.DCsqfTWb.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_spacing.md.BInFD8gd.js +0 -32
- package/docs/.vitepress/dist/assets/reference_spacing.md.BInFD8gd.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_visual.md.BRK7S9T1.js +0 -22
- package/docs/.vitepress/dist/assets/reference_visual.md.BRK7S9T1.lean.js +0 -1
- package/docs/.vitepress/dist/assets/style.D82StYDI.css +0 -1
- package/docs/.vitepress/dist/examples/cards.html +0 -108
- package/docs/.vitepress/dist/examples/forms.html +0 -193
- package/docs/.vitepress/dist/examples/hero.html +0 -142
- package/docs/.vitepress/dist/examples/index.html +0 -76
- package/docs/.vitepress/dist/examples/navigation.html +0 -130
- package/docs/.vitepress/dist/guide/cdn.html +0 -54
- package/docs/.vitepress/dist/guide/cli.html +0 -68
- package/docs/.vitepress/dist/guide/configuration.html +0 -103
- package/docs/.vitepress/dist/guide/dark-mode.html +0 -93
- package/docs/.vitepress/dist/guide/getting-started.html +0 -71
- package/docs/.vitepress/dist/guide/index.html +0 -27
- package/docs/.vitepress/dist/guide/natural-scale.html +0 -46
- package/docs/.vitepress/dist/guide/philosophy.html +0 -31
- package/docs/.vitepress/dist/guide/responsive.html +0 -81
- package/docs/.vitepress/dist/guide/states.html +0 -101
- package/docs/.vitepress/dist/guide/tri-attribute.html +0 -69
- package/docs/.vitepress/dist/hashmap.json +0 -1
- package/docs/.vitepress/dist/index.html +0 -31
- package/docs/.vitepress/dist/ms/examples/cards.html +0 -108
- package/docs/.vitepress/dist/ms/examples/forms.html +0 -193
- package/docs/.vitepress/dist/ms/examples/hero.html +0 -142
- package/docs/.vitepress/dist/ms/examples/index.html +0 -76
- package/docs/.vitepress/dist/ms/examples/navigation.html +0 -130
- package/docs/.vitepress/dist/ms/guide/cdn.html +0 -54
- package/docs/.vitepress/dist/ms/guide/cli.html +0 -68
- package/docs/.vitepress/dist/ms/guide/configuration.html +0 -103
- package/docs/.vitepress/dist/ms/guide/dark-mode.html +0 -93
- package/docs/.vitepress/dist/ms/guide/getting-started.html +0 -71
- package/docs/.vitepress/dist/ms/guide/index.html +0 -27
- package/docs/.vitepress/dist/ms/guide/natural-scale.html +0 -46
- package/docs/.vitepress/dist/ms/guide/philosophy.html +0 -31
- package/docs/.vitepress/dist/ms/guide/responsive.html +0 -81
- package/docs/.vitepress/dist/ms/guide/states.html +0 -101
- package/docs/.vitepress/dist/ms/guide/tri-attribute.html +0 -69
- package/docs/.vitepress/dist/ms/index.html +0 -31
- package/docs/.vitepress/dist/ms/reference/breakpoints.html +0 -72
- package/docs/.vitepress/dist/ms/reference/colors.html +0 -41
- package/docs/.vitepress/dist/ms/reference/layout.html +0 -37
- package/docs/.vitepress/dist/ms/reference/space.html +0 -48
- package/docs/.vitepress/dist/ms/reference/spacing.html +0 -56
- package/docs/.vitepress/dist/ms/reference/visual.html +0 -46
- package/docs/.vitepress/dist/reference/breakpoints.html +0 -72
- package/docs/.vitepress/dist/reference/colors.html +0 -41
- package/docs/.vitepress/dist/reference/layout.html +0 -37
- package/docs/.vitepress/dist/reference/space.html +0 -48
- package/docs/.vitepress/dist/reference/spacing.html +0 -56
- package/docs/.vitepress/dist/reference/visual.html +0 -46
- package/docs/.vitepress/dist/vp-icons.css +0 -1
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{_ as i,c as a,o as t,ae as n}from"./chunks/framework.I305HrzY.js";const o=JSON.parse('{"title":"The Natural Scale","description":"","frontmatter":{},"headers":[],"relativePath":"guide/natural-scale.md","filePath":"guide/natural-scale.md"}'),l={name:"guide/natural-scale.md"};function e(h,s,p,k,d,r){return t(),a("div",null,[...s[0]||(s[0]=[n(`<h1 id="the-natural-scale" tabindex="-1">The Natural Scale <a class="header-anchor" href="#the-natural-scale" aria-label="Permalink to "The Natural Scale""></a></h1><p>SenangStart uses natural adjectives that map to physical objects you can visualize.</p><h2 id="the-philosophy" tabindex="-1">The Philosophy <a class="header-anchor" href="#the-philosophy" aria-label="Permalink to "The Philosophy""></a></h2><p>Instead of arbitrary numbers, think of <strong>physical objects</strong>:</p><table tabindex="0"><thead><tr><th>Keyword</th><th>Size</th><th>Mental Model</th></tr></thead><tbody><tr><td><code>none</code></td><td>0px</td><td>No space</td></tr><tr><td><code>tiny</code></td><td>4px</td><td>🪨 <strong>Pebble</strong> — Borders, small offsets</td></tr><tr><td><code>small</code></td><td>8px</td><td>📦 <strong>Matchbox</strong> — Group related items</td></tr><tr><td><code>medium</code></td><td>16px</td><td>📱 <strong>Smartphone</strong> — Standard default</td></tr><tr><td><code>big</code></td><td>32px</td><td>💻 <strong>Laptop</strong> — Separate sections</td></tr><tr><td><code>giant</code></td><td>64px</td><td>🚪 <strong>Door</strong> — Layout divisions</td></tr><tr><td><code>vast</code></td><td>128px</td><td>🏠 <strong>House</strong> — Hero sections</td></tr></tbody></table><h2 id="using-the-scale" tabindex="-1">Using the Scale <a class="header-anchor" href="#using-the-scale" aria-label="Permalink to "Using the Scale""></a></h2><h3 id="when-to-use-each-size" tabindex="-1">When to use each size <a class="header-anchor" href="#when-to-use-each-size" aria-label="Permalink to "When to use each size""></a></h3><p><strong><code>tiny</code> (4px)</strong> — For subtle details</p><ul><li>Icon spacing within buttons</li><li>Border widths</li><li>Small visual offsets</li></ul><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;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"p-x:small p-y:tiny"</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:#B31D28;--shiki-light-font-style:italic;--shiki-dark:#FDAEB7;--shiki-dark-font-style:italic;">icon</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> /> Button</span></span>
|
|
3
|
-
<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></code></pre></div><p><strong><code>small</code> (8px)</strong> — For grouping related items</p><ul><li>Gap between label and input</li><li>Spacing between avatar and name</li><li>Tight list items</li></ul><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"</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;">></span></span>
|
|
4
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> <</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">label</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Email</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">label</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;">input</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"email"</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:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><p><strong><code>medium</code> (16px)</strong> — The standard default</p><ul><li>Card padding</li><li>Form field margins</li><li>Standard component spacing</li></ul><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;">></span></span>
|
|
7
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Standard card content</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:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><p><strong><code>big</code> (32px)</strong> — For separating distinct sections</p><ul><li>Between header and content</li><li>Between form groups</li><li>Between major UI blocks</li></ul><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;">header</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;">>Page Title</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">header</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;">main</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Content separated from header</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">main</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><p><strong><code>giant</code> (64px)</strong> — For layout divisions</p><ul><li>Between page sections</li><li>Major structural breaks</li><li>Desktop navigation padding</li></ul><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;">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-y:giant"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
10
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Major page section</span></span>
|
|
11
|
-
<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></code></pre></div><p><strong><code>vast</code> (128px)</strong> — For hero sections and major spacing</p><ul><li>Hero section padding</li><li>Large decorative spacing</li><li>Full-bleed sections</li></ul><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;">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:vast"</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:dark"</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;">h1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Welcome to the App</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">h1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
13
|
-
<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></code></pre></div><h2 id="natural-language-mapping" tabindex="-1">Natural Language Mapping <a class="header-anchor" href="#natural-language-mapping" aria-label="Permalink to "Natural Language Mapping""></a></h2><p>When talking about spacing adjustments, use natural language:</p><table tabindex="0"><thead><tr><th>You say...</th><th>Action</th></tr></thead><tbody><tr><td>"tighten it up"</td><td>Scale DOWN (medium → small → tiny)</td></tr><tr><td>"compact"</td><td>Use small or tiny</td></tr><tr><td>"give it air"</td><td>Scale UP (medium → big → giant)</td></tr><tr><td>"breathe"</td><td>Increase spacing</td></tr><tr><td>"spacious"</td><td>Use big or giant</td></tr><tr><td>"cramped"</td><td>Too much tiny/small, increase scale</td></tr></tbody></table><h2 id="customizing-the-scale" tabindex="-1">Customizing the Scale <a class="header-anchor" href="#customizing-the-scale" aria-label="Permalink to "Customizing the Scale""></a></h2><p>Override defaults 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>
|
|
14
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> theme: {</span></span>
|
|
15
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> spacing: {</span></span>
|
|
16
|
-
<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;">// Tighter tiny</span></span>
|
|
17
|
-
<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 custom scale</span></span>
|
|
18
|
-
<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;"> // Even bigger!</span></span>
|
|
19
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
20
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
21
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>Use your custom scales:</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;">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:huge"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Huge padding</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">section</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></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;"> space</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"m-b:massive"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Massive 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>`,33)])])}const g=i(l,[["render",e]]);export{o as __pageData,g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i,c as a,o as t,ae as n}from"./chunks/framework.I305HrzY.js";const o=JSON.parse('{"title":"The Natural Scale","description":"","frontmatter":{},"headers":[],"relativePath":"guide/natural-scale.md","filePath":"guide/natural-scale.md"}'),l={name:"guide/natural-scale.md"};function e(h,s,p,k,d,r){return t(),a("div",null,[...s[0]||(s[0]=[n("",33)])])}const g=i(l,[["render",e]]);export{o as __pageData,g as default};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{_ as a,c as e,o as i,ae as s}from"./chunks/framework.I305HrzY.js";const u=JSON.parse('{"title":"Why Natural Language?","description":"","frontmatter":{},"headers":[],"relativePath":"guide/philosophy.md","filePath":"guide/philosophy.md"}'),n={name:"guide/philosophy.md"};function o(d,t,l,r,h,p){return i(),e("div",null,[...t[0]||(t[0]=[s(`<h1 id="why-natural-language" tabindex="-1">Why Natural Language? <a class="header-anchor" href="#why-natural-language" aria-label="Permalink to "Why Natural Language?""></a></h1><p>The philosophy behind SenangStart's natural adjective approach.</p><h2 id="the-problem-with-numbers" tabindex="-1">The Problem with Numbers <a class="header-anchor" href="#the-problem-with-numbers" aria-label="Permalink to "The Problem with Numbers""></a></h2><p>Traditional utility frameworks use abstract numeric scales:</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:#6A737D;--shiki-dark:#6A737D;"><!-- What do these numbers mean? --></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;"> class</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"p-4 m-8 gap-2 text-xl"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><p>Every developer asks:</p><ul><li>Is <code>p-4</code> bigger than <code>m-8</code>?</li><li>What's the difference between <code>gap-2</code> and <code>gap-4</code>?</li><li>Is <code>text-xl</code> larger than <code>text-lg</code>?</li></ul><p><strong>You constantly lookup documentation.</strong> Mental overhead slows you down.</p><h2 id="the-natural-solution" tabindex="-1">The Natural Solution <a class="header-anchor" href="#the-natural-solution" aria-label="Permalink to "The Natural Solution""></a></h2><p>SenangStart uses words you already understand:</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:#6A737D;--shiki-dark:#6A737D;"><!-- Instantly clear --></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:medium m:big g:small"</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:big"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><p>No lookup needed. You <em>know</em> that:</p><ul><li><code>big</code> is larger than <code>medium</code></li><li><code>medium</code> is larger than <code>small</code></li><li><code>giant</code> is larger than <code>big</code></li></ul><h2 id="physical-mental-models" tabindex="-1">Physical Mental Models <a class="header-anchor" href="#physical-mental-models" aria-label="Permalink to "Physical Mental Models""></a></h2><p>Each scale maps to a physical object you can visualize:</p><table tabindex="0"><thead><tr><th>Keyword</th><th>Physical Model</th><th>Example Use</th></tr></thead><tbody><tr><td><code>tiny</code></td><td>🪨 Pebble</td><td>Icon gaps, borders</td></tr><tr><td><code>small</code></td><td>📦 Matchbox</td><td>Form field spacing</td></tr><tr><td><code>medium</code></td><td>📱 Smartphone</td><td>Standard padding</td></tr><tr><td><code>big</code></td><td>💻 Laptop</td><td>Section spacing</td></tr><tr><td><code>giant</code></td><td>🚪 Door</td><td>Layout divisions</td></tr><tr><td><code>vast</code></td><td>🏠 House</td><td>Hero sections</td></tr></tbody></table><p>When you think "I need laptop-sized spacing here", you write <code>big</code>.</p><h2 id="ai-friendly-communication" tabindex="-1">AI-Friendly Communication <a class="header-anchor" href="#ai-friendly-communication" aria-label="Permalink to "AI-Friendly Communication""></a></h2><p>Natural language works better with AI assistants:</p><h3 id="traditional-approach" tabindex="-1">Traditional Approach <a class="header-anchor" href="#traditional-approach" aria-label="Permalink to "Traditional Approach""></a></h3><blockquote><p>"Make the padding larger"<br> AI: "Should I use p-6, p-8, or p-12?"</p></blockquote><h3 id="senangstart-approach" tabindex="-1">SenangStart Approach <a class="header-anchor" href="#senangstart-approach" aria-label="Permalink to "SenangStart Approach""></a></h3><blockquote><p>"Make the padding larger"<br> AI: "Changed from <code>medium</code> to <code>big</code>" ✓</p></blockquote><p>The AI understands the <em>intent</em> behind your words.</p><h2 id="semantic-conversations" tabindex="-1">Semantic Conversations <a class="header-anchor" href="#semantic-conversations" aria-label="Permalink to "Semantic Conversations""></a></h2><p>With SenangStart, you can speak naturally:</p><table tabindex="0"><thead><tr><th>You Say</th><th>AI Understands</th></tr></thead><tbody><tr><td>"tighten it up"</td><td>Scale DOWN (medium → small → tiny)</td></tr><tr><td>"give it breathing room"</td><td>Scale UP (medium → big → giant)</td></tr><tr><td>"make it more compact"</td><td>Use smaller spacing</td></tr><tr><td>"it feels cramped"</td><td>Increase spacing</td></tr><tr><td>"too much whitespace"</td><td>Reduce spacing</td></tr></tbody></table><h2 id="separation-of-concerns" tabindex="-1">Separation of Concerns <a class="header-anchor" href="#separation-of-concerns" aria-label="Permalink to "Separation of Concerns""></a></h2><p>Three attributes keep your code organized:</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>
|
|
4
|
-
<span class="line"><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"</span><span style="--shiki-light:#B31D28;--shiki-light-font-style:italic;--shiki-dark:#FDAEB7;--shiki-dark-font-style:italic;"> <!--</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> Structure</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> --</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
5
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> space="p:medium g:small" </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"><!-- Sizing --></span></span>
|
|
6
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> visual="bg:white rounded:big" </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"><!-- Appearance --></span></span>
|
|
7
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><p>Anyone reading this code instantly knows:</p><ul><li><strong>What it does</strong> (flexbox, column, centered)</li><li><strong>How big it is</strong> (medium padding, small gap)</li><li><strong>How it looks</strong> (white, rounded)</li></ul><h2 id="the-intent-first-mindset" tabindex="-1">The Intent-First Mindset <a class="header-anchor" href="#the-intent-first-mindset" aria-label="Permalink to "The Intent-First Mindset""></a></h2><p>Stop thinking in pixels. Start describing intent.</p><table tabindex="0"><thead><tr><th>Instead of...</th><th>Think...</th></tr></thead><tbody><tr><td>"I need 16px padding"</td><td>"I need medium padding"</td></tr><tr><td>"Add 8px gap"</td><td>"Add a small gap"</td></tr><tr><td>"Make it 32px margin"</td><td>"Give it big margin"</td></tr></tbody></table><p><strong>Your code becomes self-documenting.</strong></p>`,36)])])}const g=a(n,[["render",o]]);export{u as __pageData,g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as a,c as e,o as i,ae as s}from"./chunks/framework.I305HrzY.js";const u=JSON.parse('{"title":"Why Natural Language?","description":"","frontmatter":{},"headers":[],"relativePath":"guide/philosophy.md","filePath":"guide/philosophy.md"}'),n={name:"guide/philosophy.md"};function o(d,t,l,r,h,p){return i(),e("div",null,[...t[0]||(t[0]=[s("",36)])])}const g=a(n,[["render",o]]);export{u as __pageData,g as default};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import{_ as i,c as a,o as t,ae as n}from"./chunks/framework.I305HrzY.js";const g=JSON.parse('{"title":"Responsive Design","description":"","frontmatter":{},"headers":[],"relativePath":"guide/responsive.md","filePath":"guide/responsive.md"}'),l={name:"guide/responsive.md"};function h(p,s,e,k,E,d){return t(),a("div",null,[...s[0]||(s[0]=[n(`<h1 id="responsive-design" tabindex="-1">Responsive Design <a class="header-anchor" href="#responsive-design" aria-label="Permalink to "Responsive Design""></a></h1><p>SenangStart uses mobile-first responsive prefixes.</p><h2 id="breakpoints" tabindex="-1">Breakpoints <a class="header-anchor" href="#breakpoints" aria-label="Permalink to "Breakpoints""></a></h2><table tabindex="0"><thead><tr><th>Prefix</th><th>Min-Width</th><th>Device</th></tr></thead><tbody><tr><td>(none)</td><td>0px</td><td>Mobile (default)</td></tr><tr><td><code>mob:</code></td><td>480px</td><td>Large mobile</td></tr><tr><td><code>tab:</code></td><td>768px</td><td>Tablet</td></tr><tr><td><code>lap:</code></td><td>1024px</td><td>Laptop</td></tr><tr><td><code>desk:</code></td><td>1280px</td><td>Desktop</td></tr></tbody></table><h2 id="usage" tabindex="-1">Usage <a class="header-anchor" href="#usage" aria-label="Permalink to "Usage""></a></h2><p>Add breakpoint prefixes to any space or layout value:</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;">"p:small tab:p:medium lap:p:big"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
2
|
-
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> <!-- Small padding on mobile --></span></span>
|
|
3
|
-
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> <!-- Medium padding on tablet+ --></span></span>
|
|
4
|
-
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> <!-- Big padding on laptop+ --></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:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="common-patterns" tabindex="-1">Common Patterns <a class="header-anchor" href="#common-patterns" aria-label="Permalink to "Common Patterns""></a></h2><h3 id="responsive-padding" tabindex="-1">Responsive Padding <a class="header-anchor" href="#responsive-padding" aria-label="Permalink to "Responsive Padding""></a></h3><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;">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:medium tab:p:big desk:p:giant"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
6
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Content with progressive padding</span></span>
|
|
7
|
-
<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></code></pre></div><h3 id="responsive-layout" tabindex="-1">Responsive Layout <a class="header-anchor" href="#responsive-layout" aria-label="Permalink to "Responsive Layout""></a></h3><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 tab:row"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
8
|
-
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> <!-- Stacked on mobile, horizontal on tablet+ --></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;">>Item 1</</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:#24292E;--shiki-dark:#E1E4E8;">>Item 2</</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:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h3 id="responsive-grid" tabindex="-1">Responsive Grid <a class="header-anchor" href="#responsive-grid" aria-label="Permalink to "Responsive Grid""></a></h3><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>
|
|
12
|
-
<span class="line"><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>
|
|
13
|
-
<span class="line"><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"</span></span>
|
|
14
|
-
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> style</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));"</span></span>
|
|
15
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
16
|
-
<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;">>Card 1</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></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:#24292E;--shiki-dark:#E1E4E8;">>Card 2</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></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:#24292E;--shiki-dark:#E1E4E8;">>Card 3</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></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></code></pre></div><h3 id="hide-on-mobile" tabindex="-1">Hide on Mobile <a class="header-anchor" href="#hide-on-mobile" aria-label="Permalink to "Hide on Mobile""></a></h3><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;">"hidden tab:flex"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
20
|
-
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> <!-- Hidden on mobile, flex on tablet+ --></span></span>
|
|
21
|
-
<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><h3 id="mobile-navigation" tabindex="-1">Mobile Navigation <a class="header-anchor" href="#mobile-navigation" aria-label="Permalink to "Mobile Navigation""></a></h3><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;"><!-- Mobile menu button --></span></span>
|
|
22
|
-
<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;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"block tab:hidden"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>☰ Menu</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
23
|
-
<span class="line"></span>
|
|
24
|
-
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"><!-- Desktop navigation --></span></span>
|
|
25
|
-
<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;">"hidden tab: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:medium"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
26
|
-
<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;">>Home</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">a</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
27
|
-
<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;">>About</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">a</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
28
|
-
<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;">>Contact</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">a</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
29
|
-
<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><h2 id="full-responsive-example" tabindex="-1">Full Responsive Example <a class="header-anchor" href="#full-responsive-example" aria-label="Permalink to "Full Responsive Example""></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>
|
|
30
|
-
<span class="line"><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 lap:row"</span></span>
|
|
31
|
-
<span class="line"><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 tab:p:big gap:medium tab:gap:big"</span></span>
|
|
32
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
33
|
-
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> <!-- Sidebar --></span></span>
|
|
34
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> <</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">aside</span></span>
|
|
35
|
-
<span class="line"><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%] lap:w:[300px]"</span></span>
|
|
36
|
-
<span class="line"><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:light"</span></span>
|
|
37
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> ></span></span>
|
|
38
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Sidebar content</span></span>
|
|
39
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> </</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">aside</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
40
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> </span></span>
|
|
41
|
-
<span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> <!-- Main content --></span></span>
|
|
42
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> <</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">main</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%] lap:w:[calc(100%-300px)]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
43
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Main content</span></span>
|
|
44
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> </</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">main</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
45
|
-
<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="custom-breakpoints" tabindex="-1">Custom Breakpoints <a class="header-anchor" href="#custom-breakpoints" aria-label="Permalink to "Custom Breakpoints""></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>
|
|
46
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> theme: {</span></span>
|
|
47
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> screens: {</span></span>
|
|
48
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'mob'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'480px'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
|
49
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'tab'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'768px'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
|
50
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'lap'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'1024px'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
|
51
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'desk'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'1280px'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
|
52
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'wide'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'1536px'</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> // Add custom breakpoint</span></span>
|
|
53
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
54
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> }</span></span>
|
|
55
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>Use your custom breakpoint:</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;">"p:big wide:p:giant"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
56
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Extra large padding on wide screens</span></span>
|
|
57
|
-
<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>`,25)])])}const o=i(l,[["render",h]]);export{g as __pageData,o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i,c as a,o as t,ae as n}from"./chunks/framework.I305HrzY.js";const g=JSON.parse('{"title":"Responsive Design","description":"","frontmatter":{},"headers":[],"relativePath":"guide/responsive.md","filePath":"guide/responsive.md"}'),l={name:"guide/responsive.md"};function h(p,s,e,k,E,d){return t(),a("div",null,[...s[0]||(s[0]=[n("",25)])])}const o=i(l,[["render",h]]);export{g as __pageData,o as default};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import{_ as i,c as a,o as t,ae as n}from"./chunks/framework.I305HrzY.js";const g=JSON.parse('{"title":"Hover & States","description":"","frontmatter":{},"headers":[],"relativePath":"guide/states.md","filePath":"guide/states.md"}'),l={name:"guide/states.md"};function h(e,s,p,k,E,r){return t(),a("div",null,[...s[0]||(s[0]=[n(`<h1 id="hover-states" tabindex="-1">Hover & States <a class="header-anchor" href="#hover-states" aria-label="Permalink to "Hover & States""></a></h1><p>Add interactive styles with state prefixes.</p><h2 id="state-prefixes" tabindex="-1">State Prefixes <a class="header-anchor" href="#state-prefixes" aria-label="Permalink to "State Prefixes""></a></h2><table tabindex="0"><thead><tr><th>Prefix</th><th>Trigger</th></tr></thead><tbody><tr><td><code>hover:</code></td><td>Mouse over element</td></tr><tr><td><code>focus:</code></td><td>Element has focus</td></tr><tr><td><code>active:</code></td><td>Element is being clicked</td></tr><tr><td><code>disabled:</code></td><td>Element is disabled</td></tr></tbody></table><h2 id="basic-usage" tabindex="-1">Basic Usage <a class="header-anchor" href="#basic-usage" aria-label="Permalink to "Basic Usage""></a></h2><h3 id="hover" tabindex="-1">Hover <a class="header-anchor" href="#hover" aria-label="Permalink to "Hover""></a></h3><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] text:white"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
2
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Hover me</span></span>
|
|
3
|
-
<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>
|
|
4
|
-
<span class="line"></span>
|
|
5
|
-
<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>
|
|
6
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Link with hover color</span></span>
|
|
7
|
-
<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></code></pre></div><h3 id="focus" tabindex="-1">Focus <a class="header-anchor" href="#focus" aria-label="Permalink to "Focus""></a></h3><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;">input</span></span>
|
|
8
|
-
<span class="line"><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>
|
|
9
|
-
<span class="line"><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"</span></span>
|
|
10
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">/></span></span></code></pre></div><h3 id="active" tabindex="-1">Active <a class="header-anchor" href="#active" aria-label="Permalink to "Active""></a></h3><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 active:bg:[#1D4ED8]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
11
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Click me</span></span>
|
|
12
|
-
<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></code></pre></div><h3 id="disabled" tabindex="-1">Disabled <a class="header-anchor" href="#disabled" aria-label="Permalink to "Disabled""></a></h3><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 disabled:bg:grey disabled:opacity:[0.5]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
13
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Submit</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></code></pre></div><h2 id="common-patterns" tabindex="-1">Common Patterns <a class="header-anchor" href="#common-patterns" aria-label="Permalink to "Common Patterns""></a></h2><h3 id="button-with-states" tabindex="-1">Button with States <a class="header-anchor" href="#button-with-states" aria-label="Permalink to "Button with States""></a></h3><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>
|
|
15
|
-
<span class="line"><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>
|
|
16
|
-
<span class="line"><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;">"</span></span>
|
|
17
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bg:primary </span></span>
|
|
18
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> text:white </span></span>
|
|
19
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> rounded:medium</span></span>
|
|
20
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> hover:bg:[#2563EB]</span></span>
|
|
21
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> active:bg:[#1D4ED8]</span></span>
|
|
22
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> disabled:bg:grey</span></span>
|
|
23
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> disabled:opacity:[0.5]</span></span>
|
|
24
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> "</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;"> Submit</span></span>
|
|
27
|
-
<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></code></pre></div><h3 id="card-with-hover-effect" tabindex="-1">Card with Hover Effect <a class="header-anchor" href="#card-with-hover-effect" aria-label="Permalink to "Card with Hover Effect""></a></h3><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>
|
|
28
|
-
<span class="line"><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>
|
|
29
|
-
<span class="line"><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>
|
|
30
|
-
<span class="line"><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;">"</span></span>
|
|
31
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bg:white </span></span>
|
|
32
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> rounded:big </span></span>
|
|
33
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> shadow:small</span></span>
|
|
34
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> hover:shadow:big</span></span>
|
|
35
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> "</span></span>
|
|
36
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
37
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> <</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">h3</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Card Title</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">h3</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
38
|
-
<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:#24292E;--shiki-dark:#E1E4E8;">>Card content that lifts on hover.</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">p</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
39
|
-
<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><h3 id="link-navigation" tabindex="-1">Link Navigation <a class="header-anchor" href="#link-navigation" aria-label="Permalink to "Link Navigation""></a></h3><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;">"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:medium"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
40
|
-
<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:dark hover:text:primary font:medium"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Home</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">a</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
41
|
-
<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;">>About</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">a</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
42
|
-
<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;">>Contact</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">a</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
43
|
-
<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><h3 id="input-with-focus-ring" tabindex="-1">Input with Focus Ring <a class="header-anchor" href="#input-with-focus-ring" aria-label="Permalink to "Input with Focus Ring""></a></h3><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;">input</span></span>
|
|
44
|
-
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"text"</span></span>
|
|
45
|
-
<span class="line"><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 w:[100%]"</span></span>
|
|
46
|
-
<span class="line"><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;">"</span></span>
|
|
47
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> border:grey </span></span>
|
|
48
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> border-w:[1px]</span></span>
|
|
49
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> rounded:small</span></span>
|
|
50
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> focus:border:primary</span></span>
|
|
51
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> "</span></span>
|
|
52
|
-
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> placeholder</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"Enter your email"</span></span>
|
|
53
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">/></span></span></code></pre></div><h3 id="toggle-button" tabindex="-1">Toggle Button <a class="header-anchor" href="#toggle-button" aria-label="Permalink to "Toggle Button""></a></h3><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>
|
|
54
|
-
<span class="line"><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"</span></span>
|
|
55
|
-
<span class="line"><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;">"</span></span>
|
|
56
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bg:light</span></span>
|
|
57
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> text:dark</span></span>
|
|
58
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> rounded:medium</span></span>
|
|
59
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> hover:bg:grey</span></span>
|
|
60
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> active:bg:dark</span></span>
|
|
61
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> active:text:white</span></span>
|
|
62
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> "</span></span>
|
|
63
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
64
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Toggle</span></span>
|
|
65
|
-
<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></code></pre></div><h2 id="combining-with-responsive" tabindex="-1">Combining with Responsive <a class="header-anchor" href="#combining-with-responsive" aria-label="Permalink to "Combining with Responsive""></a></h2><p>States can be combined with responsive prefixes:</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;">"</span></span>
|
|
66
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bg:primary</span></span>
|
|
67
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> hover:bg:[#2563EB]</span></span>
|
|
68
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> tab:hover:shadow:big</span></span>
|
|
69
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
70
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Hover shadow only on tablet+</span></span>
|
|
71
|
-
<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></code></pre></div><h2 id="accessibility-note" tabindex="-1">Accessibility Note <a class="header-anchor" href="#accessibility-note" aria-label="Permalink to "Accessibility Note""></a></h2><p>Always ensure sufficient color contrast for hover and focus states. The <code>:focus</code> state is especially important for keyboard navigation.</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;">"</span></span>
|
|
72
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> bg:primary</span></span>
|
|
73
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> text:white</span></span>
|
|
74
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> focus:shadow:[0_0_0_3px_rgba(59,130,246,0.5)]</span></span>
|
|
75
|
-
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
76
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Accessible focus ring</span></span>
|
|
77
|
-
<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></code></pre></div>`,30)])])}const o=i(l,[["render",h]]);export{g as __pageData,o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i,c as a,o as t,ae as n}from"./chunks/framework.I305HrzY.js";const g=JSON.parse('{"title":"Hover & States","description":"","frontmatter":{},"headers":[],"relativePath":"guide/states.md","filePath":"guide/states.md"}'),l={name:"guide/states.md"};function h(e,s,p,k,E,r){return t(),a("div",null,[...s[0]||(s[0]=[n("",30)])])}const o=i(l,[["render",h]]);export{g as __pageData,o as default};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import{_ as i,c as a,o as t,ae as h}from"./chunks/framework.I305HrzY.js";const g=JSON.parse('{"title":"Tri-Attribute Syntax","description":"","frontmatter":{},"headers":[],"relativePath":"guide/tri-attribute.md","filePath":"guide/tri-attribute.md"}'),l={name:"guide/tri-attribute.md"};function n(e,s,k,p,E,d){return t(),a("div",null,[...s[0]||(s[0]=[h(`<h1 id="tri-attribute-syntax" tabindex="-1">Tri-Attribute Syntax <a class="header-anchor" href="#tri-attribute-syntax" aria-label="Permalink to "Tri-Attribute Syntax""></a></h1><p>SenangStart separates styling concerns into three distinct attributes.</p><h2 id="overview" tabindex="-1">Overview <a class="header-anchor" href="#overview" aria-label="Permalink to "Overview""></a></h2><table tabindex="0"><thead><tr><th>Attribute</th><th>Purpose</th><th>Example</th></tr></thead><tbody><tr><td><code>layout</code></td><td>Structure & positioning</td><td><code>layout="flex col center"</code></td></tr><tr><td><code>space</code></td><td>Sizing & spacing</td><td><code>space="p:medium g:small"</code></td></tr><tr><td><code>visual</code></td><td>Colors & appearance</td><td><code>visual="bg:white rounded:big"</code></td></tr></tbody></table><h2 id="why-three-attributes" tabindex="-1">Why Three Attributes? <a class="header-anchor" href="#why-three-attributes" aria-label="Permalink to "Why Three Attributes?""></a></h2><h3 id="traditional-css-classes-are-chaotic" tabindex="-1">Traditional CSS classes are chaotic: <a class="header-anchor" href="#traditional-css-classes-are-chaotic" aria-label="Permalink to "Traditional CSS classes are chaotic:""></a></h3><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;"> class</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex flex-col items-center p-4 gap-2 bg-white rounded-lg shadow-md"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><p>Everything is mixed together. What's layout? What's spacing? What's visual?</p><h3 id="senangstart-is-organized" tabindex="-1">SenangStart is organized: <a class="header-anchor" href="#senangstart-is-organized" aria-label="Permalink to "SenangStart is organized:""></a></h3><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>
|
|
2
|
-
<span class="line"><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"</span></span>
|
|
3
|
-
<span class="line"><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 g:small"</span></span>
|
|
4
|
-
<span class="line"><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"</span></span>
|
|
5
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><p><strong>Clear separation.</strong> Anyone reading this code instantly knows:</p><ul><li><strong>Structure:</strong> Flexbox column, centered</li><li><strong>Sizing:</strong> Medium padding, small gap</li><li><strong>Appearance:</strong> White, rounded, shadowed</li></ul><h2 id="the-layout-attribute" tabindex="-1">The <code>layout</code> Attribute <a class="header-anchor" href="#the-layout-attribute" aria-label="Permalink to "The \`layout\` Attribute""></a></h2><p>Controls <strong>how elements are positioned</strong> and <strong>how they flow</strong>.</p><h3 id="display-types" tabindex="-1">Display Types <a class="header-anchor" href="#display-types" aria-label="Permalink to "Display Types""></a></h3><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>
|
|
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:#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>
|
|
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;">"block"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Block element</</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;"> 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><h3 id="flex-direction" tabindex="-1">Flex Direction <a class="header-anchor" href="#flex-direction" aria-label="Permalink to "Flex Direction""></a></h3><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 (default)</</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;"> 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>
|
|
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;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex row-reverse"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Reversed 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;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex col-reverse"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Reversed 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><h3 id="alignment" tabindex="-1">Alignment <a class="header-anchor" href="#alignment" aria-label="Permalink to "Alignment""></a></h3><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;">>Center both axes</</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;"> 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 items</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
13
|
-
<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 start"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Align to start</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></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;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"flex end"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Align to end</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h3 id="position" tabindex="-1">Position <a class="header-anchor" href="#position" aria-label="Permalink to "Position""></a></h3><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;">>Fixed navigation</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">nav</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;"> 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>
|
|
16
|
-
<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;">>Absolute positioned</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></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;"> layout</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">"relative"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Relative positioned</</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="the-space-attribute" tabindex="-1">The <code>space</code> Attribute <a class="header-anchor" href="#the-space-attribute" aria-label="Permalink to "The \`space\` Attribute""></a></h2><p>Controls <strong>sizing and spacing</strong> using the natural scale.</p><h3 id="syntax" tabindex="-1">Syntax <a class="header-anchor" href="#syntax" aria-label="Permalink to "Syntax""></a></h3><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><h3 id="padding" tabindex="-1">Padding <a class="header-anchor" href="#padding" aria-label="Permalink to "Padding""></a></h3><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>
|
|
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;"> 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>
|
|
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:#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:small p-b:big"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Top & 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><h3 id="margin" tabindex="-1">Margin <a class="header-anchor" href="#margin" aria-label="Permalink to "Margin""></a></h3><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>
|
|
20
|
-
<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 only</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
21
|
-
<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><h3 id="gap-flex-grid" tabindex="-1">Gap (Flex/Grid) <a class="header-anchor" href="#gap-flex-grid" aria-label="Permalink to "Gap (Flex/Grid)""></a></h3><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>
|
|
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;">"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:medium"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Medium gap</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h3 id="sizing" tabindex="-1">Sizing <a class="header-anchor" href="#sizing" aria-label="Permalink to "Sizing""></a></h3><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>
|
|
23
|
-
<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] min-h:[80vh]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Constraints</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h3 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></h3><p>Use brackets 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;">>350px width</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></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:#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 top/bottom, 40px left/right</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
25
|
-
<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="the-visual-attribute" tabindex="-1">The <code>visual</code> Attribute <a class="header-anchor" href="#the-visual-attribute" aria-label="Permalink to "The \`visual\` Attribute""></a></h2><p>Controls <strong>colors, textures, and appearance</strong>.</p><h3 id="background" tabindex="-1">Background <a class="header-anchor" href="#background" aria-label="Permalink to "Background""></a></h3><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>
|
|
26
|
-
<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>
|
|
27
|
-
<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></code></pre></div><h3 id="text" tabindex="-1">Text <a class="header-anchor" href="#text" aria-label="Permalink to "Text""></a></h3><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>
|
|
28
|
-
<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 text-size:small"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Grey, small text</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">span</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
29
|
-
<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><h3 id="borders-shadows" tabindex="-1">Borders & Shadows <a class="header-anchor" href="#borders-shadows" aria-label="Permalink to "Borders & Shadows""></a></h3><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:medium shadow:big"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Rounded with shadow</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
30
|
-
<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:[2px]"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Grey border</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">div</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h3 id="combining-properties" tabindex="-1">Combining Properties <a class="header-anchor" href="#combining-properties" aria-label="Permalink to "Combining Properties""></a></h3><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>
|
|
31
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Card with multiple visual properties</span></span>
|
|
32
|
-
<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="combining-all-three" tabindex="-1">Combining All Three <a class="header-anchor" href="#combining-all-three" aria-label="Permalink to "Combining All Three""></a></h2><p>Here's a complete example:</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>
|
|
33
|
-
<span class="line"><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>
|
|
34
|
-
<span class="line"><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:[320px] p:medium g:small"</span></span>
|
|
35
|
-
<span class="line"><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"</span></span>
|
|
36
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
37
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> <</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">h2</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 text-size:big text:dark"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Card Title</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">h2</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
38
|
-
<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:grey"</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>Card description goes here.</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">p</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
39
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> <</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">button</span></span>
|
|
40
|
-
<span class="line"><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>
|
|
41
|
-
<span class="line"><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 text:white rounded:medium"</span></span>
|
|
42
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> ></span></span>
|
|
43
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Action</span></span>
|
|
44
|
-
<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>
|
|
45
|
-
<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><p><strong>Reading this code:</strong></p><ul><li>The container is a vertical flex column, 320px wide, with medium padding, small gap, white background, big rounded corners, and medium shadow</li><li>The title is bold, big text, dark color</li><li>The button has big horizontal padding, small vertical padding, primary background, white text, medium rounded corners</li></ul>`,52)])])}const o=i(l,[["render",n]]);export{g as __pageData,o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i,c as a,o as t,ae as h}from"./chunks/framework.I305HrzY.js";const g=JSON.parse('{"title":"Tri-Attribute Syntax","description":"","frontmatter":{},"headers":[],"relativePath":"guide/tri-attribute.md","filePath":"guide/tri-attribute.md"}'),l={name:"guide/tri-attribute.md"};function n(e,s,k,p,E,d){return t(),a("div",null,[...s[0]||(s[0]=[h("",52)])])}const o=i(l,[["render",n]]);export{g as __pageData,o as default};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{_ as s,c as t,o as a,ae as e}from"./chunks/framework.I305HrzY.js";const c=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"SenangStart CSS","text":"The Intent-First CSS Engine","tagline":"Speak Human. Compile to Logic.","image":{"src":"https://senangstart.com/img/use_senangstart.svg","alt":"SenangStart CSS"},"actions":[{"theme":"brand","text":"Get Started","link":"/guide/getting-started"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/bookklik-technologies/senangstart-css"}]},"features":[{"icon":"🧠","title":"Natural Language","details":"Use tiny, small, medium, big, giant, vast — words you already know. No more memorizing px-4, px-8, px-16."},{"icon":"🎯","title":"Separation of Concerns","details":"layout for structure, space for sizing, visual for appearance. Clean, semantic, maintainable."},{"icon":"🤖","title":"AI-Friendly","details":"Generates context files for LLMs. Say \\"tighten it up\\" and AI knows to scale down spacing."},{"icon":"⚡","title":"Zero Build Option","details":"Use the CDN JIT runtime for instant styling. No build step required for prototyping."},{"icon":"📱","title":"Responsive by Design","details":"Mobile-first breakpoints with intuitive prefixes like mob:, tab:, lap:, desk:."},{"icon":"🎨","title":"Fully Customizable","details":"Override any scale, add custom colors, extend the theme to match your brand."}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),n={name:"index.md"};function l(o,i,r,p,h,d){return a(),t("div",null,[...i[0]||(i[0]=[e(`<h2 id="quick-example" tabindex="-1">Quick Example <a class="header-anchor" href="#quick-example" aria-label="Permalink to "Quick Example""></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>
|
|
2
|
-
<span class="line"><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"</span></span>
|
|
3
|
-
<span class="line"><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:big"</span></span>
|
|
4
|
-
<span class="line"><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 text:white rounded:big"</span></span>
|
|
5
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
|
6
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> Hello SenangStart!</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:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><p>This creates a flexbox column, centered, with big padding, primary background, white text, and big rounded corners. <strong>No CSS classes to memorize.</strong></p>`,3)])])}const g=s(n,[["render",l]]);export{c as __pageData,g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as s,c as t,o as a,ae as e}from"./chunks/framework.I305HrzY.js";const c=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"SenangStart CSS","text":"The Intent-First CSS Engine","tagline":"Speak Human. Compile to Logic.","image":{"src":"https://senangstart.com/img/use_senangstart.svg","alt":"SenangStart CSS"},"actions":[{"theme":"brand","text":"Get Started","link":"/guide/getting-started"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/bookklik-technologies/senangstart-css"}]},"features":[{"icon":"🧠","title":"Natural Language","details":"Use tiny, small, medium, big, giant, vast — words you already know. No more memorizing px-4, px-8, px-16."},{"icon":"🎯","title":"Separation of Concerns","details":"layout for structure, space for sizing, visual for appearance. Clean, semantic, maintainable."},{"icon":"🤖","title":"AI-Friendly","details":"Generates context files for LLMs. Say \\"tighten it up\\" and AI knows to scale down spacing."},{"icon":"⚡","title":"Zero Build Option","details":"Use the CDN JIT runtime for instant styling. No build step required for prototyping."},{"icon":"📱","title":"Responsive by Design","details":"Mobile-first breakpoints with intuitive prefixes like mob:, tab:, lap:, desk:."},{"icon":"🎨","title":"Fully Customizable","details":"Override any scale, add custom colors, extend the theme to match your brand."}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),n={name:"index.md"};function l(o,i,r,p,h,d){return a(),t("div",null,[...i[0]||(i[0]=[e("",3)])])}const g=s(n,[["render",l]]);export{c as __pageData,g as default};
|