Skip to content

Link Phosphorous design system into global.css#74

Merged
jaypatrick merged 2 commits into
mainfrom
claude/phosphorous-publish-integrate-4dso6n
Jul 1, 2026
Merged

Link Phosphorous design system into global.css#74
jaypatrick merged 2 commits into
mainfrom
claude/phosphorous-publish-integrate-4dso6n

Conversation

@jaypatrick

Copy link
Copy Markdown
Member

Summary

  • Add jk-dot-com/jk.com-design-system as a git submodule at vendor/phosphorous (pinned to main), per that repo's INTEGRATION.md
  • Replace the design tokens and utility classes inlined in src/styles/global.css with a single @import "../../vendor/phosphorous/styles.css"
  • @theme@theme inline so Tailwind's generated utilities (hover:text-cyan, font-heading, duration-normal, …) read tokens straight from the design system's :root custom properties instead of duplicating hex/value literals
  • global.css shrinks from 464 to 214 lines; the design system is now the single source of truth for colors, typography, spacing, and shared utility classes (.btn, .chip, .glow-border, .iridescent, .section-label, .gradient-text, .grid-overlay)

Kept in global.css — no design-system equivalent (dropping would change rendering)

  • @keyframes glitch-1 / glitch-2 — used directly by Hero.svelte and 404.astro; the design system only ships prefixed phos-glitch-1/2 for its own internal use
  • .gradient-text's text-static pulse animation — the design system's .gradient-text is static; re-applied the site's existing animation on top of the design-system class
  • .animate-on-scroll, .skip-link, .prose (blog content styling) — not shipped by the design system at all

Dropped as dead code (not referenced anywhere in src/)

  • Unprefixed flicker, scan-line, fade-up, pulse-glow keyframes
  • The old local .iridescent rule — superseded by the design system's version, which is intentionally more pronounced per its own CHANGELOG.md

Test plan

  • Compiled global.css with @tailwindcss/cli and confirmed .hover\:text-cyan, .font-heading, .glow-border, and .gradient-text (with the re-applied animation) all generate correctly against the design system's tokens
  • Visual smoke test of the live site (hero glitch, gradient text pulse, glow borders, iridescent shimmer, blog .prose styling)

Generated by Claude Code

claude added 2 commits July 1, 2026 02:57
Add jk.com-design-system as a git submodule (vendor/phosphorous, pinned
to main / v1.0.0) and replace the design tokens and utility classes
inlined in global.css with a single @import of its styles.css, per
INTEGRATION.md. @theme becomes @theme inline so Tailwind's generated
utilities (hover:text-cyan, font-heading, etc.) read the tokens
straight from the design system instead of duplicating values.

Keeps site-specific pieces that have no design-system equivalent:
glitch-1/glitch-2 keyframes, the gradient-text pulse animation,
.animate-on-scroll, .skip-link, and .prose (blog content).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FG2snAikKk6YLFnxTS85ik
Without submodules: true, vendor/phosphorous is an empty directory in
CI and the @import in global.css fails to resolve.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FG2snAikKk6YLFnxTS85ik
@jaypatrick jaypatrick requested a review from a team July 1, 2026 03:01
@jaypatrick jaypatrick self-assigned this Jul 1, 2026
@jaypatrick jaypatrick added the enhancement New feature or request label Jul 1, 2026
@jaypatrick jaypatrick added this to the launch milestone Jul 1, 2026
@jaypatrick jaypatrick marked this pull request as ready for review July 1, 2026 03:02
Copilot AI review requested due to automatic review settings July 1, 2026 03:02
@jaypatrick jaypatrick merged commit 931f2dc into main Jul 1, 2026
8 checks passed
@jaypatrick jaypatrick deleted the claude/phosphorous-publish-integrate-4dso6n branch July 1, 2026 03:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to make the Phosphorous design system the single source of truth for global design tokens and shared utility classes by importing it into global.css and mapping tokens into Tailwind’s CSS-first @theme inline configuration. It also updates the deploy workflow to ensure submodules are checked out in CI.

Changes:

  • Import Phosphorous design-system CSS from vendor/phosphorous/styles.css and remove locally inlined design tokens / shared utility classes from src/styles/global.css.
  • Switch Tailwind token configuration to @theme inline so generated utilities resolve values from design-system :root custom properties.
  • Enable submodule checkout in the deploy workflow.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/styles/global.css Replaces local tokens/utilities with a design-system import + @theme inline, retaining a small set of site-specific animations/utilities.
.gitmodules Adds the Phosphorous design system as a git submodule under vendor/phosphorous.
.github/workflows/deploy.yml Updates checkout step to fetch submodules in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/styles/global.css
Comment on lines 9 to +10
@import "tailwindcss";
@import "../../vendor/phosphorous/styles.css";
Comment thread src/styles/global.css
Comment on lines +92 to 101
@media (prefers-reduced-motion: reduce) {
.gradient-text {
animation: none;
}
/* Suppress Tailwind's bounce utility (used in Hero's scroll indicator) */
.animate-bounce {
animation: none;
}
}

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants