Skip to content

Commit 79999ad

Browse files
FreekHeijtingclaude
andcommitted
feat(phase-1): raw masterplan for Tailwind CSS pkg
- 29 estimated skills across 5 categories (core/syntax/impl/errors/agents) - Scope covers v3.4 + v4 with migration skill - Cross-pkg boundaries to shadcn/frontend-design/Vite documented - SOURCES.md populated with primary URLs (Tailwind docs, GitHub, plugins, tailwind-merge) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0ec68ad commit 79999ad

2 files changed

Lines changed: 80 additions & 22 deletions

File tree

SOURCES.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Sources Tailwind CSS Skill Package
1+
# Sources : Tailwind CSS Skill Package
22

33
## Approved Sources
44

@@ -8,22 +8,36 @@ All skill content MUST be verified against these approved sources. No unverified
88

99
| Source | URL | Type | Last Verified |
1010
|--------|-----|------|---------------|
11-
| {{SOURCE_1_NAME}} | {{SOURCE_1_URL}} | Official Documentation | Not yet |
12-
| {{SOURCE_2_NAME}} | {{SOURCE_2_URL}} | GitHub Repository | Not yet |
11+
| Tailwind CSS Official Docs (v3.4) | https://v3.tailwindcss.com/docs/installation | Official Documentation | Pending |
12+
| Tailwind CSS Official Docs (v4) | https://tailwindcss.com/docs/installation | Official Documentation | Pending |
13+
| Tailwind CSS GitHub Repo | https://github.com/tailwindlabs/tailwindcss | Source Code | Pending |
14+
| Tailwind CSS Releases | https://github.com/tailwindlabs/tailwindcss/releases | Release Notes | Pending |
15+
| Tailwind CSS Blog (v4 launch) | https://tailwindcss.com/blog/tailwindcss-v4 | Official Blog | Pending |
16+
| Tailwind CSS Blog Index | https://tailwindcss.com/blog | Official Blog | Pending |
17+
| Tailwind Plugins : Typography | https://github.com/tailwindlabs/tailwindcss-typography | Official Plugin | Pending |
18+
| Tailwind Plugins : Forms | https://github.com/tailwindlabs/tailwindcss-forms | Official Plugin | Pending |
19+
| Tailwind Plugins : Container Queries | https://github.com/tailwindlabs/tailwindcss-container-queries | Official Plugin | Pending |
20+
| Tailwind Plugins : Aspect Ratio | https://github.com/tailwindlabs/tailwindcss-aspect-ratio | Official Plugin | Pending |
21+
| Tailwind CSS v4 Upgrade Guide | https://tailwindcss.com/docs/upgrade-guide | Migration Guide | Pending |
22+
| Tailwind CSS v4 Vite Plugin | https://github.com/tailwindlabs/tailwindcss/tree/main/packages/%40tailwindcss-vite | Source Code | Pending |
23+
| Tailwind CSS v4 PostCSS Plugin | https://github.com/tailwindlabs/tailwindcss/tree/main/packages/%40tailwindcss-postcss | Source Code | Pending |
24+
| tailwind-merge | https://github.com/dcastil/tailwind-merge | Companion Library | Pending |
1325

1426
### Secondary Sources (use only when primary is insufficient)
1527

1628
| Source | URL | Type | Last Verified |
1729
|--------|-----|------|---------------|
18-
| | | | |
30+
| Tailwind UI Docs | https://tailwindcss.com/plus | Reference Patterns | Pending |
31+
| Tailwind Discord Issues (via GitHub Discussions) | https://github.com/tailwindlabs/tailwindcss/discussions | Community Issues | Pending |
32+
| Tailwind CSS Issues (anti-pattern mining) | https://github.com/tailwindlabs/tailwindcss/issues | Issue Tracker | Pending |
1933

2034
## Verification Rules
2135

2236
1. **Primary sources ONLY**: Official docs > source code > official tutorials
2337
2. **NEVER use**: Random blog posts, unverified StackOverflow answers, AI-generated content without verification
24-
3. **Version-check**: Ensure source matches target version ({{TECH_VERSIONS}})
38+
3. **Version-check**: Ensure source matches target version (v3.4 vs v4). Both supported per skill where divergence matters.
2539
4. **Date-check**: Note last verification date per source
26-
5. **Cross-reference**: If official docs are sparse, verify against source code
40+
5. **Cross-reference**: If official docs are sparse, verify against source code in `tailwindlabs/tailwindcss` repo
2741
6. **WebFetch**: ALWAYS use WebFetch to verify against latest official documentation (D-006)
2842

2943
## Source Addition Protocol

docs/masterplan/tailwind-masterplan.md

Lines changed: 60 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,83 @@
66
## Scope
77

88
- Technology : Tailwind CSS
9-
- Versions : v3.4-v4
10-
- Languages : CSS,HTML,JavaScript
9+
- Versions : v3.4.x (stable, JIT, JS-config) AND v4.0.x (Oxide engine in Rust, CSS-first `@theme` config)
10+
- Languages : CSS, HTML, JavaScript
1111
- Prefix : tailwind
1212
- License : MIT
1313

14-
## Identified Topics (raw, pre-research)
14+
## Mission
1515

16-
TODO : fill via Phase 1 step 3.5 brainstorm. Group by category.
16+
Deterministic Claude skills covering Tailwind CSS utility-first methodology, v3-to-v4 migration, configuration patterns, variant system, responsive design, dark mode, plugin authorship, JIT engine, build integration, and the tailwind-merge interop pattern needed for shadcn/ui contexts.
1717

18-
### Core
18+
## Identified Topics (raw, pre-research)
1919

20-
- ...
20+
### Core
21+
- core-architecture : utility-first philosophy, Oxide engine vs JIT, design tokens, content scanning
22+
- core-design-system : spacing scale, color scale (default + P3 in v4), type scale, breakpoints
23+
- core-v3-vs-v4 : breaking changes overview, engine differences, config-location swap, default behaviors
2124

2225
### Syntax
23-
24-
- ...
26+
- syntax-utility-classes : base utility patterns (spacing, color, typography, layout, flexbox, grid)
27+
- syntax-variants : hover/focus/active/disabled, group-*, peer-*, aria-*, data-*, supports-*
28+
- syntax-responsive : mobile-first breakpoints, sm/md/lg/xl/2xl, container queries (`@container` in v4)
29+
- syntax-dark-mode : `dark:` variant, class strategy vs media strategy, v4 `@variant` selector
30+
- syntax-arbitrary-values : `bg-[#1da1f2]`, `w-[calc(100%-2rem)]`, modifier-arbitrary, type hints
31+
- syntax-state-modifiers : first/last/odd/even, before/after, placeholder, file, marker, selection
32+
- syntax-pseudo-elements : `::before`, `::after`, content utilities
2533

2634
### Implementation
27-
28-
- ...
35+
- impl-config-v3 : `tailwind.config.js` (theme, extend, content, plugins, presets)
36+
- impl-config-v4 : CSS-first `@theme`, `@source`, `@plugin`, `@utility`, `@variant` directives
37+
- impl-build-vite : `@tailwindcss/vite` plugin (v4) or PostCSS (v3), HMR, content config
38+
- impl-build-postcss : `postcss.config.js`, autoprefixer pairing, production purge
39+
- impl-build-cli : standalone `tailwindcss` CLI for non-Node builds
40+
- impl-build-nextjs : App Router integration, RSC compatibility, fonts pipeline
41+
- impl-build-astro : `@astrojs/tailwind` vs Vite plugin, scoped vs global
42+
- impl-plugins-official : `@tailwindcss/typography`, `@tailwindcss/forms`, `@tailwindcss/container-queries`, `@tailwindcss/aspect-ratio`
43+
- impl-plugins-custom : `plugin()` API, `addUtilities`, `addComponents`, `matchUtilities`, theme access
44+
- impl-apply-directive : `@apply` use cases vs anti-patterns, component classes, `@layer` placement
45+
- impl-tailwind-merge : `tailwind-merge` for class deduplication (shadcn/ui pattern), `clsx` interop
46+
- impl-migration-v3-v4 : automated upgrade tool, manual breaking changes, dual-version strategy
2947

3048
### Errors
31-
32-
- ...
49+
- errors-utility-soup : long class lists, when to extract components vs accept utility-soup, lint patterns
50+
- errors-build-failures : content path misses, JIT not picking classes, dynamic class detection failure
51+
- errors-purge-issues : production CSS missing classes, safelist usage, dynamic class anti-patterns
52+
- errors-specificity : `@apply` ordering, `@layer` conflicts, important-modifier `!`, plugin-order
53+
- errors-v4-migration : common upgrade pitfalls, deprecated utilities, color-format changes
3354

3455
### Agents
35-
36-
- ...
56+
- agents-validator : cross-skill consistency checker, classname linter, anti-pattern detector
3757

3858
## Estimated Skill Count
3959

40-
TODO
60+
| Category | Estimated |
61+
|----------|-----------|
62+
| core | 3 |
63+
| syntax | 7 |
64+
| impl | 13 |
65+
| errors | 5 |
66+
| agents | 1 |
67+
| **Total** | **~29** |
68+
69+
Final count adjusted after Phase 2 research (merges/drops/splits in Refinement Decisions table).
70+
71+
## Cross-Package Boundaries
72+
73+
- **shadcn/ui** (companion pkg) : Tailwind is required dependency. Skills here MUST stay tech-agnostic for utility patterns. shadcn-specific class composition lives in shadcn pkg, but `tailwind-merge` usage lives here (utility-level tool).
74+
- **frontend-design** (companion pkg) : design-system thinking + visual aesthetics live there. Token-level scale definitions live here.
75+
- **Vite** (companion pkg) : Vite-plugin setup mentioned in impl-build-vite, but deep Vite config patterns live in Vite pkg. Skill here covers Tailwind side only.
76+
77+
## Open Questions for Phase 2
78+
79+
1. Does v4.0 still support `tailwind.config.js` for back-compat, or CSS-first only?
80+
2. Container queries : v4 built-in vs v3 plugin behavior differences?
81+
3. `@apply` deprecation status in v4?
82+
4. Color format defaults : v4 OKLCH vs v3 HSL/RGB?
83+
5. Plugin API stability v3 → v4?
84+
6. Migration tool coverage : what does it auto-fix vs manual?
4185

4286
## Next : Phase 2 Deep Research
4387

44-
After this raw masterplan is committed, dispatch research-agent per topic-cluster to produce `docs/research/vooronderzoek-tailwind.md`.
88+
Dispatch research-agent to produce `docs/research/vooronderzoek-tailwind.md` (>=2000 words, WebFetch-verified against SOURCES.md URLs, Newly Discovered Sub-Topics section).

0 commit comments

Comments
 (0)