Skip to content

Commit

Permalink
Add tailwind as to React Sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
rxqd committed Mar 30, 2024
1 parent 76683a6 commit 6165626
Show file tree
Hide file tree
Showing 8 changed files with 659 additions and 20 deletions.
6 changes: 3 additions & 3 deletions bin/current.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
ROOT="$(dirname "$SCRIPT_DIR")"

if [[ -L "$ROOT/current" ]]; then
rm "$ROOT/current"
rm -f "$ROOT/current"
fi

ln -s "$1" "$ROOT/current"
Expand All @@ -29,13 +29,13 @@ if [[ ! -e "$ROOT/current/.replit" ]]; then
fi

if [[ -L "$ROOT/.replit" ]]; then
rm "$ROOT/.replit"
rm -f "$ROOT/.replit"
fi

ln -s "$ROOT/current/.replit" "$ROOT/.replit"

if [[ -L "$ROOT/replit.nix" ]]; then
rm "$ROOT/replit.nix"
rm -f "$ROOT/replit.nix"
fi

if [[ -e "$ROOT/current/replit.nix" ]]; then
Expand Down
8 changes: 4 additions & 4 deletions src/node/sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@vitejs/plugin-react": "^4.2.0",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.4.3",
"typescript": "^5.2.2",
"vite": "^5.2.6"
},
"engines": {
"node": "=20.x"
},
"packageManager": "[email protected]",
"dependencies": {
"modern-normalize": "^2.0.0"
}
"packageManager": "[email protected]"
}
6 changes: 6 additions & 0 deletions src/node/sandbox/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
3 changes: 3 additions & 0 deletions src/node/sandbox/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
1 change: 0 additions & 1 deletion src/node/sandbox/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'modern-normalize/modern-normalize.css';
import "@/App.css";
import HomePage from "@/pages/HomePage";

Expand Down
12 changes: 12 additions & 0 deletions src/node/sandbox/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{ts,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}

Loading

0 comments on commit 6165626

Please sign in to comment.