tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
feat: catppuccin
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmVKz3YACgkQuFOtpdp7
v3qd7Q/+JpW9zlsTbq/7maFBigvivwcgM103pUJ/1yzJix2u4K9I2QiVr47CcQj6
7/1EpOaOLajalEOTCtIe2kzzjOPPI/0HnyaTsGZoGR5o3czHU+cXWVNTrvGmSXy/
ADh6/jHiE2m91iHBaUtbsdD3C82MK6LGRdYm5pAde+Bjn6NGqgXQRQ63iOJSha7s
NVrYE1sy+cYTYPtHW8dnBZBSxbdBB6HNqOqwzv+8gpwtpJ+2OyWhaJ2N5S+LZXvG
4sIBXabK4tpYSnuEEQuF8GXZrT1CC32iuhkbX9QxIiypJverWEAB08YaFGWxdSgz
11Yy7fDNtaKHNfTMBTqQkkwkfyyKK9wUWRmTMNMv1AAFn6T/j3DChiXH4Ac4p2Ib
KBFL5hhB91TWlRFZJiVHzAGqKEOv6/70C0gzC6yxyvKxzzY+CEJyN0hkpBS/odT5
wctvMUfxwDTmlnaBNB74jvXSq9Sy7Z0blGx9ysZSjjYOmLwnCr4XyxzIfQpImpf9
8N97mrUTSKf6FE6F4/xCHI+CnXcFtqjGE1eC4YpDILLC6G1CGjYpgrPys3beGPvY
+vRe5TobJUqud9CTCKJ+Hg6sgfvpgH+z3TG9jsuGMMl/WjRjROCPbR65RuN4AFXN
N6VjTWa6I05GItNwIhBudAxHputZEo1YatwCI/gu4pmZRY1yhZ0=
=kQFs
-----END PGP SIGNATURE-----
5 changed files, 83 additions(+), 1 deletions(-)
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000000000000000000000000000000000000..0d1df4988dd5ce40e75d36e710af586c21a63708
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,27 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1699343069,
+ "narHash": "sha256-s7BBhyLA6MI6FuJgs4F/SgpntHBzz40/qV0xLPW6A1Q=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "ec750fd01963ab6b20ee1f0cb488754e8036d89d",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixpkgs-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000000000000000000000000000000000000..bffd634473151b6d72746604f9cbb3d6ace63529
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,39 @@
+{
+ description = "TailwindCSS LSP + Catppuccin";
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
+ };
+
+ outputs = {
+ self,
+ nixpkgs,
+ }: let
+ pkgs = nixpkgs.legacyPackages.x86_64-linux;
+ version = "0.0.14";
+ in {
+ packages.x86_64-linux.default = with pkgs;
+ buildNpmPackage {
+ pname = "tailwindcss-language-server";
+ inherit version;
+
+ src = ./.;
+
+ makeCacheWritable = true;
+ npmDepsHash = "sha256-SH0BaGDtmc+hUoe8CSmiZjTcETUaeSFiN5cl5JmJeaY=";
+ npmWorkspace = "packages/tailwindcss-language-server";
+
+ buildInputs = [libsecret] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [Security AppKit]);
+
+ nativeBuildInputs = [python3 pkg-config];
+
+ meta = with lib; {
+ description = "Intelligent Tailwind CSS tooling for Visual Studio Code";
+ homepage = "https://github.com/tailwindlabs/tailwindcss-intellisense";
+ license = licenses.mit;
+ maintainers = with maintainers; [happysalada];
+ mainProgram = "tailwindcss-language-server";
+ platforms = platforms.all;
+ };
+ };
+ };
+}
diff --git a/package-lock.json b/package-lock.json
index e8d11eaf3bfc7746f1ce0cb13a550f48f16937db..aea1820158b91784e32072fa8dc04841d59bb685 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -185,6 +185,15 @@ "engines": {
"node": ">=6.9.0"
}
},
+ "node_modules/@catppuccin/tailwindcss": {
+ "version": "0.1.6",
+ "resolved": "https://registry.npmjs.org/@catppuccin/tailwindcss/-/tailwindcss-0.1.6.tgz",
+ "integrity": "sha512-V+Y0AwZ5SSyvOVAcDl7Ng30xy+m82OKnEJ+9+kcZZ7lRyXuZrAb2GScdq9XR3v+ggt8qiZ/G4TvaC9cJ88AAXA==",
+ "dev": true,
+ "peerDependencies": {
+ "tailwindcss": ">=3.0.0"
+ }
+ },
"node_modules/@csstools/css-parser-algorithms": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-2.1.1.tgz",
@@ -7576,6 +7585,7 @@ "bin": {
"tailwindcss-language-server": "bin/tailwindcss-language-server"
},
"devDependencies": {
+ "@catppuccin/tailwindcss": "^0.1.6",
"@parcel/watcher": "2.0.3",
"@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/container-queries": "0.1.0",
diff --git a/packages/tailwindcss-language-server/package.json b/packages/tailwindcss-language-server/package.json
index bee36c72675360b497442285853d4fe618f8e699..9118025a09c994e28e8b985eb8709ee724e26b54 100644
--- a/packages/tailwindcss-language-server/package.json
+++ b/packages/tailwindcss-language-server/package.json
@@ -33,10 +33,12 @@ "publishConfig": {
"access": "public"
},
"devDependencies": {
+ "@catppuccin/tailwindcss": "^0.1.6",
"@parcel/watcher": "2.0.3",
"@tailwindcss/aspect-ratio": "0.4.2",
"@tailwindcss/container-queries": "0.1.0",
"@tailwindcss/forms": "0.5.3",
+ "@tailwindcss/language-service": "*",
"@tailwindcss/line-clamp": "0.4.2",
"@tailwindcss/typography": "0.5.7",
"@types/debounce": "1.2.0",
@@ -70,7 +72,6 @@ "resolve": "1.20.0",
"rimraf": "3.0.2",
"stack-trace": "0.0.10",
"tailwindcss": "3.3.0",
- "@tailwindcss/language-service": "*",
"typescript": "4.6.4",
"vitest": "0.34.2",
"vscode-css-languageservice": "6.2.9",
diff --git a/packages/tailwindcss-language-server/src/lib/plugins.ts b/packages/tailwindcss-language-server/src/lib/plugins.ts
index aa5f0c544230fd6d55f0bd777c10dd65af8a22ef..b780de003cf5d2bb7c2ae0739340178e872332f2 100644
--- a/packages/tailwindcss-language-server/src/lib/plugins.ts
+++ b/packages/tailwindcss-language-server/src/lib/plugins.ts
@@ -20,4 +20,9 @@ module: require('@tailwindcss/typography'),
version: require('@tailwindcss/typography/package.json').version,
},
export default {
+ '@tailwindcss/forms': {
+ module: require('@catppuccin/tailwindcss'),
+ version: require('@catppuccin/tailwindcss/package.json').version,
+ },
+export default {
version: require('@tailwindcss/container-queries/package.json').version,