Skip to content

Commit 74db096

Browse files
[W-16] Centralize tailwind config, use inter (#26)
* use inter * update docs logo svg * centralize tailwind config * missing files
1 parent 7862d2a commit 74db096

File tree

18 files changed

+387
-205
lines changed

18 files changed

+387
-205
lines changed

packages/cli/cli-web/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12+
"@captain/tailwind-config": "*",
13+
"@headlessui/react": "^1.7.8",
1214
"@heroicons/react": "^2.0.12",
1315
"@tanstack/react-query": "^4.7.2",
1416
"@trpc/client": "10.0.0-proxy-beta.25",
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
module.exports = {
2-
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
5-
},
6-
}
1+
module.exports = require("@captain/tailwind-config/postcss");

packages/cli/cli-web/src/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
@tailwind utilities;
44

55
:root {
6+
font-family: "Inter", -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
7+
"Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
8+
69
font-size: 16px;
710
line-height: 24px;
811
font-weight: 400;
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3+
presets: [require("@captain/tailwind-config")],
34
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
4-
theme: {
5-
extend: {},
6-
},
75
plugins: [require("@tailwindcss/forms")],
86
};

packages/config/tailwind/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: ["./src/**/*.{ts,tsx}", "./src/_app.tsx"],
4+
theme: {
5+
fontFamily: {
6+
display: ["Inter"],
7+
},
8+
extend: {},
9+
},
10+
plugins: [],
11+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@captain/tailwind-config",
3+
"version": "0.1.0",
4+
"main": "index.js",
5+
"license": "MIT",
6+
"files": [
7+
"index.js",
8+
"postcss.js"
9+
],
10+
"devDependencies": {
11+
"autoprefixer": "^10.4.13",
12+
"postcss": "^8.4.21",
13+
"tailwindcss": "^3.2.4"
14+
}
15+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

packages/hosted/www/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"dependencies": {
1414
"@captain/auth": "*",
1515
"@captain/db": "*",
16+
"@captain/tailwind-config": "*",
1617
"@captain/trpc": "*",
1718
"@formkit/auto-animate": "^1.0.0-beta.3",
1819
"@headlessui/react": "^1.7.4",
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
module.exports = {
2-
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
5-
},
6-
};
1+
module.exports = require("@captain/tailwind-config/postcss");
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3-
content: ["./src/**/*.{js,ts,jsx,tsx}"],
4-
theme: {
5-
extend: {},
6-
},
3+
presets: [require("@captain/tailwind-config")],
74
plugins: [require("@tailwindcss/forms")],
85
};

0 commit comments

Comments
 (0)