mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 13:23:24 +00:00
refactor to turbo
This commit is contained in:
12
tooling/tailwind/base.ts
Normal file
12
tooling/tailwind/base.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { Config } from "tailwindcss";
|
||||
|
||||
import colors from "./colors";
|
||||
|
||||
export default {
|
||||
content: ["src/**/*.{ts,tsx}"],
|
||||
theme: {
|
||||
extend: {
|
||||
colors,
|
||||
},
|
||||
},
|
||||
} satisfies Config;
|
14
tooling/tailwind/colors.ts
Normal file
14
tooling/tailwind/colors.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export default {
|
||||
primary: {
|
||||
100: "#C082FF",
|
||||
300: "#8D44D6",
|
||||
400: "#7831BF",
|
||||
},
|
||||
secondary: {
|
||||
50: "#676790",
|
||||
200: "#3F3F60",
|
||||
300: "#32324F",
|
||||
700: "#131322",
|
||||
},
|
||||
background: "#0a0a12",
|
||||
};
|
9
tooling/tailwind/native.ts
Normal file
9
tooling/tailwind/native.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { Config } from "tailwindcss";
|
||||
|
||||
import base from "./base";
|
||||
|
||||
export default {
|
||||
content: base.content,
|
||||
presets: [base],
|
||||
theme: {},
|
||||
} satisfies Config;
|
39
tooling/tailwind/package.json
Normal file
39
tooling/tailwind/package.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"name": "@movie-web/tailwind-config",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"./native": "./native.ts",
|
||||
"./web": "./web.ts",
|
||||
"./colors": "./colors.ts"
|
||||
},
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"clean": "rm -rf .turbo node_modules",
|
||||
"format": "prettier --check . --ignore-path ../../.gitignore",
|
||||
"lint": "eslint .",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"autoprefixer": "^10.4.17",
|
||||
"postcss": "^8.4.32",
|
||||
"tailwindcss": "^3.4.0",
|
||||
"tailwindcss-animate": "^1.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@movie-web/eslint-config": "workspace:^0.2.0",
|
||||
"@movie-web/prettier-config": "workspace:^0.1.0",
|
||||
"@movie-web/tsconfig": "workspace:^0.1.0",
|
||||
"eslint": "^8.56.0",
|
||||
"prettier": "^3.1.1",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
"extends": [
|
||||
"@movie-web/eslint-config/base"
|
||||
]
|
||||
},
|
||||
"prettier": "@movie-web/prettier-config"
|
||||
}
|
8
tooling/tailwind/tsconfig.json
Normal file
8
tooling/tailwind/tsconfig.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "@movie-web/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||
},
|
||||
"include": ["."],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
40
tooling/tailwind/web.ts
Normal file
40
tooling/tailwind/web.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import type { Config } from "tailwindcss";
|
||||
import animate from "tailwindcss-animate";
|
||||
|
||||
import base from "./base";
|
||||
|
||||
export default {
|
||||
content: base.content,
|
||||
presets: [base],
|
||||
theme: {
|
||||
container: {
|
||||
center: true,
|
||||
padding: "2rem",
|
||||
screens: {
|
||||
"2xl": "1400px",
|
||||
},
|
||||
},
|
||||
extend: {
|
||||
borderRadius: {
|
||||
lg: "var(--radius)",
|
||||
md: "calc(var(--radius) - 2px)",
|
||||
sm: "calc(var(--radius) - 4px)",
|
||||
},
|
||||
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: [animate],
|
||||
} satisfies Config;
|
Reference in New Issue
Block a user