You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/routes/docs/getting-started/+page.md
+22-17Lines changed: 22 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,14 @@
2
2
title: Getting Started
3
3
---
4
4
5
-
LayerChart can be used standlone, or integrates nicely with other frameworks and design systems.
6
-
7
-
Provides built-in first class support for [:icon{name="logos:tailwindcss-icon"class="text-xs"} Tailwind 4](https://tailwindcss.com/),
8
-
but is completely optional. The library also works seamlessly with vanilla CSS, inline styles, and [:icon{name="logos:unocss"} unoCSS](https://unocss.dev/).
5
+
LayerChart provides built-in first class support for [:icon{name="logos:tailwindcss-icon"class="text-xs"} Tailwind 4](https://tailwindcss.com/),
6
+
but this is completely optional. The library also works seamlessly with vanilla CSS, inline styles, and [:icon{name="logos:unocss"} unoCSS](https://unocss.dev/). It can be used standlone, or integrates nicely with other frameworks and design systems.
9
7
10
8
::steps
11
9
12
10
## Create a new project or [git a project](#git-up-and-running-even-quicker)
13
11
14
-
Use the Svelte CLI to generate a new SvelteKit project, or continue with an existing project.
12
+
Use the Svelte `sv`CLI to generate a new SvelteKit project.
15
13
16
14
:::tabs{key="bundler"}
17
15
@@ -53,7 +51,7 @@ Use the Svelte CLI to generate a new SvelteKit project, or continue with an exis
53
51
:::
54
52
55
53
::note
56
-
To add Tailwind to an existing project you can `npm sv add tailwindcss`
54
+
To add Tailwind to an existing Sveltekit project you can `npx sv add tailwindcss`
57
55
::
58
56
59
57
## Import `layerchart` with your package manager of choice.
@@ -94,7 +92,7 @@ To add Tailwind to an existing project you can `npm sv add tailwindcss`
94
92
95
93
## Apply CSS
96
94
97
-
Out of the box LayerChart will use [`currentColor`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value#currentcolor_keyword) as the default color, but you can customize the CSS globally with a few CSS variables.
95
+
Out of the box LayerChart will use [`currentColor`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value#currentcolor_keyword) as the default primary color, but you can customize the CSS globally with a few CSS variables.
98
96
99
97
```css title="app.css"
100
98
.lc-root-container {
@@ -111,6 +109,10 @@ Out of the box LayerChart will use [`currentColor`](https://developer.mozilla.or
111
109
}
112
110
```
113
111
112
+
::note
113
+
If you wish to apply darkmode defaults, see the [dark mode](/docs/guides/styles#dark-mode) section of the styling guide.
114
+
::
115
+
114
116
or with a single `.css` import, Layerchart [provides](https://github.com/techniq/layerchart/tree/next/packages/layerchart/src/lib/styles) theming conventions for many popular UI frameworks.
0 commit comments