@bookklik/senangstart-css 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -0
- package/dist/senangstart-css.js +2269 -1955
- package/dist/senangstart-css.min.js +141 -1479
- package/docs/.vitepress/config.js +5 -3
- package/docs/.vitepress/theme/custom.css +0 -1
- package/docs/guide/responsive.md +25 -0
- package/docs/index.md +9 -21
- package/docs/ms/guide/responsive.md +25 -0
- package/docs/ms/index.md +9 -21
- package/docs/ms/reference/breakpoints.md +23 -0
- package/docs/ms/reference/layout/align-content.md +57 -4
- package/docs/ms/reference/layout/align-items.md +81 -4
- package/docs/ms/reference/layout/align-self.md +25 -4
- package/docs/ms/reference/layout/aspect-ratio.md +27 -8
- package/docs/ms/reference/layout/border-collapse.md +81 -4
- package/docs/ms/reference/layout/border-spacing.md +43 -8
- package/docs/ms/reference/layout/box-sizing.md +21 -4
- package/docs/ms/reference/layout/caption-side.md +69 -4
- package/docs/ms/reference/layout/columns.md +21 -4
- package/docs/ms/reference/layout/container.md +21 -4
- package/docs/ms/reference/layout/display.md +39 -7
- package/docs/ms/reference/layout/flex-basis.md +29 -8
- package/docs/ms/reference/layout/flex-direction.md +81 -4
- package/docs/ms/reference/layout/flex-items.md +51 -4
- package/docs/ms/reference/layout/flex-wrap.md +55 -4
- package/docs/ms/reference/layout/flex.md +54 -7
- package/docs/ms/reference/layout/float-clear.md +23 -4
- package/docs/ms/reference/layout/grid-auto-flow.md +57 -4
- package/docs/ms/reference/layout/grid-auto-sizing.md +25 -4
- package/docs/ms/reference/layout/grid-column-span.md +59 -4
- package/docs/ms/reference/layout/grid-columns.md +61 -4
- package/docs/ms/reference/layout/grid-row-span.md +29 -4
- package/docs/ms/reference/layout/grid-rows.md +31 -4
- package/docs/ms/reference/layout/inset.md +56 -7
- package/docs/ms/reference/layout/isolation.md +21 -4
- package/docs/ms/reference/layout/justify-content.md +81 -4
- package/docs/ms/reference/layout/justify-items.md +25 -4
- package/docs/ms/reference/layout/justify-self.md +25 -4
- package/docs/ms/reference/layout/object-fit.md +57 -4
- package/docs/ms/reference/layout/object-position.md +29 -8
- package/docs/ms/reference/layout/order.md +53 -4
- package/docs/ms/reference/layout/overflow.md +45 -4
- package/docs/ms/reference/layout/overscroll.md +21 -4
- package/docs/ms/reference/layout/place-content.md +23 -4
- package/docs/ms/reference/layout/place-items.md +25 -4
- package/docs/ms/reference/layout/place-self.md +25 -4
- package/docs/ms/reference/layout/position.md +47 -4
- package/docs/ms/reference/layout/shorthand-alignment.md +47 -4
- package/docs/ms/reference/layout/table-layout.md +69 -4
- package/docs/ms/reference/layout/visibility.md +25 -4
- package/docs/ms/reference/layout/z-index.md +27 -4
- package/docs/ms/reference/space/gap.md +71 -7
- package/docs/ms/reference/space/height.md +61 -7
- package/docs/ms/reference/space/margin.md +61 -7
- package/docs/ms/reference/space/padding.md +65 -7
- package/docs/ms/reference/space/width.md +61 -7
- package/docs/ms/reference/visual/accent-color.md +29 -8
- package/docs/ms/reference/visual/animation-builtin.md +29 -8
- package/docs/ms/reference/visual/animation-delay.md +25 -8
- package/docs/ms/reference/visual/animation-direction.md +25 -4
- package/docs/ms/reference/visual/animation-duration.md +27 -8
- package/docs/ms/reference/visual/animation-fill.md +25 -4
- package/docs/ms/reference/visual/animation-iteration.md +23 -4
- package/docs/ms/reference/visual/animation-play.md +23 -4
- package/docs/ms/reference/visual/appearance.md +23 -4
- package/docs/ms/reference/visual/backdrop-blur.md +29 -8
- package/docs/ms/reference/visual/backdrop-brightness.md +29 -8
- package/docs/ms/reference/visual/backdrop-contrast.md +29 -8
- package/docs/ms/reference/visual/backdrop-grayscale.md +27 -8
- package/docs/ms/reference/visual/backdrop-hue-rotate.md +29 -8
- package/docs/ms/reference/visual/backdrop-invert.md +27 -8
- package/docs/ms/reference/visual/backdrop-opacity.md +29 -8
- package/docs/ms/reference/visual/backdrop-saturate.md +29 -8
- package/docs/ms/reference/visual/backdrop-sepia.md +27 -8
- package/docs/ms/reference/visual/background-attachment.md +23 -4
- package/docs/ms/reference/visual/background-blend-mode.md +25 -4
- package/docs/ms/reference/visual/background-clip.md +21 -4
- package/docs/ms/reference/visual/background-color.md +33 -8
- package/docs/ms/reference/visual/background-image.md +27 -8
- package/docs/ms/reference/visual/background-origin.md +25 -4
- package/docs/ms/reference/visual/background-position.md +29 -8
- package/docs/ms/reference/visual/background-repeat.md +25 -4
- package/docs/ms/reference/visual/background-size.md +29 -8
- package/docs/ms/reference/visual/blend-modes.md +23 -4
- package/docs/ms/reference/visual/border-radius.md +36 -4
- package/docs/ms/reference/visual/border-style.md +25 -4
- package/docs/ms/reference/visual/border-width.md +29 -8
- package/docs/ms/reference/visual/border.md +56 -7
- package/docs/ms/reference/visual/box-shadow.md +34 -4
- package/docs/ms/reference/visual/caret-color.md +25 -8
- package/docs/ms/reference/visual/color-scheme.md +23 -4
- package/docs/ms/reference/visual/cursor.md +25 -4
- package/docs/ms/reference/visual/field-sizing.md +23 -4
- package/docs/ms/reference/visual/fill.md +29 -8
- package/docs/ms/reference/visual/filter-blur.md +29 -8
- package/docs/ms/reference/visual/filter-brightness.md +29 -8
- package/docs/ms/reference/visual/filter-contrast.md +29 -8
- package/docs/ms/reference/visual/filter-drop-shadow.md +29 -8
- package/docs/ms/reference/visual/filter-grayscale.md +29 -8
- package/docs/ms/reference/visual/filter-hue-rotate.md +29 -8
- package/docs/ms/reference/visual/filter-invert.md +27 -8
- package/docs/ms/reference/visual/filter-saturate.md +29 -8
- package/docs/ms/reference/visual/filter-sepia.md +29 -8
- package/docs/ms/reference/visual/font-family.md +25 -4
- package/docs/ms/reference/visual/font-smoothing.md +23 -4
- package/docs/ms/reference/visual/font-style.md +23 -4
- package/docs/ms/reference/visual/font-variant-numeric.md +23 -4
- package/docs/ms/reference/visual/font-weight.md +35 -4
- package/docs/ms/reference/visual/forced-color-adjust.md +23 -4
- package/docs/ms/reference/visual/hyphens.md +25 -4
- package/docs/ms/reference/visual/letter-spacing.md +29 -8
- package/docs/ms/reference/visual/line-clamp.md +29 -8
- package/docs/ms/reference/visual/line-height.md +29 -8
- package/docs/ms/reference/visual/list-style.md +25 -4
- package/docs/ms/reference/visual/mask.md +25 -8
- package/docs/ms/reference/visual/opacity.md +27 -4
- package/docs/ms/reference/visual/outline.md +25 -8
- package/docs/ms/reference/visual/pointer-events.md +23 -4
- package/docs/ms/reference/visual/resize.md +27 -4
- package/docs/ms/reference/visual/scroll-behavior.md +23 -4
- package/docs/ms/reference/visual/scroll-margin.md +25 -8
- package/docs/ms/reference/visual/scroll-padding.md +25 -8
- package/docs/ms/reference/visual/scroll-snap-align.md +25 -4
- package/docs/ms/reference/visual/scroll-snap-stop.md +23 -4
- package/docs/ms/reference/visual/scroll-snap-type.md +25 -4
- package/docs/ms/reference/visual/state-prefixes.md +21 -4
- package/docs/ms/reference/visual/stroke-width.md +29 -8
- package/docs/ms/reference/visual/stroke.md +27 -8
- package/docs/ms/reference/visual/text-alignment.md +25 -4
- package/docs/ms/reference/visual/text-color.md +31 -8
- package/docs/ms/reference/visual/text-decoration.md +23 -4
- package/docs/ms/reference/visual/text-indent.md +25 -8
- package/docs/ms/reference/visual/text-overflow.md +21 -4
- package/docs/ms/reference/visual/text-shadow.md +25 -8
- package/docs/ms/reference/visual/text-size.md +41 -7
- package/docs/ms/reference/visual/text-transform.md +25 -4
- package/docs/ms/reference/visual/text-wrap.md +25 -4
- package/docs/ms/reference/visual/touch-action.md +25 -4
- package/docs/ms/reference/visual/transform-backface.md +23 -4
- package/docs/ms/reference/visual/transform-origin.md +27 -8
- package/docs/ms/reference/visual/transform-perspective-origin.md +25 -8
- package/docs/ms/reference/visual/transform-perspective.md +25 -8
- package/docs/ms/reference/visual/transform-rotate.md +29 -8
- package/docs/ms/reference/visual/transform-scale.md +29 -8
- package/docs/ms/reference/visual/transform-skew.md +29 -8
- package/docs/ms/reference/visual/transform-style.md +23 -4
- package/docs/ms/reference/visual/transform-translate.md +29 -8
- package/docs/ms/reference/visual/transition-delay.md +25 -8
- package/docs/ms/reference/visual/transition-duration.md +27 -8
- package/docs/ms/reference/visual/transition-property.md +21 -4
- package/docs/ms/reference/visual/transition-timing.md +29 -8
- package/docs/ms/reference/visual/typography-keywords.md +27 -4
- package/docs/ms/reference/visual/user-select.md +23 -4
- package/docs/ms/reference/visual/vertical-align.md +25 -4
- package/docs/ms/reference/visual/whitespace.md +25 -4
- package/docs/ms/reference/visual/will-change.md +23 -4
- package/docs/ms/reference/visual/word-break.md +25 -4
- package/docs/public/assets/senangstart-css-logo.svg +1 -0
- package/docs/reference/breakpoints.md +23 -0
- package/docs/reference/layout/align-content.md +57 -4
- package/docs/reference/layout/align-items.md +81 -4
- package/docs/reference/layout/align-self.md +25 -4
- package/docs/reference/layout/aspect-ratio.md +27 -8
- package/docs/reference/layout/border-collapse.md +81 -4
- package/docs/reference/layout/border-spacing.md +43 -8
- package/docs/reference/layout/box-sizing.md +21 -4
- package/docs/reference/layout/caption-side.md +69 -4
- package/docs/reference/layout/columns.md +21 -4
- package/docs/reference/layout/container.md +21 -4
- package/docs/reference/layout/display.md +39 -7
- package/docs/reference/layout/flex-basis.md +29 -8
- package/docs/reference/layout/flex-direction.md +81 -4
- package/docs/reference/layout/flex-items.md +51 -4
- package/docs/reference/layout/flex-wrap.md +55 -4
- package/docs/reference/layout/flex.md +54 -7
- package/docs/reference/layout/float-clear.md +23 -4
- package/docs/reference/layout/grid-auto-flow.md +57 -4
- package/docs/reference/layout/grid-auto-sizing.md +25 -4
- package/docs/reference/layout/grid-column-span.md +59 -4
- package/docs/reference/layout/grid-columns.md +61 -4
- package/docs/reference/layout/grid-row-span.md +29 -4
- package/docs/reference/layout/grid-rows.md +31 -4
- package/docs/reference/layout/inset.md +56 -7
- package/docs/reference/layout/isolation.md +21 -4
- package/docs/reference/layout/justify-content.md +81 -4
- package/docs/reference/layout/justify-items.md +25 -4
- package/docs/reference/layout/justify-self.md +25 -4
- package/docs/reference/layout/object-fit.md +57 -4
- package/docs/reference/layout/object-position.md +29 -8
- package/docs/reference/layout/order.md +53 -4
- package/docs/reference/layout/overflow.md +45 -4
- package/docs/reference/layout/overscroll.md +21 -4
- package/docs/reference/layout/place-content.md +23 -4
- package/docs/reference/layout/place-items.md +25 -4
- package/docs/reference/layout/place-self.md +25 -4
- package/docs/reference/layout/position.md +47 -4
- package/docs/reference/layout/shorthand-alignment.md +47 -4
- package/docs/reference/layout/table-layout.md +69 -4
- package/docs/reference/layout/visibility.md +25 -4
- package/docs/reference/layout/z-index.md +27 -4
- package/docs/reference/space/gap.md +71 -7
- package/docs/reference/space/height.md +61 -7
- package/docs/reference/space/margin.md +61 -7
- package/docs/reference/space/padding.md +65 -7
- package/docs/reference/space/width.md +61 -7
- package/docs/reference/visual/accent-color.md +29 -8
- package/docs/reference/visual/animation-builtin.md +29 -8
- package/docs/reference/visual/animation-delay.md +25 -8
- package/docs/reference/visual/animation-direction.md +25 -4
- package/docs/reference/visual/animation-duration.md +27 -8
- package/docs/reference/visual/animation-fill.md +25 -4
- package/docs/reference/visual/animation-iteration.md +23 -4
- package/docs/reference/visual/animation-play.md +23 -4
- package/docs/reference/visual/appearance.md +23 -4
- package/docs/reference/visual/backdrop-blur.md +29 -8
- package/docs/reference/visual/backdrop-brightness.md +29 -8
- package/docs/reference/visual/backdrop-contrast.md +29 -8
- package/docs/reference/visual/backdrop-grayscale.md +27 -8
- package/docs/reference/visual/backdrop-hue-rotate.md +29 -8
- package/docs/reference/visual/backdrop-invert.md +27 -8
- package/docs/reference/visual/backdrop-opacity.md +29 -8
- package/docs/reference/visual/backdrop-saturate.md +29 -8
- package/docs/reference/visual/backdrop-sepia.md +27 -8
- package/docs/reference/visual/background-attachment.md +23 -4
- package/docs/reference/visual/background-blend-mode.md +25 -4
- package/docs/reference/visual/background-clip.md +21 -4
- package/docs/reference/visual/background-color.md +33 -8
- package/docs/reference/visual/background-image.md +27 -8
- package/docs/reference/visual/background-origin.md +25 -4
- package/docs/reference/visual/background-position.md +29 -8
- package/docs/reference/visual/background-repeat.md +25 -4
- package/docs/reference/visual/background-size.md +29 -8
- package/docs/reference/visual/blend-modes.md +23 -4
- package/docs/reference/visual/border-radius.md +36 -4
- package/docs/reference/visual/border-style.md +25 -4
- package/docs/reference/visual/border-width.md +29 -8
- package/docs/reference/visual/border.md +56 -7
- package/docs/reference/visual/box-shadow.md +34 -4
- package/docs/reference/visual/caret-color.md +25 -8
- package/docs/reference/visual/color-scheme.md +23 -4
- package/docs/reference/visual/cursor.md +25 -4
- package/docs/reference/visual/field-sizing.md +23 -4
- package/docs/reference/visual/fill.md +29 -8
- package/docs/reference/visual/filter-blur.md +29 -8
- package/docs/reference/visual/filter-brightness.md +29 -8
- package/docs/reference/visual/filter-contrast.md +29 -8
- package/docs/reference/visual/filter-drop-shadow.md +29 -8
- package/docs/reference/visual/filter-grayscale.md +29 -8
- package/docs/reference/visual/filter-hue-rotate.md +29 -8
- package/docs/reference/visual/filter-invert.md +27 -8
- package/docs/reference/visual/filter-saturate.md +29 -8
- package/docs/reference/visual/filter-sepia.md +29 -8
- package/docs/reference/visual/font-family.md +25 -4
- package/docs/reference/visual/font-smoothing.md +23 -4
- package/docs/reference/visual/font-style.md +23 -4
- package/docs/reference/visual/font-variant-numeric.md +23 -4
- package/docs/reference/visual/font-weight.md +35 -4
- package/docs/reference/visual/forced-color-adjust.md +23 -4
- package/docs/reference/visual/hyphens.md +25 -4
- package/docs/reference/visual/letter-spacing.md +29 -8
- package/docs/reference/visual/line-clamp.md +29 -8
- package/docs/reference/visual/line-height.md +29 -8
- package/docs/reference/visual/list-style.md +25 -4
- package/docs/reference/visual/mask.md +25 -8
- package/docs/reference/visual/opacity.md +27 -4
- package/docs/reference/visual/outline.md +25 -8
- package/docs/reference/visual/pointer-events.md +23 -4
- package/docs/reference/visual/resize.md +27 -4
- package/docs/reference/visual/scroll-behavior.md +23 -4
- package/docs/reference/visual/scroll-margin.md +25 -8
- package/docs/reference/visual/scroll-padding.md +25 -8
- package/docs/reference/visual/scroll-snap-align.md +25 -4
- package/docs/reference/visual/scroll-snap-stop.md +23 -4
- package/docs/reference/visual/scroll-snap-type.md +25 -4
- package/docs/reference/visual/state-prefixes.md +21 -4
- package/docs/reference/visual/stroke-width.md +29 -8
- package/docs/reference/visual/stroke.md +27 -8
- package/docs/reference/visual/text-alignment.md +25 -4
- package/docs/reference/visual/text-color.md +31 -8
- package/docs/reference/visual/text-decoration.md +23 -4
- package/docs/reference/visual/text-indent.md +25 -8
- package/docs/reference/visual/text-overflow.md +21 -4
- package/docs/reference/visual/text-shadow.md +25 -8
- package/docs/reference/visual/text-size.md +41 -7
- package/docs/reference/visual/text-transform.md +25 -4
- package/docs/reference/visual/text-wrap.md +25 -4
- package/docs/reference/visual/touch-action.md +25 -4
- package/docs/reference/visual/transform-backface.md +23 -4
- package/docs/reference/visual/transform-origin.md +27 -8
- package/docs/reference/visual/transform-perspective-origin.md +25 -8
- package/docs/reference/visual/transform-perspective.md +25 -8
- package/docs/reference/visual/transform-rotate.md +29 -8
- package/docs/reference/visual/transform-scale.md +29 -8
- package/docs/reference/visual/transform-skew.md +29 -8
- package/docs/reference/visual/transform-style.md +23 -4
- package/docs/reference/visual/transform-translate.md +29 -8
- package/docs/reference/visual/transition-delay.md +25 -8
- package/docs/reference/visual/transition-duration.md +27 -8
- package/docs/reference/visual/transition-property.md +21 -4
- package/docs/reference/visual/transition-timing.md +29 -8
- package/docs/reference/visual/typography-keywords.md +27 -4
- package/docs/reference/visual/user-select.md +23 -4
- package/docs/reference/visual/vertical-align.md +25 -4
- package/docs/reference/visual/whitespace.md +25 -4
- package/docs/reference/visual/will-change.md +23 -4
- package/docs/reference/visual/word-break.md +25 -4
- package/package.json +4 -3
- package/playground/jit-tw-mix-test.html +238 -0
- package/playground/tw-convertor.html +696 -0
- package/scripts/build-dist.js +34 -29
- package/scripts/bundle-jit.js +45 -0
- package/scripts/convert-tailwind.js +759 -0
- package/scripts/generate-docs.js +65 -16
- package/src/cdn/jit.js +313 -102
- package/src/cli/commands/build.js +14 -6
- package/src/cli/commands/dev.js +28 -10
- package/src/compiler/generators/css.js +187 -28
- package/src/compiler/parser.js +23 -10
- package/src/compiler/tokenizer.js +19 -137
- package/src/config/defaults.js +45 -18
- package/src/core/constants.js +427 -0
- package/src/core/tokenizer-core.js +233 -0
- package/src/definitions/layout-alignment.js +210 -0
- package/src/definitions/layout-flex.js +155 -0
- package/src/definitions/layout-grid.js +134 -0
- package/src/definitions/layout-positioning.js +64 -0
- package/src/definitions/layout-table.js +129 -0
- package/src/definitions/layout-utilities.js +164 -0
- package/src/definitions/space.js +172 -0
- package/src/definitions/visual-backgrounds.js +231 -0
- package/src/definitions/visual-borders.js +66 -0
- package/src/definitions/visual-filters.js +111 -0
- package/src/definitions/visual-interactivity.js +159 -0
- package/src/definitions/visual-svg.js +41 -0
- package/src/definitions/visual-transform3d.js +74 -0
- package/src/definitions/visual-transforms.js +69 -0
- package/src/definitions/visual-transitions.js +144 -0
- package/src/definitions/visual-typography.js +214 -0
- package/src/definitions/visual.js +306 -1
- package/tests/integration/compiler.test.js +63 -2
- package/tests/unit/convert-tailwind.test.js +324 -0
- package/tests/unit/security.test.js +206 -0
|
@@ -13,7 +13,7 @@ const sharedThemeConfig = {
|
|
|
13
13
|
],
|
|
14
14
|
footer: {
|
|
15
15
|
message: 'Released under the MIT License.',
|
|
16
|
-
copyright: 'Copyright © 2026
|
|
16
|
+
copyright: 'Copyright © 2026 Bookklik Technologies'
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -762,10 +762,11 @@ export default defineConfig({
|
|
|
762
762
|
label: 'English',
|
|
763
763
|
lang: 'en',
|
|
764
764
|
title: 'SenangStart CSS',
|
|
765
|
-
description: '
|
|
765
|
+
description: 'Fluent Style Utilities for Humans and AI',
|
|
766
766
|
themeConfig: {
|
|
767
767
|
...sharedThemeConfig,
|
|
768
768
|
nav: [
|
|
769
|
+
{ text: 'Home', link: '/' },
|
|
769
770
|
{ text: 'Guide', link: '/guide/getting-started' },
|
|
770
771
|
{ text: 'Reference', link: '/reference/layout' },
|
|
771
772
|
{ text: 'Examples', link: '/examples/' },
|
|
@@ -784,10 +785,11 @@ export default defineConfig({
|
|
|
784
785
|
label: 'Bahasa Melayu',
|
|
785
786
|
lang: 'ms',
|
|
786
787
|
title: 'SenangStart CSS',
|
|
787
|
-
description: '
|
|
788
|
+
description: 'Utiliti Gaya Fasih untuk Manusia dan AI',
|
|
788
789
|
themeConfig: {
|
|
789
790
|
...sharedThemeConfig,
|
|
790
791
|
nav: [
|
|
792
|
+
{ text: 'Utama', link: '/ms/' },
|
|
791
793
|
{ text: 'Panduan', link: '/ms/guide/getting-started' },
|
|
792
794
|
{ text: 'Rujukan', link: '/ms/reference/layout' },
|
|
793
795
|
{ text: 'Contoh', link: '/ms/examples/' },
|
package/docs/guide/responsive.md
CHANGED
|
@@ -127,3 +127,28 @@ Use your custom breakpoint:
|
|
|
127
127
|
Extra large padding on wide screens
|
|
128
128
|
</div>
|
|
129
129
|
```
|
|
130
|
+
|
|
131
|
+
## Tailwind Compatibility
|
|
132
|
+
|
|
133
|
+
SenangStart supports Tailwind CSS default breakpoints out-of-the-box using the `tw-` prefix. This is useful when migrating from Tailwind or when you prefer Tailwind's breakpoint scale.
|
|
134
|
+
|
|
135
|
+
| Prefix | Min-Width | Tailwind Equiv. |
|
|
136
|
+
|--------|-----------|-----------------|
|
|
137
|
+
| `tw-sm:` | 640px | `sm:` |
|
|
138
|
+
| `tw-md:` | 768px | `md:` |
|
|
139
|
+
| `tw-lg:` | 1024px | `lg:` |
|
|
140
|
+
| `tw-xl:` | 1280px | `xl:` |
|
|
141
|
+
| `tw-2xl:` | 1536px | `2xl:` |
|
|
142
|
+
|
|
143
|
+
### Usage with Tailwind Scale
|
|
144
|
+
|
|
145
|
+
You can combine `tw-` prefixed breakpoints with Tailwind-style values (also prefixed with `tw-`):
|
|
146
|
+
|
|
147
|
+
```html
|
|
148
|
+
<div
|
|
149
|
+
space="p:tw-4 tw-md:p:tw-8"
|
|
150
|
+
visual="rounded:tw-lg tw-lg:shadow:tw-xl"
|
|
151
|
+
>
|
|
152
|
+
Tailwind-compatible scaling
|
|
153
|
+
</div>
|
|
154
|
+
```
|
package/docs/index.md
CHANGED
|
@@ -3,10 +3,10 @@ layout: home
|
|
|
3
3
|
|
|
4
4
|
hero:
|
|
5
5
|
name: SenangStart CSS
|
|
6
|
-
text:
|
|
7
|
-
tagline:
|
|
6
|
+
text: Natural Language Engine
|
|
7
|
+
tagline: Fluent Style Utilities for Humans and AI
|
|
8
8
|
image:
|
|
9
|
-
src:
|
|
9
|
+
src: /assets/senangstart-css-logo.svg
|
|
10
10
|
alt: SenangStart CSS
|
|
11
11
|
actions:
|
|
12
12
|
- theme: brand
|
|
@@ -17,38 +17,26 @@ hero:
|
|
|
17
17
|
link: https://github.com/bookklik-technologies/senangstart-css
|
|
18
18
|
|
|
19
19
|
features:
|
|
20
|
-
- icon:
|
|
20
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"></path></svg>
|
|
21
21
|
title: Natural Language
|
|
22
22
|
details: Use tiny, small, medium, big, giant, vast — words you already know. No more memorizing px-4, px-8, px-16.
|
|
23
|
-
- icon:
|
|
23
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Z M3 9h18 M12 9v12"></path></svg>
|
|
24
24
|
title: Separation of Concerns
|
|
25
25
|
details: layout for structure, space for sizing, visual for appearance. Clean, semantic, maintainable.
|
|
26
|
-
- icon:
|
|
26
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 6h12a2.25 2.25 0 0 1 2.25 2.25v7.5A2.25 2.25 0 0 1 18 18H6a2.25 2.25 0 0 1-2.25-2.25v-7.5A2.25 2.25 0 0 1 6 6zM12 3v3M9 3h6M8.25 12a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5zM15.75 12a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5zM9 15h6M7.5 18v3M16.5 18v3"></path></svg>
|
|
27
27
|
title: AI-Friendly
|
|
28
28
|
details: Generates context files for LLMs. Say "tighten it up" and AI knows to scale down spacing.
|
|
29
|
-
- icon:
|
|
29
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M9 3h5L12 8 18 8 8.5 22l3.5-10h-6l2-9z"></path></svg>
|
|
30
30
|
title: Zero Build Option
|
|
31
31
|
details: Use the CDN JIT runtime for instant styling. No build step required for prototyping.
|
|
32
|
-
- icon:
|
|
32
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"></path></svg>
|
|
33
33
|
title: Responsive by Design
|
|
34
34
|
details: Mobile-first breakpoints with intuitive prefixes like mob:, tab:, lap:, desk:.
|
|
35
|
-
- icon:
|
|
35
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 00-1.72 0L2.36 18.64a1.21 1.21 0 000 1.72l1.28 1.28a1.2 1.2 0 001.72 0L21.64 5.36a1.2 1.2 0 000-1.72M10.5 10.5l3 3M5 6v4M19 15v4M10 3v2M7 8H3M21 17h-4M11 4H9"></path></svg>
|
|
36
36
|
title: Fully Customizable
|
|
37
37
|
details: Override any scale, add custom colors, extend the theme to match your brand.
|
|
38
38
|
---
|
|
39
39
|
|
|
40
|
-
<style>
|
|
41
|
-
:root {
|
|
42
|
-
--vp-home-hero-name-color: transparent;
|
|
43
|
-
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #2563EB 30%, #3B82F6);
|
|
44
|
-
--vp-home-hero-image-background-image: linear-gradient(-45deg, #2563EB 50%, #3B82F6 50%);
|
|
45
|
-
--vp-home-hero-image-filter: blur(44px);
|
|
46
|
-
--vp-c-brand-1: #2563EB;
|
|
47
|
-
--vp-c-brand-2: #3B82F6;
|
|
48
|
-
--vp-c-brand-3: #DBEAFE;
|
|
49
|
-
}
|
|
50
|
-
</style>
|
|
51
|
-
|
|
52
40
|
## Quick Example
|
|
53
41
|
|
|
54
42
|
```html
|
|
@@ -127,3 +127,28 @@ Guna breakpoint tersuai anda:
|
|
|
127
127
|
Padding extra besar pada skrin lebar
|
|
128
128
|
</div>
|
|
129
129
|
```
|
|
130
|
+
|
|
131
|
+
## Keserasian Tailwind
|
|
132
|
+
|
|
133
|
+
SenangStart menyokong titik henti (breakpoint) lalai Tailwind CSS secara terus menggunakan prefiks `tw-`. Ini berguna apabila berpindah dari Tailwind atau jika anda lebih suka skala breakpoint Tailwind.
|
|
134
|
+
|
|
135
|
+
| Prefiks | Min-Width | Persamaan Tailwind |
|
|
136
|
+
|---------|-----------|--------------------|
|
|
137
|
+
| `tw-sm:` | 640px | `sm:` |
|
|
138
|
+
| `tw-md:` | 768px | `md:` |
|
|
139
|
+
| `tw-lg:` | 1024px | `lg:` |
|
|
140
|
+
| `tw-xl:` | 1280px | `xl:` |
|
|
141
|
+
| `tw-2xl:` | 1536px | `2xl:` |
|
|
142
|
+
|
|
143
|
+
### Penggunaan dengan Skala Tailwind
|
|
144
|
+
|
|
145
|
+
Anda boleh menggabungkan prefiks breakpoint `tw-` dengan nilai gaya Tailwind (juga bermula dengan `tw-`):
|
|
146
|
+
|
|
147
|
+
```html
|
|
148
|
+
<div
|
|
149
|
+
space="p:tw-4 tw-md:p:tw-8"
|
|
150
|
+
visual="rounded:tw-lg tw-lg:shadow:tw-xl"
|
|
151
|
+
>
|
|
152
|
+
Penskalaan serasi Tailwind
|
|
153
|
+
</div>
|
|
154
|
+
```
|
package/docs/ms/index.md
CHANGED
|
@@ -3,10 +3,10 @@ layout: home
|
|
|
3
3
|
|
|
4
4
|
hero:
|
|
5
5
|
name: SenangStart CSS
|
|
6
|
-
text: Enjin
|
|
7
|
-
tagline:
|
|
6
|
+
text: Enjin Bahasa Natural
|
|
7
|
+
tagline: Stail Utiliti yang Fasih untuk Manusia dan AI
|
|
8
8
|
image:
|
|
9
|
-
src:
|
|
9
|
+
src: /assets/senangstart-css-logo.svg
|
|
10
10
|
alt: SenangStart CSS
|
|
11
11
|
actions:
|
|
12
12
|
- theme: brand
|
|
@@ -17,38 +17,26 @@ hero:
|
|
|
17
17
|
link: https://github.com/bookklik-technologies/senangstart-css
|
|
18
18
|
|
|
19
19
|
features:
|
|
20
|
-
- icon:
|
|
20
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"></path></svg>
|
|
21
21
|
title: Bahasa Semula Jadi
|
|
22
22
|
details: Guna tiny, small, medium, big, giant, vast — perkataan yang anda sudah tahu. Tak perlu hafal px-4, px-8, px-16.
|
|
23
|
-
- icon:
|
|
23
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Z M3 9h18 M12 9v12"></path></svg>
|
|
24
24
|
title: Pengasingan Tanggungjawab
|
|
25
25
|
details: layout untuk struktur, space untuk saiz, visual untuk penampilan. Bersih, semantik, mudah diselenggara.
|
|
26
|
-
- icon:
|
|
26
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 6h12a2.25 2.25 0 0 1 2.25 2.25v7.5A2.25 2.25 0 0 1 18 18H6a2.25 2.25 0 0 1-2.25-2.25v-7.5A2.25 2.25 0 0 1 6 6zM12 3v3M9 3h6M8.25 12a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5zM15.75 12a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5zM9 15h6M7.5 18v3M16.5 18v3"></path></svg>
|
|
27
27
|
title: Mesra AI
|
|
28
28
|
details: Menghasilkan fail konteks untuk LLM. Cakap "ketatkan" dan AI tahu untuk kurangkan jarak.
|
|
29
|
-
- icon:
|
|
29
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M9 3h5L12 8 18 8 8.5 22l3.5-10h-6l2-9z"></path></svg>
|
|
30
30
|
title: Pilihan Tanpa Bina
|
|
31
31
|
details: Guna CDN JIT runtime untuk stail serta-merta. Tiada langkah bina diperlukan untuk prototaip.
|
|
32
|
-
- icon:
|
|
32
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"></path></svg>
|
|
33
33
|
title: Responsif Secara Rekaan
|
|
34
34
|
details: Titik Henti mobile-first dengan prefiks intuitif seperti mob:, tab:, lap:, desk:.
|
|
35
|
-
- icon:
|
|
35
|
+
- icon: <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 00-1.72 0L2.36 18.64a1.21 1.21 0 000 1.72l1.28 1.28a1.2 1.2 0 001.72 0L21.64 5.36a1.2 1.2 0 000-1.72M10.5 10.5l3 3M5 6v4M19 15v4M10 3v2M7 8H3M21 17h-4M11 4H9"></path></svg>
|
|
36
36
|
title: Boleh Disesuaikan Sepenuhnya
|
|
37
37
|
details: Tindih ganti mana-mana skala, tambah warna tersuai, lanjutkan tema untuk padankan jenama anda.
|
|
38
38
|
---
|
|
39
39
|
|
|
40
|
-
<style>
|
|
41
|
-
:root {
|
|
42
|
-
--vp-home-hero-name-color: transparent;
|
|
43
|
-
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #2563EB 30%, #3B82F6);
|
|
44
|
-
--vp-home-hero-image-background-image: linear-gradient(-45deg, #2563EB 50%, #3B82F6 50%);
|
|
45
|
-
--vp-home-hero-image-filter: blur(44px);
|
|
46
|
-
--vp-c-brand-1: #2563EB;
|
|
47
|
-
--vp-c-brand-2: #3B82F6;
|
|
48
|
-
--vp-c-brand-3: #DBEAFE;
|
|
49
|
-
}
|
|
50
|
-
</style>
|
|
51
|
-
|
|
52
40
|
## Contoh Pantas
|
|
53
41
|
|
|
54
42
|
```html
|
|
@@ -12,6 +12,29 @@ Rujukan lengkap untuk breakpoint responsif.
|
|
|
12
12
|
| `lap:` | 1024px | Komputer riba |
|
|
13
13
|
| `desk:` | 1280px | Desktop |
|
|
14
14
|
|
|
15
|
+
## Keserasian Tailwind
|
|
16
|
+
|
|
17
|
+
SenangStart menyokong titik henti (breakpoint) lalai Tailwind CSS menggunakan prefiks `tw-`.
|
|
18
|
+
|
|
19
|
+
| Prefiks | Min-Width | Persamaan Tailwind |
|
|
20
|
+
|---------|-----------|--------------------|
|
|
21
|
+
| `tw-sm:` | 640px | `sm:` |
|
|
22
|
+
| `tw-md:` | 768px | `md:` |
|
|
23
|
+
| `tw-lg:` | 1024px | `lg:` |
|
|
24
|
+
| `tw-xl:` | 1280px | `xl:` |
|
|
25
|
+
| `tw-2xl:` | 1536px | `2xl:` |
|
|
26
|
+
|
|
27
|
+
### Penggunaan dengan Skala Tailwind
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<div
|
|
31
|
+
space="p:tw-4 tw-md:p:tw-8"
|
|
32
|
+
visual="rounded:tw-lg tw-lg:shadow:tw-xl"
|
|
33
|
+
>
|
|
34
|
+
Penskalaan serasi Tailwind
|
|
35
|
+
</div>
|
|
36
|
+
```
|
|
37
|
+
|
|
15
38
|
## Media Query CSS
|
|
16
39
|
|
|
17
40
|
```css
|
|
@@ -25,11 +25,64 @@ layout="content:[value]"
|
|
|
25
25
|
<div layout="flex wrap content:center">Centered rows</div>
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
##
|
|
28
|
+
## Pratonton
|
|
29
|
+
|
|
30
|
+
<div space="p-x:big p-b:medium m-t:medium" visual="border-w:thin border:neutral-100 dark:border:neutral-800 rounded:medium">
|
|
31
|
+
|
|
32
|
+
### Kandungan Tengah
|
|
33
|
+
|
|
34
|
+
<div layout="flex col" space="g:medium">
|
|
35
|
+
<p space="m:none" visual="text:neutral-600 dark:text:neutral-400 text-sm"><code>layout="content:center"</code> - Tengahkan baris bungkus dalam bekas berbilang baris</p>
|
|
36
|
+
<div layout="flex wrap content:center" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 150px; max-width: 200px;">
|
|
37
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">1</span>
|
|
38
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">2</span>
|
|
39
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">3</span>
|
|
40
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">4</span>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<details>
|
|
45
|
+
<summary>Lihat Kod</summary>
|
|
46
|
+
|
|
47
|
+
```html
|
|
48
|
+
<div layout="flex wrap content:center" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 150px; max-width: 200px;">
|
|
49
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">1</span>
|
|
50
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">2</span>
|
|
51
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">3</span>
|
|
52
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">4</span>
|
|
53
|
+
</div>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
</details>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div space="p-x:big p-b:medium m-t:medium" visual="border-w:thin border:neutral-100 dark:border:neutral-800 rounded:medium">
|
|
61
|
+
|
|
62
|
+
### Kandungan Antara
|
|
63
|
+
|
|
64
|
+
<div layout="flex col" space="g:medium">
|
|
65
|
+
<p space="m:none" visual="text:neutral-600 dark:text:neutral-400 text-sm"><code>layout="content:between"</code> - Ruang antara baris bungkus</p>
|
|
66
|
+
<div layout="flex wrap content:between" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 150px; max-width: 200px;">
|
|
67
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">1</span>
|
|
68
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">2</span>
|
|
69
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">3</span>
|
|
70
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">4</span>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<details>
|
|
75
|
+
<summary>Lihat Kod</summary>
|
|
29
76
|
|
|
30
77
|
```html
|
|
31
|
-
|
|
32
|
-
<
|
|
33
|
-
|
|
78
|
+
<div layout="flex wrap content:between" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 150px; max-width: 200px;">
|
|
79
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">1</span>
|
|
80
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">2</span>
|
|
81
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">3</span>
|
|
82
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">4</span>
|
|
34
83
|
</div>
|
|
35
84
|
```
|
|
85
|
+
|
|
86
|
+
</details>
|
|
87
|
+
|
|
88
|
+
</div>
|
|
@@ -23,11 +23,88 @@ layout="items:[value]"
|
|
|
23
23
|
<div layout="flex items:center">Centered</div>
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
##
|
|
26
|
+
## Pratonton
|
|
27
|
+
|
|
28
|
+
<div space="p-x:big p-b:medium m-t:medium" visual="border-w:thin border:neutral-100 dark:border:neutral-800 rounded:medium">
|
|
29
|
+
|
|
30
|
+
### Item Tengah
|
|
31
|
+
|
|
32
|
+
<div layout="flex col" space="g:medium">
|
|
33
|
+
<p space="m:none" visual="text:neutral-600 dark:text:neutral-400 text-sm"><code>layout="items:center"</code> - Item berpusat sepanjang paksi silang</p>
|
|
34
|
+
<div layout="flex items:center" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 100px;">
|
|
35
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">Short</span>
|
|
36
|
+
<span space="p:large" visual="bg:primary text:white rounded:small">Tall</span>
|
|
37
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">Short</span>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<details>
|
|
42
|
+
<summary>Lihat Kod</summary>
|
|
27
43
|
|
|
28
44
|
```html
|
|
29
|
-
|
|
30
|
-
<
|
|
31
|
-
|
|
45
|
+
<div layout="flex items:center" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 100px;">
|
|
46
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">Short</span>
|
|
47
|
+
<span space="p:large" visual="bg:primary text:white rounded:small">Tall</span>
|
|
48
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">Short</span>
|
|
32
49
|
</div>
|
|
33
50
|
```
|
|
51
|
+
|
|
52
|
+
</details>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div space="p-x:big p-b:medium m-t:medium" visual="border-w:thin border:neutral-100 dark:border:neutral-800 rounded:medium">
|
|
57
|
+
|
|
58
|
+
### Item Permulaan
|
|
59
|
+
|
|
60
|
+
<div layout="flex col" space="g:medium">
|
|
61
|
+
<p space="m:none" visual="text:neutral-600 dark:text:neutral-400 text-sm"><code>layout="items:start"</code> - Item dijajarkan ke permulaan paksi silang</p>
|
|
62
|
+
<div layout="flex items:start" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 100px;">
|
|
63
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">Short</span>
|
|
64
|
+
<span space="p:large" visual="bg:primary text:white rounded:small">Tall</span>
|
|
65
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">Short</span>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<details>
|
|
70
|
+
<summary>Lihat Kod</summary>
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<div layout="flex items:start" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 100px;">
|
|
74
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">Short</span>
|
|
75
|
+
<span space="p:large" visual="bg:primary text:white rounded:small">Tall</span>
|
|
76
|
+
<span space="p:small" visual="bg:primary text:white rounded:small">Short</span>
|
|
77
|
+
</div>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
</details>
|
|
81
|
+
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<div space="p-x:big p-b:medium m-t:medium" visual="border-w:thin border:neutral-100 dark:border:neutral-800 rounded:medium">
|
|
85
|
+
|
|
86
|
+
### Item Regang
|
|
87
|
+
|
|
88
|
+
<div layout="flex col" space="g:medium">
|
|
89
|
+
<p space="m:none" visual="text:neutral-600 dark:text:neutral-400 text-sm"><code>layout="items:stretch"</code> - Item diregangkan untuk mengisi ketinggian bekas</p>
|
|
90
|
+
<div layout="flex items:stretch" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 100px;">
|
|
91
|
+
<span layout="flex center" space="p:small" visual="bg:primary text:white rounded:small">1</span>
|
|
92
|
+
<span layout="flex center" space="p:small" visual="bg:primary text:white rounded:small">2</span>
|
|
93
|
+
<span layout="flex center" space="p:small" visual="bg:primary text:white rounded:small">3</span>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<details>
|
|
98
|
+
<summary>Lihat Kod</summary>
|
|
99
|
+
|
|
100
|
+
```html
|
|
101
|
+
<div layout="flex items:stretch" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 100px;">
|
|
102
|
+
<span layout="flex center" space="p:small" visual="bg:primary text:white rounded:small">1</span>
|
|
103
|
+
<span layout="flex center" space="p:small" visual="bg:primary text:white rounded:small">2</span>
|
|
104
|
+
<span layout="flex center" space="p:small" visual="bg:primary text:white rounded:small">3</span>
|
|
105
|
+
</div>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
</details>
|
|
109
|
+
|
|
110
|
+
</div>
|
|
@@ -24,11 +24,32 @@ layout="self:[value]"
|
|
|
24
24
|
<div layout="self:center">Centered item</div>
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## Pratonton
|
|
28
|
+
|
|
29
|
+
<div space="p-x:big p-b:medium m-t:medium" visual="border-w:thin border:neutral-100 dark:border:neutral-800 rounded:medium">
|
|
30
|
+
|
|
31
|
+
### Jajar Kendiri
|
|
32
|
+
|
|
33
|
+
<div layout="flex col" space="g:medium">
|
|
34
|
+
<p space="m:none" visual="text:neutral-600 dark:text:neutral-400 text-sm"><code>layout="self:center"</code> - Ganti penjajaran induk untuk satu item</p>
|
|
35
|
+
<div layout="flex items:start" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 100px;">
|
|
36
|
+
<span space="p:small" visual="bg:neutral-300 dark:bg:neutral-700 text:neutral-800 dark:text:neutral-200 rounded:small">Start</span>
|
|
37
|
+
<span layout="self:center" space="p:small" visual="bg:primary text:white rounded:small">self:center</span>
|
|
38
|
+
<span space="p:small" visual="bg:neutral-300 dark:bg:neutral-700 text:neutral-800 dark:text:neutral-200 rounded:small">Start</span>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<details>
|
|
43
|
+
<summary>Lihat Kod</summary>
|
|
28
44
|
|
|
29
45
|
```html
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
|
|
46
|
+
<div layout="flex items:start" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium" style="height: 100px;">
|
|
47
|
+
<span space="p:small" visual="bg:neutral-300 dark:bg:neutral-700 text:neutral-800 dark:text:neutral-200 rounded:small">Start</span>
|
|
48
|
+
<span layout="self:center" space="p:small" visual="bg:primary text:white rounded:small">self:center</span>
|
|
49
|
+
<span space="p:small" visual="bg:neutral-300 dark:bg:neutral-700 text:neutral-800 dark:text:neutral-200 rounded:small">Start</span>
|
|
33
50
|
</div>
|
|
34
51
|
```
|
|
52
|
+
|
|
53
|
+
</details>
|
|
54
|
+
|
|
55
|
+
</div>
|
|
@@ -22,19 +22,38 @@ layout="aspect:[value]"
|
|
|
22
22
|
<div layout="aspect:[4/3]">4:3</div>
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
## Pratonton
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
<div space="p-x:big p-b:medium m-t:medium" visual="border-w:thin border:neutral-100 dark:border:neutral-800 rounded:medium">
|
|
28
|
+
|
|
29
|
+
### Nisbah Aspek Segi Empat
|
|
30
|
+
|
|
31
|
+
<div layout="flex col" space="g:medium">
|
|
32
|
+
<p space="m:none" visual="text:neutral-600 dark:text:neutral-400 text-sm"><code>layout="aspect:square"</code> - Nisbah aspek 1:1</p>
|
|
33
|
+
<div layout="flex" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
34
|
+
<div layout="aspect:square flex center" visual="bg:primary text:white rounded:small" style="width: 80px;">1:1</div>
|
|
35
|
+
<div layout="aspect:video flex center" visual="bg:primary text:white rounded:small" style="width: 80px;">16:9</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<details>
|
|
40
|
+
<summary>Lihat Kod</summary>
|
|
28
41
|
|
|
29
42
|
```html
|
|
30
|
-
<div layout="
|
|
43
|
+
<div layout="flex" space="g:small p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
|
|
44
|
+
<div layout="aspect:square flex center" visual="bg:primary text:white rounded:small" style="width: 80px;">1:1</div>
|
|
45
|
+
<div layout="aspect:video flex center" visual="bg:primary text:white rounded:small" style="width: 80px;">16:9</div>
|
|
46
|
+
</div>
|
|
31
47
|
```
|
|
32
48
|
|
|
33
|
-
|
|
49
|
+
</details>
|
|
34
50
|
|
|
35
|
-
```html
|
|
36
|
-
<!-- Contoh responsif -->
|
|
37
|
-
<div layout="mob:... tab:... lap:...">
|
|
38
|
-
Kandungan responsif
|
|
39
51
|
</div>
|
|
52
|
+
|
|
53
|
+
## Nilai Arbitrari
|
|
54
|
+
|
|
55
|
+
Sokong nilai tersuai menggunakan sintaks kurungan segi empat:
|
|
56
|
+
|
|
57
|
+
```html
|
|
58
|
+
<div layout="aspect:[custom-value]">Custom</div>
|
|
40
59
|
```
|
|
@@ -20,11 +20,88 @@ layout="border:[value]"
|
|
|
20
20
|
<table layout="border:collapse">Collapsed table</table>
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Pratonton
|
|
24
|
+
|
|
25
|
+
<div space="p-x:big p-b:medium m-t:medium" visual="border-w:thin border:neutral-100 dark:border:neutral-800 rounded:medium">
|
|
26
|
+
|
|
27
|
+
### Runtuh Sempadan
|
|
28
|
+
|
|
29
|
+
<div layout="flex col" space="g:medium">
|
|
30
|
+
<p space="m:none" visual="text:neutral-600 dark:text:neutral-400 text-sm"><code>layout="border:collapse"</code> - Sempadan jadual runtuh menjadi satu baris</p>
|
|
31
|
+
<table layout="border:collapse" visual="border:1 border:neutral-300 dark:border:neutral-700" style="width: 100%;">
|
|
32
|
+
<tbody>
|
|
33
|
+
<tr>
|
|
34
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white">A1</td>
|
|
35
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white">A2</td>
|
|
36
|
+
</tr>
|
|
37
|
+
<tr>
|
|
38
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white">B1</td>
|
|
39
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white">B2</td>
|
|
40
|
+
</tr>
|
|
41
|
+
</tbody>
|
|
42
|
+
</table>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<details>
|
|
46
|
+
<summary>Lihat Kod</summary>
|
|
24
47
|
|
|
25
48
|
```html
|
|
26
|
-
|
|
27
|
-
<
|
|
28
|
-
|
|
49
|
+
<table layout="border:collapse" visual="border:1 border:neutral-300 dark:border:neutral-700" style="width: 100%;">
|
|
50
|
+
<tbody>
|
|
51
|
+
<tr>
|
|
52
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white">A1</td>
|
|
53
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white">A2</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white">B1</td>
|
|
57
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white">B2</td>
|
|
58
|
+
</tr>
|
|
59
|
+
</tbody>
|
|
60
|
+
</table>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
</details>
|
|
64
|
+
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div space="p-x:big p-b:medium m-t:medium" visual="border-w:thin border:neutral-100 dark:border:neutral-800 rounded:medium">
|
|
68
|
+
|
|
69
|
+
### Asingkan Sempadan
|
|
70
|
+
|
|
71
|
+
<div layout="flex col" space="g:medium">
|
|
72
|
+
<p space="m:none" visual="text:neutral-600 dark:text:neutral-400 text-sm"><code>layout="border:separate"</code> - Sempadan jadual diasingkan (lalai)</p>
|
|
73
|
+
<table layout="border:separate" visual="border:1 border:neutral-300 dark:border:neutral-700" style="width: 100%; border-spacing: 4px;">
|
|
74
|
+
<tbody>
|
|
75
|
+
<tr>
|
|
76
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white rounded:small">A1</td>
|
|
77
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white rounded:small">A2</td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white rounded:small">B1</td>
|
|
81
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white rounded:small">B2</td>
|
|
82
|
+
</tr>
|
|
83
|
+
</tbody>
|
|
84
|
+
</table>
|
|
29
85
|
</div>
|
|
86
|
+
|
|
87
|
+
<details>
|
|
88
|
+
<summary>Lihat Kod</summary>
|
|
89
|
+
|
|
90
|
+
```html
|
|
91
|
+
<table layout="border:separate" visual="border:1 border:neutral-300 dark:border:neutral-700" style="width: 100%; border-spacing: 4px;">
|
|
92
|
+
<tbody>
|
|
93
|
+
<tr>
|
|
94
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white rounded:small">A1</td>
|
|
95
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white rounded:small">A2</td>
|
|
96
|
+
</tr>
|
|
97
|
+
<tr>
|
|
98
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white rounded:small">B1</td>
|
|
99
|
+
<td space="p:small" visual="border:1 border:neutral-300 dark:border:neutral-700 bg:primary text:white rounded:small">B2</td>
|
|
100
|
+
</tr>
|
|
101
|
+
</tbody>
|
|
102
|
+
</table>
|
|
30
103
|
```
|
|
104
|
+
|
|
105
|
+
</details>
|
|
106
|
+
|
|
107
|
+
</div>
|