mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
docs: use pre-compiled CSS from linked package
This commit is contained in:
parent
4b080e68d4
commit
905330bc14
4 changed files with 8 additions and 5 deletions
|
@ -35,6 +35,12 @@ Install the project dependencies:
|
|||
yarn install
|
||||
```
|
||||
|
||||
Build the CSS used in the documentation site:
|
||||
|
||||
```sh
|
||||
yarn build:css
|
||||
```
|
||||
|
||||
## Documentation set-up
|
||||
|
||||
Component documentation is located in the `docs` folder. The website is built using svite, routify, and MDsveX. You will need to create a symbolic project link in order to see live changes reflected when developing locally.
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Carbon Components Svelte</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://unpkg.com/carbon-components-svelte/css/all.css"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import "/node_modules/carbon-components-svelte/css/all.css";
|
||||
import App from "./App.svelte";
|
||||
|
||||
const app = new App({
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
margin-bottom: var(--cds-layout-02);
|
||||
}
|
||||
|
||||
.bx--content {
|
||||
main.bx--content {
|
||||
background: none;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue