An open API service indexing awesome lists of open source software.

https://github.com/connectkushal/cssnotes

Revision notes for css, sass, bulma, bootstrap5 and the related tools
https://github.com/connectkushal/cssnotes

bootstrap5 bulma bulma-css bulma-css-framework css css-flexbox css-grid css3 notes postcss sass sass-framework tutorial vite

Last synced: 5 months ago
JSON representation

Revision notes for css, sass, bulma, bootstrap5 and the related tools

Awesome Lists containing this project

README

          

[WIP]
This repo contains periodically updated notes on whatever I am learning about css, sass, css frameworks and related topics. There are also pointers on things i have encountered while trying out stuff, be it errors, some discovery, tips from others, etc. The language and style is for personal revision, hence some parts may be grammatically incorrect or out of context.

#### Index

- [Setup](#setup)
- [Introduction](https://github.com/connectkushal/cssnotes/blob/main/introduction.md)
- Basics
- [Vocabulary](https://github.com/connectkushal/cssnotes/blob/main/vocabulary.md)
- [Units](https://github.com/connectkushal/cssnotes/blob/main/units.md)
- [Inheritance](https://github.com/connectkushal/cssnotes/blob/main/inheritance.md)
- Layouts
- [Box Model](https://github.com/connectkushal/cssnotes/blob/main/boxmodel.md)
- [Flexbox](https://github.com/connectkushal/cssnotes/blob/main/flexbox.md)
- [Grid]()
- [Snippets]()

---

##### Setup
- inside your project directory, run `npm init -y && npm pkg set type="module"`

without build tools
- `npm i -g sass`
- `sass -w input.scss output.css` running on the terminal
- vscode plugin liveserver from `index.html`

with vite
- `npm i -g vite sass`
- to index.html, add link:css with href=`path/to/main.scss` or `app.scss`
- `vite run dev`
- OR run `vite run build` then liveserver plugin

**Notes for vite setup**
- to avoid sass warning messages, add this config to `vite.config.js`

```
import { defineConfig } from 'vite'

export default defineConfig({
css: {
preprocessorOptions: {
scss: {
api: "modern"
}
}
}
})
```
- `import { defineConfig } from 'vite'` // this is for editor's intellisense
- `api: "modern"` // this is part of vite's code/options, not of sass-cli. Default is set to `"legacy"`
- other options used in vite to config sass, like `quietDeps:true` is actually `--quiet-deps` from the sass cli, check sass official docs accordingly.
- `package.json` should have `type="module"` to avoid warning messages from vite