@tailwind-architect/shared
v1.0.17
Published
Shared types and constants for the [Tailwind Architect](https://github.com/tailwind-architect/tailwind-architect) toolchain. Used by `@tailwind-architect/core` and the `tailwind-architect` CLI.
Downloads
1,338
Readme
@tailwind-architect/shared
Shared types and constants for the Tailwind Architect toolchain. Used by @tailwind-architect/core and the tailwind-architect CLI.
Most users should use the CLI or core for analysis and fixes. This package is intended for consumers that need the shared type definitions and constants without pulling in the full core engine.
Installation
npm install @tailwind-architect/sharedExports
Constants
| Export | Description |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| SOURCE_EXTENSIONS | Set<string> — File extensions scanned for Tailwind classes (.ts, .tsx, .js, .jsx, .mjs, .cjs, .vue, .astro, .svelte). |
| IGNORE_DIRS | Set<string> — Directory names excluded from project scans (node_modules, .git, dist, coverage, .next, .turbo). |
Types
| Type | Description |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| AnalyzerConfig | Full config (feature flags + classFunctions, plugins). |
| FeatureFlags | sortClasses, removeRedundant, detectConflicts, readabilityMode, autoFix. |
| ProjectAnalysis | Result of a project-wide scan: filesScanned, filesWithIssues, counts, perFile, parseErrors, duplicatePatterns. |
| FileIssue | Per-file summary: filePath, conflictCount, redundancyCount, suggestionCount. |
| FileParseError | Parse error: filePath, message. |
| DuplicatePattern | Repeated class sequence: pattern, occurrences, filePaths. |
Links
- Repository: tailwind-architect
- CLI: tailwind-architect
- Core (engine): @tailwind-architect/core
License
MIT. See the project license.