From db7ba3be155273108bb5db2fa33ccdd81278206c Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 13 Dec 2023 18:49:58 -0600 Subject: [PATCH] Playing around --- src/view/nova/themes.ts | 1 + src/view/screens/Debug.tsx | 147 ++++++++++++++++++++++++------------- 2 files changed, 98 insertions(+), 50 deletions(-) diff --git a/src/view/nova/themes.ts b/src/view/nova/themes.ts index 01b3641a74..977a77eb25 100644 --- a/src/view/nova/themes.ts +++ b/src/view/nova/themes.ts @@ -133,6 +133,7 @@ export const light = createTheme({ lineHeight: tokens.lineHeight[value], } }, + fontFamily: (fontFamily: string) => ({fontFamily}), }, breakpoints: { /** Greater than 800 */ diff --git a/src/view/screens/Debug.tsx b/src/view/screens/Debug.tsx index 06160bbfe7..e6285d4b9b 100644 --- a/src/view/screens/Debug.tsx +++ b/src/view/screens/Debug.tsx @@ -1,67 +1,114 @@ import React from 'react' -import {CenteredView} from '#/view/com/util/Views' +import {CenteredView, ScrollView} from '#/view/com/util/Views' import {useSetColorMode} from '#/state/shell' -import {Box, Text, Button, H1, H2, H3, H4, H5, H6} from '#/view/nova' +import { + useBreakpoints, + Box, + Text, + Button, + H1, + H2, + H3, + H4, + H5, + H6, +} from '#/view/nova' + +function BreakpointDebugger() { + const breakpoints = useBreakpoints() + + return ( + + + Breakpoints + + + {JSON.stringify(breakpoints, null, 2)} + + + ) +} export function DebugScreen() { const setColorMode = useSetColorMode() return ( - - - - - - - - - -

Heading 1

-

Heading 2

-

Heading 3

-

Heading 4

-
Heading 5
-
Heading 6
-
- - - - H1 Size Text - - H2 Size Text - H3 Size Text - H4 Size Text - H5 Size Text - H6 Size Text - - - + + + - - - + + + - - - - + + + +

Heading 1

+

Heading 2

+

Heading 3

+

Heading 4

+
Heading 5
+
Heading 6
- - - - + + + H1 Size Text + + H2 Size Text + H3 Size Text + H4 Size Text + H5 Size Text + H6 Size Text + + + + + + + + + + + + + + + + + + + + + + + + - -
+
+ ) }