Styling
Scss/Sass and styled-component are being used to style components. It's recommended to keep style files in the same directory with component's files and import it right from there when necessary.
Example:
├── src
│ ├── Components
│ │ ├── Heading
│ │ │ ├── index.spec.tsx
│ │ │ ├── index.tsx
│ │ │ ├── styled.ts (styled-component)
│ │ │ └── style.scss (scss/sass)
│ │ └── index.ts
You need to import style.scss or styled.ts depending your selection into Heading/index.tsx
import './style.scss';
Bootstrap 4
Bootstrap is a free front-end framework for faster and easier web development Bootstrap includes HTML and CSS based design templates for typography, forms, buttons, tables, navigation, modals, image carousels and many other, as well as optional JavaScript plugins
Bootstrap also gives you the ability to easily create responsive designs
We included Bootstrap 4 to next-boilerplate by default. You can just start using Bootstrap features without any configuration.
For any reason if you want to exclude Bootstrap from project follow the directions at the below.
- Remove bootstrap folder from
static/css/bootstrap
directory. - Delete
@import "./bootstrap/index"
line fromstatic/css/main.scss
file. - Uninstall dependencies from package.json by
npm uninstall bootstrap
command.
Refer to offical documentation for detailed usage.