From 16fd0681d4ed93a1036e4533f10d85fe3bd13618 Mon Sep 17 00:00:00 2001
From: Eric Y Liu
+
The [documentation website](http://ibm.biz/carbon-svelte) contains live demos and examples.
Other forms of documentation are auto-generated:
- **[TypeScript definitions](types)**: Component TypeScript definitions
-- **[Component Index](COMPONENT_INDEX.md)**: Markdown file documenting component props, slots, and events
-- **[Component API](docs/src/COMPONENT_API.json)**: Component API metadata in JSON format
+- **[Component Index](COMPONENT_INDEX.md)**: Component API in Markdown format
+- **[Component API](docs/src/COMPONENT_API.json)**: Component API in JSON format
-## Getting started
+## Installation
Install `carbon-components-svelte` as a development dependency.
+**Yarn**
+
```sh
yarn add -D carbon-components-svelte
-# OR
+```
+
+**NPM**
+
+```sh
npm i -D carbon-components-svelte
```
diff --git a/docs/src/components/Footer.svelte b/docs/src/components/Footer.svelte
index b2b8e391..4acac22c 100644
--- a/docs/src/components/Footer.svelte
+++ b/docs/src/components/Footer.svelte
@@ -11,7 +11,7 @@
target="_blank"
>
diff --git a/docs/src/pages/index.svelte b/docs/src/pages/index.svelte
index c2648c82..0ce0eaa3 100644
--- a/docs/src/pages/index.svelte
+++ b/docs/src/pages/index.svelte
@@ -30,6 +30,16 @@
g90: "Gray 90",
g100: "Gray 100",
};
+ $: cssImport = `import "carbon-components-svelte/css/${$theme}.css";`;
+ $: cssCdn = `
+
+
+
+
+`;
Design systems facilitate design and development through reuse,
@@ -66,8 +75,9 @@
- Install Installation
carbon-components-svelte
as a development dependency
- in your project.
+ Install
+ carbon-components-svelte
+ as a development dependency in your project.
Using Yarn:
+
An alternative to loading styles is to link an external
StyleSheet from a Content Delivery Networks (CDN) like
-
+
+ The most performant method to load styles is to import SCSS
+ directly from carbon-components
. Although it
+ requires more set up, you can reduce the size of the bundle CSS
+ by importing individual component styles instead of a
+ pre-compiled CSS StyleSheet.
+
+ Refer to the