This is a VSCode extension that provides intelligent insights for Twind.
Why does the name end with Phoenix? Because it is rising from the ashes, and one day, it will shine as brightly as it once did.
Features
Intelligent suggestions
Clear class information
Color previews
How to Use
After installing the extension, simply configure it as follows.
{
// [Important] Specify the presets used in the project, such as `tailwind`, ...
"twind-intellisense.presets": ["tailwind", "typography"]
// ... see below for additional configurations
}
If your project uses the tailwind preset, be sure to add it.
phoenix-tailwind@3.4 corresponds to @phoenix-twind/preset-tailwind, supports the latest tailwind@3.4.
tailwind corresponds to @twind/preset-tailwind, and the others follow similarly.
twind-intellisense.configPath
Description: Path to the Twind configuration file
Type: string | undefined
Additional Notes:
This should be specified relative to the workspace root.
You can specify the full path to the configuration file, e.g., 'path/to/twind.config.js'
You can specify the directory containing the configuration file, e.g., 'path/to/' (it will automatically look for twind.config.js or twind.config.ts in that directory)
If not specified, it will default to looking for 'twind.config.(js|ts)' in the workspace root directory
Additionally, even on Windows systems, always use forward slashes (/) as path separators
twind-intellisense.colorPreview
Description: Color preview configuration
Type: object
Properties:
enabled:
Description: Whether to enable the color preview feature