File size: 1,188 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { Center, For, HStack, Stack, Text } from "@chakra-ui/react"

const items = [
  ["Fill", ["fill.muted", "fill.subtle", "fill.surface", "fill.solid"]],
  ["Outline", ["outline.subtle", "outline.solid"]],
  [
    "Indicator",
    ["indicator.top", "indicator.bottom", "indicator.start", "indicator.end"],
  ],
] as const

export const TokensLayerStyle = () => {
  return (
    <Stack gap="20" mt="10" mb="20">
      <For each={items}>
        {([title, styles]) => (
          <Stack gap="4">
            <Text fontWeight="medium" color="fg.muted">
              layerStyle: {title.toLowerCase()}.*
            </Text>
            <HStack wrap="wrap" gap="10">
              <For each={styles}>
                {(layerStyle) => (
                  <Center
                    colorPalette="teal"
                    key={layerStyle}
                    layerStyle={layerStyle}
                    height="10"
                    flex="1"
                    fontWeight="medium"
                  >
                    {layerStyle}
                  </Center>
                )}
              </For>
            </HStack>
          </Stack>
        )}
      </For>
    </Stack>
  )
}