sveltekit-ui 1.0.0 → 1.0.1
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/README.md +33 -11
- package/package.json +1 -1
- package/src/routes/+layout.svelte +23 -3
- package/src/notlib/assets/static/Logo/index.svelte +0 -27
package/README.md
CHANGED
|
@@ -1,23 +1,45 @@
|
|
|
1
|
-
##
|
|
1
|
+
## Setup
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Refer to https://www.sveltekit-ui.com. for documentation
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
You can use an existing sveltekit project and install this package in your project with
|
|
6
|
+
`npm install sveltekit-ui`
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
or to start a new project with a starter template (recommended). In your terminal cd into a folder you want to put your project files in such as /projects/my-project-all to use as the parent folder for stuff related to your project (but replace "my-project" with your own project name)
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
wait until july 1st for this part create-sveltekit-ui-site
|
|
11
|
+
|
|
12
|
+
`npx create-sveltekit-ui-site my-project`
|
|
13
|
+
|
|
14
|
+
## Open Code Editor
|
|
15
|
+
|
|
16
|
+
`code .` should open the project in your code editor such as vscode
|
|
17
|
+
|
|
18
|
+
## Update Package
|
|
19
|
+
|
|
20
|
+
It's possible the starter template is a few updates behind. Check for updates by running `ncu -u`. You should run that periodically to keep the latest version of our components
|
|
13
21
|
|
|
14
22
|
## Developing
|
|
15
23
|
|
|
16
24
|
Once you've created a project and installed dependencies start a development server:
|
|
17
25
|
|
|
18
26
|
```bash
|
|
27
|
+
npm i
|
|
19
28
|
npm run dev
|
|
20
|
-
|
|
21
|
-
# or start the server and open the app in a new browser tab
|
|
22
|
-
npm run dev -- --open
|
|
23
29
|
```
|
|
30
|
+
|
|
31
|
+
## Browser
|
|
32
|
+
|
|
33
|
+
That should spit out a url like http://localhost:5173/ where you should see your starting website.
|
|
34
|
+
|
|
35
|
+
## Branding
|
|
36
|
+
|
|
37
|
+
You'll want to create a Logo at some point and use that in the nav bar, browser tab, google search results, etc. If you can make an svg that is best but an image will work as well. If you are advanced I like https://affinity.serif.com/en-us/designer/ for macbook to make my logos and other graphics. It has a generous free trial period too.
|
|
38
|
+
|
|
39
|
+
I like https://jakearchibald.github.io/svgomg/ to minify svg code and set to viewbox etc. Then you can generate favicons with https://realfavicongenerator.net
|
|
40
|
+
|
|
41
|
+
download the favicons and drop them in the folder called static and overwrite the existing example ones. You dont need favicon.ico. Also add favicon.svg and favicon-inactive.svg if you want to show different icon when the browser tab is inactive (not at all a priority though)
|
|
42
|
+
|
|
43
|
+
## Other
|
|
44
|
+
|
|
45
|
+
Ask an ai for help if you have issues in your setup process.
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import "$lib/style.css"
|
|
3
|
-
import Logo from "../notlib/assets/static/Logo/index.svelte"
|
|
4
3
|
import Layout from "$lib/Components/Layout/index.svelte"
|
|
5
4
|
import { create_layout_manager } from "$lib/Components/Layout/index.svelte.js"
|
|
6
5
|
import Button from "$lib/Components/Button/index.svelte"
|
|
@@ -104,10 +103,14 @@
|
|
|
104
103
|
|
|
105
104
|
<Layout manager={layout_manager}>
|
|
106
105
|
{#snippet nav_bar_logo()}
|
|
107
|
-
<
|
|
106
|
+
<div class="container" style="--color1: var(--primary-t);">
|
|
107
|
+
<h1 class="logotext">Sveltekit-UI</h1>
|
|
108
|
+
</div>
|
|
108
109
|
{/snippet}
|
|
109
110
|
{#snippet app_nav_bar_logo()}
|
|
110
|
-
<
|
|
111
|
+
<div class="container" style="--color1: var(--primary-t);">
|
|
112
|
+
<h1 class="logotext">Sveltekit-UI</h1>
|
|
113
|
+
</div>
|
|
111
114
|
{/snippet}
|
|
112
115
|
{#snippet nav_bar_extra()}
|
|
113
116
|
<div style="display: flex; align-iems: center; gap: .5rem;">
|
|
@@ -173,4 +176,21 @@
|
|
|
173
176
|
font-weight: 100 1000;
|
|
174
177
|
font-display: swap;
|
|
175
178
|
}
|
|
179
|
+
.container {
|
|
180
|
+
display: flex;
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
align-items: center;
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
}
|
|
185
|
+
.logotext {
|
|
186
|
+
font-family: "Quicksand", sans-serif;
|
|
187
|
+
width: max-content;
|
|
188
|
+
z-index: 1;
|
|
189
|
+
font-size: clamp(2rem, 5.2vw, 2.6rem) !important;
|
|
190
|
+
font-weight: 700 !important;
|
|
191
|
+
color: var(--color1);
|
|
192
|
+
font-size: var(--font_size);
|
|
193
|
+
letter-spacing: 0.02rem;
|
|
194
|
+
line-height: clamp(2.2rem, 5.2vw, 2.9rem);
|
|
195
|
+
}
|
|
176
196
|
</style>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
let { color1 = "var(--primary-t)" } = $props()
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<div class="container" style="--color1: {color1};">
|
|
6
|
-
<h1 class="logotext">Sveltekit-UI</h1>
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<style>
|
|
10
|
-
.container {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
align-items: center;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
}
|
|
16
|
-
.logotext {
|
|
17
|
-
font-family: "Quicksand", sans-serif;
|
|
18
|
-
width: max-content;
|
|
19
|
-
z-index: 1;
|
|
20
|
-
font-size: clamp(2rem, 5.2vw, 2.6rem) !important;
|
|
21
|
-
font-weight: 700 !important;
|
|
22
|
-
color: var(--color1);
|
|
23
|
-
font-size: var(--font_size);
|
|
24
|
-
letter-spacing: 0.02rem;
|
|
25
|
-
line-height: clamp(2.2rem, 5.2vw, 2.9rem);
|
|
26
|
-
}
|
|
27
|
-
</style>
|