{"id":"kaan650/vide-foundation","name":"vide-foundation","scope":"kaan650","platform":"roblox","description":"Roblox's Foundation design system for Vide","version":"0.2.1","latest":"0.2.1","versions":["0.1.0","0.1.1","0.2.0","0.2.1"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{"littensy/ripple":{"version":"^0.10.2","alias":"Ripple"},"centau/vide":{"version":"^0.4.1","alias":"Vide"}},"integrity":"54f1497814955fb67fe96dc458fe6e67eb950aed8723b640bc703c06f749bf7e","likes":0,"downloads":0,"install":"forest install kaan650/vide-foundation","url":"https://forest.dev/p/roblox/kaan650/vide-foundation","files":"https://api.forest.dev/ai/package/roblox/kaan650/vide-foundation/files","readme":"# VideFoundation\n\nRoblox's Foundation design system for [Vide](https://github.com/centau/vide), ported from React Foundation 1.123.\n\n## Install\n\n```toml\n[dependencies]\nVideFoundation = \"kaan650/vide-foundation@0.2.1\"\n```\n\n## Usage\n\n```luau\nlocal Vide = require(ReplicatedStorage.Packages.Vide)\nlocal Foundation = require(ReplicatedStorage.Packages.VideFoundation)\n\nlocal count = Vide.source(0)\n\nVide.mount(function()\n\treturn Foundation.FoundationProvider({\n\t\tcolorMode = \"Dark\",\n\t\tchildren = function()\n\t\t\treturn Foundation.View({\n\t\t\t\ttag = \"size-full bg-surface-100 padding-xlarge col gap-large\",\n\t\t\t\tchildren = {\n\t\t\t\t\tFoundation.Text({\n\t\t\t\t\t\tText = function()\n\t\t\t\t\t\t\treturn `Clicked {count()} times`\n\t\t\t\t\t\tend,\n\t\t\t\t\t\ttag = \"auto-xy text-heading-large content-emphasis\",\n\t\t\t\t\t\tLayoutOrder = 1,\n\t\t\t\t\t}),\n\t\t\t\t\tFoundation.Button({\n\t\t\t\t\t\ttext = \"Click\",\n\t\t\t\t\t\tvariant = \"Emphasis\",\n\t\t\t\t\t\tonActivated = function()\n\t\t\t\t\t\t\tcount(count() + 1)\n\t\t\t\t\t\tend,\n\t\t\t\t\t\tLayoutOrder = 2,\n\t\t\t\t\t}),\n\t\t\t\t},\n\t\t\t})\n\t\tend,\n\t})\nend, playerGui.ScreenGui)\n```\n\n- Props take a value or a source: `isDisabled = disabled`, `text = function() return ... end`.\n- Style with Foundation's tags, `tag = \"bg-surface-100 radius-medium\"`. On your own instances, use\n  `Foundation.tags(\"bg-surface-100\")`.\n- Components that provide a context (`FoundationProvider`, `Popover.Root`, `List.Root`...) take `children` as a\n  function.\n- Refs are callback props: `ref`, `textBoxRef`, `inputRef`.\n\nTo see every component, run `wally install` and `rojo serve dev.project.json`, then open the VideFoundation\nstorybook in [UI Labs](https://ui-labs.luau.page/).\n\nFoundation, its design tokens, Builder Icons and images are made by Roblox.\n","readmeTruncated":false}