Skip to content

Commit

Permalink
tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Apr 3, 2024
1 parent ba81bf2 commit 0e8ee7b
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 86 deletions.
3 changes: 3 additions & 0 deletions apps/web/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Root({ children }: { children: React.ReactNode }) {
return <>{children}</>
}
16 changes: 11 additions & 5 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@
"scripts": {
"dev": "vocs dev",
"build": "vocs build",
"preview": "vocs preview"
"preview": "vocs preview",
"type:check": "tsc --noEmit"
},
"dependencies": {
"@types/react": "latest",
"react": "latest",
"react-dom": "latest",
"typescript": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vocs": "latest"
},
"devDependencies": {
"@types/react": "^18.2.74",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.3"
}
}
2 changes: 2 additions & 0 deletions apps/web/pages/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ description: Description of introduction section
---

# Introduction2

<p className="text-4xl text-red-900">With some Tailwind CSS</p>
6 changes: 6 additions & 0 deletions apps/web/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
5 changes: 5 additions & 0 deletions apps/web/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@layer vocs_preflight {
@tailwind base;
}
@tailwind components;
@tailwind utilities;
13 changes: 13 additions & 0 deletions apps/web/tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{html,md,mdx,tsx,js,jsx}',
'./components/**/*.{html,md,mdx,tsx,js,jsx}',
'./layout.tsx',
'./styles.css',
],
theme: {
extend: {},
},
plugins: [],
}
3 changes: 2 additions & 1 deletion apps/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"target": "ES2022",
"useDefineForClassFields": true,
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"types": [],
"module": "ESNext",
"skipLibCheck": true,

Expand All @@ -20,5 +21,5 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["**/*.ts", "**/*.tsx"]
"exclude": ["**/*.js", "**/*.cjs", "**/*.mjs"]
}
Loading

0 comments on commit 0e8ee7b

Please sign in to comment.