{"repo":"remcohaszing/monaco-tailwindcss","free":true,"listed":false,"github":"https://github.com/remcohaszing/monaco-tailwindcss","clone":"git clone https://github.com/remcohaszing/monaco-tailwindcss.git","description":"Tailwindcss intellisense support in Monaco editor","language":"TypeScript","stars":104,"topics":["monaco","monaco-editor","tailwind","tailwindcss","tailwind-css"],"license":"MIT","category":"ui-components","readme_excerpt":"Monaco Tailwindcss Tailwindcss integration for Monaco editor. Table of Contents - Installation - Usage - API - monaco-tailwindcss - monaco-tailwindcss/tailwindcss.worker - Related projects - License Installation Usage Import monaco-tailwindcss and configure it before an editor instance is created. Also make sure to register the web worker. When using Webpack 5, this looks like the code below. Other bundlers may use a different syntax, but the idea is the same. Languages you don’t used can be omitted. API This package exposes two exports. One to setup the main logic, another to customize the Tailwind configuration in the worker. monaco-tailwindcss configureMonacoTailwindcss(monaco, options?) Configure monaco-tailwindcss . Arguments : - monaco : The monaco-editor module. ( object ) - options : An object with the following properties: - languageSelector : The language ID or IDs to which to apply monaco-unified . ( string string[] , optional, default: ['css', 'javascript', 'html', 'mdx', 'typescript'] ) - tailwindConfig : The tailwind configuration to use. This may be either the Tailwind configuration object, or a string that gets processed in the worker. ( object string , optional) Returns : A disposable with the following additional properties: - setTailwindConfig(tailwindConfig) : Update the current Tailwind configuration. - generateStylesFromContent(css, content) : Generate a CSS string based on the current Tailwind configuration. tailwindcssData This data can be used with th","default_branch":null,"files":null,"tree":[],"storefront":"/r/remcohaszing","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/remcohaszing/monaco-tailwindcss/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}