Playing around
This commit is contained in:
@@ -133,6 +133,7 @@ export const light = createTheme({
|
|||||||
lineHeight: tokens.lineHeight[value],
|
lineHeight: tokens.lineHeight[value],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
fontFamily: (fontFamily: string) => ({fontFamily}),
|
||||||
},
|
},
|
||||||
breakpoints: {
|
breakpoints: {
|
||||||
/** Greater than 800 */
|
/** Greater than 800 */
|
||||||
|
|||||||
@@ -1,15 +1,42 @@
|
|||||||
import React from 'react'
|
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 {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 (
|
||||||
|
<Box>
|
||||||
|
<Text fontSize="l" fontWeight="900">
|
||||||
|
Breakpoints
|
||||||
|
</Text>
|
||||||
|
<Text pa="m" bg="l2" fontFamily="monospace">
|
||||||
|
{JSON.stringify(breakpoints, null, 2)}
|
||||||
|
</Text>
|
||||||
|
</Box>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
export function DebugScreen() {
|
export function DebugScreen() {
|
||||||
const setColorMode = useSetColorMode()
|
const setColorMode = useSetColorMode()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ScrollView>
|
||||||
<CenteredView>
|
<CenteredView>
|
||||||
<Box py="xl" gap="xxl">
|
<Box pa="xl" gap="xxl">
|
||||||
<Box row gap="s">
|
<Box row gap="s">
|
||||||
<Button onPress={() => setColorMode('system')}>
|
<Button onPress={() => setColorMode('system')}>
|
||||||
<Text>System</Text>
|
<Text>System</Text>
|
||||||
@@ -22,6 +49,8 @@ export function DebugScreen() {
|
|||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
<BreakpointDebugger />
|
||||||
|
|
||||||
<Box gap="m">
|
<Box gap="m">
|
||||||
<H1>Heading 1</H1>
|
<H1>Heading 1</H1>
|
||||||
<H2>Heading 2</H2>
|
<H2>Heading 2</H2>
|
||||||
@@ -61,7 +90,25 @@ export function DebugScreen() {
|
|||||||
<Box pa="s" bg="l6" flex={1} />
|
<Box pa="s" bg="l6" flex={1} />
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
<Box
|
||||||
|
row
|
||||||
|
justifyContent="center"
|
||||||
|
px="l"
|
||||||
|
py="l"
|
||||||
|
bg="l3"
|
||||||
|
gtMobile={{
|
||||||
|
py: 'xl',
|
||||||
|
bg: 'l5',
|
||||||
|
}}
|
||||||
|
gtTablet={{
|
||||||
|
py: 64,
|
||||||
|
bg: 'l7',
|
||||||
|
}}>
|
||||||
|
<Box w={64} h={64} bg="primary" />
|
||||||
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</CenteredView>
|
</CenteredView>
|
||||||
|
</ScrollView>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user