Skip to content

Add prompt integrations for Pure and Tide#7

Merged
mvllow merged 3 commits intorose-pine:mainfrom
simono:add-prompt-integrations
Mar 7, 2026
Merged

Add prompt integrations for Pure and Tide#7
mvllow merged 3 commits intorose-pine:mainfrom
simono:add-prompt-integrations

Conversation

@simono
Copy link
Collaborator

@simono simono commented Mar 6, 2026

Summary

  • Add fish_color_base custom variable to all themes (exposes the base palette color)
  • Add conf.d/rose-pine-pure.fish — reactive Pure prompt colors
  • Add conf.d/rose-pine-tide.fish — reactive Tide prompt colors
  • Update README with prompt integration docs, screenshots, and improved installation section
  • Add .nvmrc for build script

How it works

Each conf.d file defines individual --on-variable handlers that map Rosé Pine palette vars (fish_color_rose, fish_color_foam, etc.) to prompt-specific vars (pure_color_*, tide_*). Each handler only fires when its source var actually changes between variants.

Guards:

  • type -q _pure_prompt / type -q tide — skips entirely if the prompt isn't installed
  • set -q on each palette var — skips if no Rosé Pine theme is active

Installation

Zero config — just fisher install rose-pine/fish and set a Rosé Pine theme. If Pure or Tide is installed, their colors are applied automatically.

This replaces the need for separate rose-pine/pure and rose-pine/tide repos.

Related: rose-pine/rose-pine-theme#161

🤖 Generated with Claude Code

simono and others added 2 commits March 6, 2026 22:12
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Exposes the base palette color (main: 191724, moon: 232136, dawn: faf4ed)
as a fish_color_* variable, enabling prompt integrations like Tide to
reactively pick up the value via --on-variable handlers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simono
Copy link
Collaborator Author

simono commented Mar 6, 2026

@mvllow Once this is merged, we can archive/remove the tide/pure repos.

@ThatOneCalculator
Copy link
Member

ThatOneCalculator commented Mar 7, 2026

I don't think the .nvmrc is needed, but otherwise looks good! Also readme should be updated.

@simono
Copy link
Collaborator Author

simono commented Mar 7, 2026

I don't think the .nvmrc is needed, but otherwise looks good! Also readme should be updated.

Thanks for the feedback. I'll update the readme.
People like me need the nvmrc, who don't have a global npm installation to run npx. But we could also gitignore it, if it's annoying.

@simono simono force-pushed the add-prompt-integrations branch from 65f2e9b to 863a2d2 Compare March 7, 2026 11:28
Reactive color configs that automatically apply Rosé Pine palette colors
to Pure and Tide prompts using --on-variable handlers. Colors update
automatically when switching between Rosé Pine theme variants.

Each file guards against the prompt not being installed (type -q) and
against non-Rosé Pine themes (set -q on custom palette vars).

Update README with prompt integration docs, screenshots, and
fish_color_base in the custom variables list.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simono simono force-pushed the add-prompt-integrations branch from 863a2d2 to 5c2be22 Compare March 7, 2026 11:29
@simono
Copy link
Collaborator Author

simono commented Mar 7, 2026

Updated the Readme 😄

@mvllow
Copy link
Member

mvllow commented Mar 7, 2026

Thanks for working on this @simono and thank you @ThatOneCalculator for taking a look. Merging :)

@mvllow mvllow merged commit dbdbc25 into rose-pine:main Mar 7, 2026
@mvllow
Copy link
Member

mvllow commented Mar 7, 2026

Also, as far as the nvmrc, I will be going through our repos one day using our bloom tool and can cleanup that file once npx is no longer required.

@simono simono deleted the add-prompt-integrations branch March 7, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants