Skip to content

Commit e512abb

Browse files
simplify postcss
1 parent 9b0054b commit e512abb

File tree

8 files changed

+118
-583
lines changed

8 files changed

+118
-583
lines changed

COLLABORATOR_GUIDE.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ The Node.js Website is built upon [React][] and [Next.js][] respectively, the UI
7575
The Website also uses several other Open Source libraries (not limited to) listed below:
7676

7777
- Styling is done with [PostCSS][] and CSS Modules
78-
- We use a combination of PostCSS plugins to create a [Sass](https://sass-lang.com/) alike environment
79-
- We recommend reading the documentation of our plugins in case of doubt
80-
- [PostCSS Mixins](https://github.com/postcss/postcss-mixins)
81-
- [PostCSS Import](https://github.com/postcss/postcss-import)
82-
- [PostCSS Simple Vars](https://github.com/postcss/postcss-simple-vars)
8378
- [Tailwind][] is used as our CSS Framework and the Foundation of our Design System
8479
- [Hero Icons](https://heroicons.com/) is an SVG Icon Library used within our Codebase
8580
- [Radix UI][] is a collection of customizable UI components
@@ -577,15 +572,11 @@ We currently use a set of PostCSS plugins that create a SCSS-a-like environment.
577572

578573
#### What PostCSS Plugins we use?
579574

580-
- `postcss-mixins`: Allows us to use Sass-like Mixins
581-
- `postcss-import`: Allows us to use Sass-like Imports
582-
- `postcss-simple-vars`: Allows us to use Sass-like Variables
583-
- `postcss-nested`: Allows us to use Sass-like Nesting
584575
- `postcss-calc`: Strips `calc` expressions and replaces them with the result
576+
- `@tailwindcss/postcss`: Allows us to use Tailwind within PostCSS
585577

586578
It is important to mention that even though we use SCSS-like syntax, we do not use SCSS, and some of these plugins
587579
are not 100% compatible with the SCSS syntax.
588-
For example, `postcss-mixins` does not support `@include` and `@extend` directives (and it uses `@define-mixin` for defining Mixins and `@mixin` for including Mixins).
589580

590581
#### Do we use a CSS Framework?
591582

apps/site/.postcssrc.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"plugins": {
3-
"postcss-mixins": {},
4-
"postcss-simple-vars": {},
53
"postcss-calc": {},
64
"@tailwindcss/postcss": {}
75
}

apps/site/.stylelintrc.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ const CUSTOM_AT_RULES = [
1111
'screen',
1212
'tailwind',
1313
'variants',
14-
// PostCSS-specific at-rules
15-
'define-mixin',
16-
'mixin',
1714
];
1815

1916
// Enforces certain selectors to be only in camelCase notation

apps/site/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@
4949
"next-themes": "~0.4.4",
5050
"postcss": "~8.5.3",
5151
"postcss-calc": "~10.1.1",
52-
"postcss-import": "~16.1.0",
5352
"postcss-loader": "~8.1.1",
54-
"postcss-mixins": "~11.0.3",
55-
"postcss-simple-vars": "~7.0.1",
5653
"react": "19.0.0",
5754
"react-dom": "19.0.0",
5855
"rehype-autolink-headings": "~7.1.0",

0 commit comments

Comments
 (0)