From 13bd64e5c9d5de84e578d947760b295177b8c54f Mon Sep 17 00:00:00 2001
From: Eric 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/_layout.svelte b/docs/src/pages/_layout.svelte
index b5743fde..2324a182 100644
--- a/docs/src/pages/_layout.svelte
+++ b/docs/src/pages/_layout.svelte
@@ -20,7 +20,7 @@
import Footer from "../components/Footer.svelte";
const deprecated = ["ToggleSmall", "Icon"];
- const new_components = ["Theme"];
+ const new_components = [];
let isOpen = false;
let isSideNavOpen = true;
diff --git a/docs/src/pages/components/Button.svx b/docs/src/pages/components/Button.svx
index 2b2f0f45..c0b06446 100644
--- a/docs/src/pages/components/Button.svx
+++ b/docs/src/pages/components/Button.svx
@@ -1,5 +1,5 @@
Design systems facilitate design and development through reuse,
@@ -50,23 +73,117 @@
+ Install
+
+ Before importing components, you will need to first apply Carbon
+ component styles. The Carbon Design System supports five themes (2
+ light, 3 dark).
+
+ This library ships with six pre-compiled CSS StyleSheets built
+ from
+
+
+ An alternative to loading styles is to link an external
+ StyleSheet from a Content Delivery Networks (CDN) like
+
+ This is best suited for rapid prototyping or if your set-up does
+ not use a CSS loader.
+
+
+ The most performant method to load styles is to import SCSS
+ directly from
+ Refer to the
- The broader Carbon Svelte effort includes libraries for icons,
- pictograms, and data visualization.
+ The Carbon Svelte portfolio includes packages for icons, pictograms,
+ and data visualization.
Install
- Installing with yarn:
+ Installation
+ carbon-components-svelte
+ as a development dependency in your project.
+ Using Yarn:
Using npm:
+ Using NPM:
Styling
+ 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.
+ Portfolio