create-asterui 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-asterui",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Create a new AsterUI project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
5
+ <link rel="icon" href="/favicon.ico" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>AsterUI App</title>
8
8
  </head>
Binary file
Binary file
@@ -1,21 +1,24 @@
1
- import { Button, useTheme, ThemeController, Hero, Space } from 'asterui'
1
+ import { Button, useTheme, ThemeController, Hero, Space, Flex } from 'asterui'
2
2
 
3
3
  function Logo() {
4
- const { colors } = useTheme()
4
+ const { isDark, colors } = useTheme()
5
5
  return (
6
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 40" className="h-12 w-auto">
7
- <text
8
- x="100"
9
- y="30"
10
- textAnchor="middle"
11
- fontFamily="system-ui, -apple-system, sans-serif"
12
- fontSize="28"
13
- fontWeight="700"
14
- >
15
- <tspan fill={colors.primary}>Aster</tspan>
16
- <tspan fill={colors.foreground}>UI</tspan>
17
- </text>
18
- </svg>
6
+ <Flex direction="column" align="center" gap="xs">
7
+ <img src="/logo.png" alt="" className="h-24 w-24" />
8
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 40" className="h-12 w-auto">
9
+ <text
10
+ x="100"
11
+ y="30"
12
+ textAnchor="middle"
13
+ fontFamily="system-ui, -apple-system, sans-serif"
14
+ fontSize="28"
15
+ fontWeight="700"
16
+ >
17
+ <tspan fill="#8275BA">Aster</tspan>
18
+ <tspan fill={isDark ? '#FCFAFD' : `${colors.foreground}B3`}>UI</tspan>
19
+ </text>
20
+ </svg>
21
+ </Flex>
19
22
  )
20
23
  }
21
24
 
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
5
+ <link rel="icon" href="/favicon.ico" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>AsterUI App</title>
8
8
  </head>
Binary file
Binary file
@@ -1,21 +1,24 @@
1
- import { Button, useTheme, ThemeController, Hero, Space } from 'asterui'
1
+ import { Button, useTheme, ThemeController, Hero, Space, Flex } from 'asterui'
2
2
 
3
3
  function Logo() {
4
- const { colors } = useTheme()
4
+ const { isDark, colors } = useTheme()
5
5
  return (
6
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 40" className="h-12 w-auto">
7
- <text
8
- x="100"
9
- y="30"
10
- textAnchor="middle"
11
- fontFamily="system-ui, -apple-system, sans-serif"
12
- fontSize="28"
13
- fontWeight="700"
14
- >
15
- <tspan fill={colors.primary}>Aster</tspan>
16
- <tspan fill={colors.foreground}>UI</tspan>
17
- </text>
18
- </svg>
6
+ <Flex direction="column" align="center" gap="xs">
7
+ <img src="/logo.png" alt="" className="h-24 w-24" />
8
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 40" className="h-12 w-auto">
9
+ <text
10
+ x="100"
11
+ y="30"
12
+ textAnchor="middle"
13
+ fontFamily="system-ui, -apple-system, sans-serif"
14
+ fontSize="28"
15
+ fontWeight="700"
16
+ >
17
+ <tspan fill="#8275BA">Aster</tspan>
18
+ <tspan fill={isDark ? '#FCFAFD' : `${colors.foreground}B3`}>UI</tspan>
19
+ </text>
20
+ </svg>
21
+ </Flex>
19
22
  )
20
23
  }
21
24