Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
48084649
Unverified
Commit
48084649
authored
Mar 05, 2020
by
Joe Haddad
Committed by
GitHub
Mar 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-add Sass Docs (#10850)
This reverts commit
b5c70e86
.
parent
a61dfb22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
built-in-css-support.md
docs/basic-features/built-in-css-support.md
+15
-3
No files found.
docs/basic-features/built-in-css-support.md
View file @
48084649
...
@@ -158,11 +158,23 @@ export default HelloWorld
...
@@ -158,11 +158,23 @@ export default HelloWorld
Please see the
[
styled-jsx documentation
](
https://github.com/zeit/styled-jsx
)
for more examples.
Please see the
[
styled-jsx documentation
](
https://github.com/zeit/styled-jsx
)
for more examples.
## Sass
, Less and Stylus
Support
## Sass Support
To support importing
`.scss`
,
`.sass`
,
`.less`
, or
`.styl`
files you can use the following plugins:
Next.js allows you to import Sass using both the
`.scss`
and
`.sass`
extensions.
You can use component-level Sass via CSS Modules and the
`.module.scss`
or
`.module.sass`
extension.
Before you can use Next.js' built-in Sass support, be sure to install
[
`sass`
](
https://github.com/sass/sass
)
:
```
bash
npm
install
sass
```
Sass support has the same benefits and restrictions as the built-in CSS support detailed above.
## Less and Stylus Support
To support importing
`.less`
or
`.styl`
files you can use the following plugins:
-
[
@zeit/next-sass
](
https://github.com/zeit/next-plugins/tree/master/packages/next-sass
)
-
[
@zeit/next-less
](
https://github.com/zeit/next-plugins/tree/master/packages/next-less
)
-
[
@zeit/next-less
](
https://github.com/zeit/next-plugins/tree/master/packages/next-less
)
-
[
@zeit/next-stylus
](
https://github.com/zeit/next-plugins/tree/master/packages/next-stylus
)
-
[
@zeit/next-stylus
](
https://github.com/zeit/next-plugins/tree/master/packages/next-stylus
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment