-
Notifications
You must be signed in to change notification settings - Fork 0
sass
Tom Wilson edited this page Jun 12, 2019
·
1 revision
With MDsveX you can add css
at the component level, but sometimes you may want to use a css framework or use some global styling for your site.
Here is how you could add bulma to your ipress2 site.
npm install --save-dev node-sass bulma
Create a sass
folder and a global.scss
file
mkdir sass
touch sass/global.scss
modify the sass file
@charset 'utf-8';
$primary: green;
@import './node_modules/bulma/bulma.sass';
package.json
{
...
"scripts": {
"build": "run-s ... build:css",
"build:css": "node-sass sass/global.scss dist/global.css"
}
}
layout.svelte
<svelte:head>
<link rel="stylesheet" href="/global.css">
</svelte:head>
npm run build