FrogUI
FrogUI is an extension of the Frog Framework that provides type-safe layout & styling primitives to help you build extensible and consistent dynamic Frame Image interfaces.
It is a systematic & type-safe alternative to styling components using the Tailwind (tw
) or style
property of Satori.
Create your UI System with optional variables, and build your frames with Primitive Components.
Frog UI 🐸
Build consistent frame experiences
index.ts
import { Frog } from 'frog'
import { Box, Heading, Text, VStack, vars } from './ui.js'
export const app = new Frog({
ui: { vars },
}).frame('/', (c) => {
return c.res({
image: (
<Box
grow
alignVertical="center"
backgroundColor="background"
padding="32"
>
<VStack gap="4">
<Heading>FrogUI 🐸</Heading>
<Text color="text200" size="20">
Build consistent frame experiences
</Text>
<Text color="tetexttext100text200text300text400teal100teal200teal300teal400teal500teal600tealteal700teal800teal900teal1000
</VStack>
</Box>
)
})
})