add Tailwind

This commit is contained in:
Andre Staltz 2024-01-04 14:53:41 +02:00
parent 110df1fb55
commit 1679fad72f
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
5 changed files with 31 additions and 12 deletions

3
package-lock.json generated
View File

@ -18,7 +18,8 @@
"web-vitals": "^2.1.4"
},
"devDependencies": {
"electron": "^28.1.1"
"electron": "^28.1.1",
"tailwindcss": "^3.4.0"
}
},
"node_modules/@aashutoshrathi/word-wrap": {

View File

@ -4,6 +4,14 @@
"private": true,
"main": "main.js",
"homepage": "./",
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"electron": "electron .",
"electron-dev": "ELECTRON_START_URL=http://localhost:3000 electron ."
},
"dependencies": {
"@excalidraw/excalidraw": "0.17.2",
"@testing-library/jest-dom": "^5.17.0",
@ -14,13 +22,9 @@
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"electron": "electron .",
"electron-dev": "ELECTRON_START_URL=http://localhost:3000 electron ."
"devDependencies": {
"electron": "^28.1.1",
"tailwindcss": "^3.4.0"
},
"eslintConfig": {
"extends": [
@ -39,8 +43,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"electron": "^28.1.1"
}
}

View File

@ -4,7 +4,9 @@ import { Excalidraw } from '@excalidraw/excalidraw'
function App() {
return (
<div className="App">
<div className="Sidebar"></div>
<div className="Sidebar">
<h1 className="text-3xl font-bold underline">Hello world!</h1>
</div>
<div className="Main">
<Excalidraw
UIOptions={{

View File

@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',

11
tailwind.config.js Normal file
View File

@ -0,0 +1,11 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}