tailwind styles added

This commit is contained in:
2025-05-10 14:14:31 +05:30
parent dd26e27193
commit b94017d262
11 changed files with 1126 additions and 34 deletions

View File

@@ -1,15 +1,41 @@
# Turborepo Tailwind CSS starter # Dental Manager - Starter
This Turborepo starter is maintained by the Turborepo core team. # Run the following command:
## Using this example 1. Install dependency
```sh
npm install
```
Run the following command: 2. Generate Prisma, and its Types.
```sh
npm run db:generate
```
3. To Simply run all the app(Backend + Frontend).
```sh
npm run dev
```
4. Or if want to run specfic app (either Backend or Frontend).
```sh
cd apps/Backend
npm run dev
```
or
```sh ```sh
npx create-turbo@latest -e with-tailwind cd apps/Frontend
npm run dev
``` ```
## This in a Turborepo.
## What's inside? ## What's inside?
This Turborepo includes the following packages/apps: This Turborepo includes the following packages/apps:

View File

@@ -43,7 +43,9 @@
"@repo/db": "*", "@repo/db": "*",
"@repo/typescript-config": "*", "@repo/typescript-config": "*",
"@tailwindcss/vite": "^4.1.6", "@tailwindcss/vite": "^4.1.6",
"@tailwindcss/typography": "^0.5.15",
"@tanstack/react-query": "^5.60.5", "@tanstack/react-query": "^5.60.5",
"autoprefixer": "^10.4.20",
"class-variance-authority": "^0.7.1", "class-variance-authority": "^0.7.1",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"cmdk": "^1.1.1", "cmdk": "^1.1.1",
@@ -58,6 +60,7 @@
"memorystore": "^1.6.7", "memorystore": "^1.6.7",
"next-themes": "^0.4.6", "next-themes": "^0.4.6",
"passport": "^0.7.0", "passport": "^0.7.0",
"postcss": "^8.4.47",
"passport-local": "^1.0.0", "passport-local": "^1.0.0",
"react": "^19.1.0", "react": "^19.1.0",
"react-contexify": "^6.0.0", "react-contexify": "^6.0.0",
@@ -70,7 +73,8 @@
"react-resizable-panels": "^2.1.7", "react-resizable-panels": "^2.1.7",
"recharts": "^2.15.2", "recharts": "^2.15.2",
"tailwind-merge": "^3.2.0", "tailwind-merge": "^3.2.0",
"tailwindcss": "^4.1.6", "tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"tw-animate-css": "^1.2.5", "tw-animate-css": "^1.2.5",
"vaul": "^1.1.2", "vaul": "^1.1.2",
"wouter": "^3.7.0", "wouter": "^3.7.0",
@@ -80,7 +84,6 @@
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.25.0", "@eslint/js": "^9.25.0",
"@tailwindcss/postcss": "^4.1.6",
"@types/react": "^19.1.2", "@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2", "@types/react-dom": "^19.1.2",
"@types/tailwindcss": "^3.0.11", "@types/tailwindcss": "^3.0.11",

View File

@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};

View File

@@ -1 +1,60 @@
@import "tailwindcss"; :root {
--background: 0 0% 100%;
--foreground: 222.2 47.4% 11.2%;
--card: 0 0% 100%;
--card-foreground: 222.2 47.4% 11.2%;
--popover: 0 0% 100%;
--popover-foreground: 222.2 47.4% 11.2%;
--primary: 240 100% 50%;
--primary-foreground: 0 0% 100%;
--secondary: 210 40% 96.1%;
--secondary-foreground: 222.2 47.4% 11.2%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;
--destructive: 0 100% 50%;
--destructive-foreground: 0 0% 100%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 4.9% 83.9%;
--radius: 0.5rem;
--chart-1: 217 91% 60%;
--chart-2: 267 91% 70%;
--chart-3: 177 91% 40%;
--chart-4: 37 91% 55%;
--chart-5: 357 91% 60%;
--sidebar-background: 222.2 47.4% 11.2%;
--sidebar-foreground: 0 0% 100%;
--sidebar-primary: 240 100% 50%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 210 40% 96.1%;
--sidebar-accent-foreground: 222.2 47.4% 11.2%;
--sidebar-border: 240 5.9% 90%;
--sidebar-ring: 240 4.9% 83.9%;
}
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
* {
@apply border-border;
}
body {
@apply font-sans antialiased bg-background text-foreground;
}
}

View File

@@ -0,0 +1,91 @@
import type { Config } from "tailwindcss";
// this is being used as global styling, and looks for :root in index.css
export default {
darkMode: ["class"],
content: ["./index.html", "./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
colors: {
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
chart: {
"1": "hsl(var(--chart-1))",
"2": "hsl(var(--chart-2))",
"3": "hsl(var(--chart-3))",
"4": "hsl(var(--chart-4))",
"5": "hsl(var(--chart-5))",
},
sidebar: {
DEFAULT: "hsl(var(--sidebar-background))",
foreground: "hsl(var(--sidebar-foreground))",
primary: "hsl(var(--sidebar-primary))",
"primary-foreground": "hsl(var(--sidebar-primary-foreground))",
accent: "hsl(var(--sidebar-accent))",
"accent-foreground": "hsl(var(--sidebar-accent-foreground))",
border: "hsl(var(--sidebar-border))",
ring: "hsl(var(--sidebar-ring))",
},
},
keyframes: {
"accordion-down": {
from: {
height: "0",
},
to: {
height: "var(--radix-accordion-content-height)",
},
},
"accordion-up": {
from: {
height: "var(--radix-accordion-content-height)",
},
to: {
height: "0",
},
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
},
},
plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
} satisfies Config;

6
apps/Frontend/theme.json Normal file
View File

@@ -0,0 +1,6 @@
{
"variant": "professional",
"primary": "hsl(210, 79%, 46%)",
"appearance": "light",
"radius": 0.5
}

View File

@@ -4,7 +4,6 @@
"moduleResolution": "node", "moduleResolution": "node",
"module": "ESNext", "module": "ESNext",
"jsx": "preserve", "jsx": "preserve",
"typeRoots": ["node_modules/@types", "node_modules"],
"baseUrl": ".", // This tells TypeScript where to start resolving paths "baseUrl": ".", // This tells TypeScript where to start resolving paths
"paths": { "paths": {

View File

@@ -1,14 +1,13 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react'
import path from 'path'; import path from 'path';
import tailwindcss from '@tailwindcss/vite'
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
react(), react(),
tailwindcss(),], ],
resolve: { resolve: {
alias: { alias: {
'@': path.resolve(__dirname, 'src') '@': path.resolve(__dirname, 'src')

942
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,7 +7,8 @@
"dev": "turbo run dev", "dev": "turbo run dev",
"lint": "turbo run lint", "lint": "turbo run lint",
"check-types": "turbo run check-types", "check-types": "turbo run check-types",
"format": "prettier --write \"**/*.{ts,tsx,md}\"" "format": "prettier --write \"**/*.{ts,tsx,md}\"",
"db:generate":"cd packages/db && npx prisma generate && cd ../.."
}, },
"devDependencies": { "devDependencies": {
"prettier": "^3.5.3", "prettier": "^3.5.3",

View File

@@ -2,4 +2,6 @@ node_modules
# Keep environment variables out of version control # Keep environment variables out of version control
.env .env
generated/prisma/ #these two are autogenerated with command, db:generate
generated/prisma/
shared