aboutsummaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/extensions.json16
-rw-r--r--.vscode/settings.json48
-rw-r--r--.vscode/tailwind.json55
3 files changed, 88 insertions, 31 deletions
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index 412a742..7ecfae2 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,8 +1,10 @@
{
- "recommendations": [
- "tauri-apps.tauri-vscode",
- "rust-lang.rust-analyzer",
- "oscarbeaumont.rspc-vscode",
- "EditorConfig.EditorConfig"
- ]
-} \ No newline at end of file
+ "recommendations": [
+ "tauri-apps.tauri-vscode",
+ "rust-lang.rust-analyzer",
+ "oscarbeaumont.rspc-vscode",
+ "EditorConfig.EditorConfig",
+ "prisma.prisma",
+ "bradlc.vscode-tailwindcss"
+ ]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 795cf25..1987dec 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,28 +1,28 @@
{
- "[rust]": {
- "editor.defaultFormatter": "rust-lang.rust-analyzer"
- },
- "rust-analyzer.procMacro.enable": true,
- "rust-analyzer.diagnostics.experimental.enable": false,
- "tailwindCSS.experimental.classRegex": [
- ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], // cva(....)`...`
+ "[rust]": {
+ "editor.defaultFormatter": "rust-lang.rust-analyzer"
+ },
+ "rust-analyzer.procMacro.enable": true,
+ "rust-analyzer.diagnostics.experimental.enable": false,
+ "tailwindCSS.experimental.classRegex": [
+ ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], // cva(....)`...`
"tw\\.[^`]+`([^`]*)`", // tw.xxx`...`
- "tw\\(.*?\\).*?`([^`]*)", // tw(....)`...`
- ],
- "search.exclude": {
- "**/node_modules": true,
- "**/bower_components": true,
- "**/*.code-search": true,
+ "tw\\(.*?\\).*?`([^`]*)" // tw(....)`...`
+ ],
+ "search.exclude": {
+ "**/node_modules": true,
+ "**/bower_components": true,
+ "**/*.code-search": true,
"**/pnpm-lock.yaml": true,
- "**/.gitignore": true
- },
- "eslint.lintTask.enable": true,
- "eslint.workingDirectories": [
-
- ],
- "explorer.fileNesting.enabled": true,
- "explorer.fileNesting.patterns": {
- "*.ts": "${capture}.js",
+ "**/.gitignore": true,
+ "/packages/ctjs/types/*": true
+ },
+ "css.customData": [".vscode/tailwind.json"],
+ "eslint.lintTask.enable": true,
+ "eslint.workingDirectories": [],
+ "explorer.fileNesting.enabled": true,
+ "explorer.fileNesting.patterns": {
+ "*.ts": "${capture}.js",
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
"*.jsx": "${capture}.js",
"*.tsx": "${capture}.ts",
@@ -31,9 +31,9 @@
"README.md": "CONTRIBUTING.md, CODE_OF_CONDUCT.md, LICENSE",
"Cargo.toml": "Cargo.lock",
".eslintrc.js": ".eslintcache",
- ".prettierrc.*": ".rustfmt.toml, .gitattributes, .editorconfig, .clippy.toml",
+ ".prettierrc.*": ".rustfmt.toml, .gitattributes, .editorconfig, .clippy.toml",
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, pnpm-workspace.yaml, .pnp.cjs, .pnp.loader.mjs",
"tsconfig.json": "tsconfig.*.json",
"flake.nix": "shell.nix, flake.lock, Cargo.nix"
- }
+ }
}
diff --git a/.vscode/tailwind.json b/.vscode/tailwind.json
new file mode 100644
index 0000000..a45bccc
--- /dev/null
+++ b/.vscode/tailwind.json
@@ -0,0 +1,55 @@
+{
+ "version": 1.1,
+ "atDirectives": [
+ {
+ "name": "@tailwind",
+ "description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.",
+ "references": [
+ {
+ "name": "Tailwind Documentation",
+ "url": "https://tailwindcss.com/docs/functions-and-directives#tailwind"
+ }
+ ]
+ },
+ {
+ "name": "@apply",
+ "description": "Use the `@apply` directive to inline any existing utility classes into your own custom CSS. This is useful when you find a common utility pattern in your HTML that you’d like to extract to a new component.",
+ "references": [
+ {
+ "name": "Tailwind Documentation",
+ "url": "https://tailwindcss.com/docs/functions-and-directives#apply"
+ }
+ ]
+ },
+ {
+ "name": "@responsive",
+ "description": "You can generate responsive variants of your own classes by wrapping their definitions in the `@responsive` directive:\n```css\n@responsive {\n .alert {\n background-color: #E53E3E;\n }\n}\n```\n",
+ "references": [
+ {
+ "name": "Tailwind Documentation",
+ "url": "https://tailwindcss.com/docs/functions-and-directives#responsive"
+ }
+ ]
+ },
+ {
+ "name": "@screen",
+ "description": "The `@screen` directive allows you to create media queries that reference your breakpoints by **name** instead of duplicating their values in your own CSS:\n```css\n@screen sm {\n /* ... */\n}\n```\n…gets transformed into this:\n```css\n@media (min-width: 640px) {\n /* ... */\n}\n```\n",
+ "references": [
+ {
+ "name": "Tailwind Documentation",
+ "url": "https://tailwindcss.com/docs/functions-and-directives#screen"
+ }
+ ]
+ },
+ {
+ "name": "@variants",
+ "description": "Generate `hover`, `focus`, `active` and other **variants** of your own utilities by wrapping their definitions in the `@variants` directive:\n```css\n@variants hover, focus {\n .btn-brand {\n background-color: #3182CE;\n }\n}\n```\n",
+ "references": [
+ {
+ "name": "Tailwind Documentation",
+ "url": "https://tailwindcss.com/docs/functions-and-directives#variants"
+ }
+ ]
+ }
+ ]
+}