diff --git a/app/components/H4.tsx b/app/components/H4.tsx deleted file mode 100644 index bfbf79d630..0000000000 --- a/app/components/H4.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import { twMerge } from "tailwind-merge" - -export const H4 = ({ - className, - children, -}:{ - className?: string, - children: React.ReactNode, -})=>{ - return( -

- {children} -

- ) -} \ No newline at end of file diff --git a/app/components/Typography.tsx b/app/components/Typography.tsx new file mode 100644 index 0000000000..f2c0bda536 --- /dev/null +++ b/app/components/Typography.tsx @@ -0,0 +1,31 @@ +import { twMerge } from "tailwind-merge"; + +interface TypogProps { + className?: string; + children: React.ReactNode; +} +const baseTypo = "text-white"; + +export const H1 = ({className,children,}:TypogProps)=> +

{children}

; + +export const H2 = ({className,children,}:TypogProps)=> +

{children}

; + +export const H3 = ({className,children,}:TypogProps)=> +

{children}

; + +export const H4 = ({className,children,}:TypogProps)=> +

{children}

; + + export const Label = ({className,children,}:TypogProps)=> + ; + +export const H5 = ({className,children,}:TypogProps)=> +
{children}
; + +export const H6 = ({className,children,}:TypogProps)=> +
{children}
; + +export const P = ({className,children,}:TypogProps)=> +

{children}

; \ No newline at end of file diff --git a/app/components/index.tsx b/app/components/index.tsx index 5dabccba07..323db7b12c 100644 --- a/app/components/index.tsx +++ b/app/components/index.tsx @@ -3,7 +3,7 @@ import { ButtonIcon } from "./ButtonIcon"; import { ButtonLink } from "./ButtonLink"; import { ButtonIconSelect } from "./ButtonIconSelect"; import { Input } from "./Input"; -import { H4 } from "./H4"; +import { H1, H2, H3, H4, H5, H6, P, Label} from "./Typography"; import { ItemPicker } from "./ItemPicker"; import { Textarea } from "./Textarea"; import { LoadingBar } from "./LoadingBar"; @@ -14,7 +14,7 @@ export { ButtonIcon, ButtonLink, ButtonIconSelect, - H4, + H1,H2,H3,H4,H5,H6,P,Label, ItemPicker, Textarea, Input, diff --git a/app/routes/ComponentLibrary.tsx b/app/routes/ComponentLibrary.tsx index fd340f82a6..c0e6719021 100644 --- a/app/routes/ComponentLibrary.tsx +++ b/app/routes/ComponentLibrary.tsx @@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef, useState } from "react"; import { Button, ButtonLink, - H4, + H1,H2,H3,H4,H5,H6,P,Label, LoadingBar, LoadingDotsTyping, LoadingDotsBricks, @@ -35,65 +35,84 @@ export default function ComponentLibrary () { },[progress]); return( -
+
+
-
-

Buttons

-
- - - - -
-
- -
-

ButtonLink

- Back to / -
- -
-

Loading Dots

-
-
- -
-
- +
+

Typography

+

H1. This is an H1 Heading

+

H2. This is an H2 Heading

+

H3. This is an H3 Heading

+

H4. This is an H4 Heading

+ +

P. Is an normal Paragraph

+
H5. This is an H5 Heading
+
H6. This is an H6 Heading
+ +
+

Components

+

Buttons

+
+ + + +
-
-
-

Loading Bar

-
+
+

ButtonLink

+ Back to / +
+ +
+

Loading Dots

+
+
+ +
+
+ +
+
+
+ +
+

Loading Bar

+
+ + +
+ + -
- - -
);