Skip to content

Conversation

@sandiiarov
Copy link

@sandiiarov sandiiarov commented Jan 18, 2026

Summary

This PR adds TailwindCSS Language Server support to OpenCode, enabling IDE-like features (autocomplete, hover info, diagnostics) for TailwindCSS projects.

Changes

  • Added Tailwind LSP server configuration in packages/opencode/src/lsp/server.ts
  • Auto-installs @tailwindcss/language-server when not found in system
  • Supports .css, .html, .jsx, .tsx, .vue, .astro, .svelte, .scss, .less files
  • Detects TailwindCSS projects via tailwind.config.* or postcss.config.* files
  • Updated LSP documentation in packages/web/src/content/docs/lsp.mdx

Testing

Tested locally with:

  • Opening supported files in Tailwind projects
  • Verified LSP server spawns automatically
  • Checked diagnostics for invalid Tailwind classes
  • Tested auto-detection of config files

Fixes #8518

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add TailwindCSS LSP server support

1 participant