From 31e09ab4bdc056e53b0fa9f1f9ce1bf6fdc8bbb0 Mon Sep 17 00:00:00 2001 From: Artur Bien Date: Wed, 6 Dec 2023 21:39:42 +0100 Subject: [PATCH] docs: theme guide --- .../.storybook/stories/Introduction.mdx | 41 +++++++++++++------ 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/packages/frosted-ui/.storybook/stories/Introduction.mdx b/packages/frosted-ui/.storybook/stories/Introduction.mdx index 656e4a62..ea0489dd 100644 --- a/packages/frosted-ui/.storybook/stories/Introduction.mdx +++ b/packages/frosted-ui/.storybook/stories/Introduction.mdx @@ -4,12 +4,7 @@ import { Meta } from '@storybook/blocks'; # Welcome to Frosted UI -Frosted is the design system used and and built by [Whop](https://whop.com). - -The system is built using: - -- React + Typescript -- Radix UI +Frosted is the design system used by [Whop](https://whop.com) and heavily based on [Radix Themes](https://www.radix-ui.com/): ## Getting Started @@ -21,7 +16,7 @@ The system is built using: Import the global CSS file at the root of your application. -```CSS +```tsx import 'frosted-ui/styles.css'; ``` @@ -45,19 +40,41 @@ export default function () { } ``` -## 4. Start building +### 4. Start building -You are now ready to use Frosted UI components. +You are now ready to use Frosted UI components! ```tsx -import { Flex, Text, Button } from 'frosted-ui'; +import { Flex, Heading, Button } from 'frosted-ui'; export default function MyApp() { return ( - Hello from Frosted UI! - + Frosted UI + ); } ``` + +## Customizing your theme + +Configuration is managed and applied via the `` component. + +```tsx + + {children} + +```