-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Welcome to the flow.scss documentation!
If you're new to flow.scss, this is a great place to start.
flow.scss will work anywhere that SASS/SCSS does, and if you compile it to CSS, will work in even more places. I have personally tested it in these environments:
| Symbol | Meaning |
|---|---|
| ✅ | Works with no issues. |
| Works with some reconfiguring/extra steps. | |
| ⛔️ | Does not work. |
| Environment | Support | Reason |
|---|---|---|
| React.js | ✅ | Make sure you install sass from NPM
|
| Next.js | ✅ | Make sure you install sass from NPM
|
| Vanilla HTML | Requires that you compile the library's SCSS into CSS
|
|
react-native with Expo |
Requires react-native-sass-transformer from NPM and is limited to React style={} attributes. Any functionality that react-native does not provide in style={} will not be accessible from flow.scss either. (ie. transitions) |
- Node.js v18.14.2 or newer
- SASS v1.58.0 or newer
You can install flow.scss through npm using npm i flow.scss
import "flow.scss"; // Globally in your App.jsx file.
<YourElement className="flex row gap"/>
/* ............ */
import styles from "flow.scss"; // As an SCSS module in a specific component.
<YourElement className={styles["flex-row"]}/>import styles from "flow.scss";
/* ............ */
<YourElement style={[flow["flex-column"], flow["justify-content-between"], {gap: 8}]}/>@use "flow.scss" as *;
div.box {
@include transition($transition-property-all, 0.15s, ease)
}
After importing flow.scss in your project, you might consider taking advantage of some more of its features.
flow.scss has a reset file you can import:
import "flow.scss/reset.scss"This file will configure your project's CSS so it is best prepared for your content. This includes normalizing fonts and font sizes, getting rid of unnecessary padding and margin, removing browser button and input styling, and more!
flow.scss also has a very basic boilerplate file to get you started.
import "flow.scss/boilerplate.scssThis file has dark/light mode theming that matches the user's system, and some basic styling for text, buttons and more!