-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #343 from Larocceau/remove-tailwind
add recipe for removing tailwind
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
By default, a full SAFE-stack application uses Tailwind CSS for styling. You might not always want to manage your styling using Tailwind, for example because you want to use a CSS framework like [Bulma](https://bulma.io/). In this recipe we describe how to fully remove Tailwind | ||
|
||
## 1. Remove Tailwind css classes | ||
|
||
Tailwind uses classes to style UI elements. In `src/Client`, search for all occurrences of `prop.className` and `prop.classes` and remove them if they are used for Tailwind support. In a vanilla SAFE template installation, this means removing **all** occurrences of `prop.className`. | ||
|
||
|
||
## 2. Uninstall NPM packages | ||
|
||
Remove NPM packages that were installed for Tailwind using | ||
|
||
``` | ||
npm uninstall tailwindcss postcss autoprefixer | ||
``` | ||
|
||
## 3. Remove configuration files | ||
|
||
Remove the following files: | ||
|
||
``` | ||
src/Client/postcss.config.js | ||
src/Client/tailwind.config.js | ||
src/Client/index.css | ||
``` | ||
|
||
Your SAFE Stack app is now Tailwind-free. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters