Sass / SCSS
Use Sass or SCSS styles in Format Studio documents.
Supported frameworks
| Framework | Supported |
|---|---|
| React | |
| Vue | |
| HTML |
Installation
No additional installation steps required.
Usage
SCSS files
Add an .scss file anywhere in your Format project or document.
documents
invoice
styles.scss
index.tsx
$peach: peachpuff;
.peach {
background: $peach;
}Import the SCSS file into your document entry point. This import only needs to be done once, in the entry file.
Add an .scss file anywhere in your Format project or document.
documents
invoice
styles.scss
index.vue
$peach: peachpuff;
.peach {
background: $peach;
}Include the SCSS module into your document entry point. This import only needs to be done once, in the entry file.
Add an .scss file anywhere in your Format project or document.
documents
invoice
styles.scss
index.html
index.ts
$peach: peachpuff;
.peach {
background: $peach;
}Import the SCSS file into your document entry point. This import only needs to be done once, in the entry file.
export { default } from './index.html'
import './styles.scss'Sass indented syntax (.sass)
If you prefer Sass's indented syntax, use .sass files.
$peach: peachpuff
.peach
background: $peachWas this page helpful?