GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sepps-workshop/sepps-workshop-powershell: Sepp’s Workshop: a dark PowerShell theme (PSReadLine and $PSStyle) on sepp.med Darkblue, WCAG AA verified

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
.githooks
.githooks
 
 
.github
.github
 
 
SeppsWorkshopPowerShell
SeppsWorkshopPowerShell
 
 
docs/superpowers
docs/superpowers
 
 
images
images
 
 
scripts
scripts
 
 
src
src
 
 
themes
themes
 
 
.claudeignore
.claudeignore
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.mjs
build.mjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

Sepp, the blue robot, assembling code blocks with a wrench in his workshop

Sepp’s Workshop for PowerShell

WCAG AA MIT license

Hi, I’m Sepp, the small blue robot from sepp.med. This is the theme I built for PowerShell: one dark colour theme in the sepp.med colours, with Sunset yellow as the accent. It colours what you type (PSReadLine: syntax highlighting, predictions, the selection) and what PowerShell prints by itself ($PSStyle: errors, warnings, table headers, directory listings, the progress bar). There are no variants and nothing to configure: this is the one theme.

The colours come from the Sepp’s Workshop design system, whose build refuses to ship a text colour that fails WCAG AA on its background. That includes the text on a selection and on the selected row of the prediction list.

Requirements

PowerShell 7.2 or later. The theme uses $PSStyle, which arrived in that release. On an older host, Windows PowerShell 5.1 included, the script prints a warning and changes nothing, and the module refuses to load.

PowerShell 7.2 itself ships PSReadLine 2.1.0, which does not know the two colours of the prediction list. Everything else still applies. To get those two as well, check (Get-Module PSReadLine).Version and upgrade:

Install-Module -Name PSReadLine -MinimumVersion 2.2.2 -Force -SkipPublisherCheck

Install

Clone the repository:

git clone https://github.com/sepps-workshop/sepps-workshop-powershell.git

On Windows, clone it to a local drive. PowerShell's default execution policy there, RemoteSigned, refuses an unsigned script from a network path, and a folder inside WSL (\\wsl.localhost\…) counts as one. My humans found that out so you do not have to.

The theme is switched on in your profile, the script PowerShell runs at the start of every session. If you have none yet, this creates it:

if (-not (Test-Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force }

Then dot-source the theme from your $PROFILE, with the path of your clone:

. C:\path\to\sepps-workshop-powershell\themes\sepps-workshop.ps1

Start a new session, and that is it. You do not need Node.js: the script is already built.

As a module

The clone also holds the same theme as a module, if you would rather call a command than dot-source a file. In your $PROFILE:

Import-Module C:\path\to\sepps-workshop-powershell\SeppsWorkshopPowerShell
Set-SeppsWorkshopTheme

Set-SeppsWorkshopTheme takes no arguments. Verb, hyphen, noun, as PowerShell tradition demands. The module is not on the PowerShell Gallery; it is loaded from your clone.

Update

git pull

Run it in the clone. The next session has the new colours.

Uninstall

Remove the lines from your $PROFILE, start a new session and delete the clone.

Recommended companions

A shell theme is one layer of several. Here is what goes well with it.

  • Terminal colours: PowerShell colours the command line and its own output, not the terminal. The theme expects the dark blue terminal background of the design system (#14284c, a shade darker than Darkblue) and looks best with the sixteen Sepp’s Workshop ANSI colours. Sepp’s Workshop for Windows Terminal sets both, and the embedded terminal of Sepp’s Workshop for VS Code has them too. Every colour is chosen and checked for that background. On another dark background the selection and the selected prediction will look off, and on a light one the text is hard to read.
  • Font: themes cannot ship fonts. The design system recommends JetBrains Mono, or JetBrainsMono Nerd Font if your prompt shows icons.
  • Prompt: the theme does not touch your prompt. For a Starship prompt in the same colours there is Sepp’s Workshop for Starship.
  • Another shell: Sepp’s Workshop for fish colours a fish command line from the same roles.

How it is built

The script and the module are generated. The design system says what colour a command, a parameter or a warning is, and lists the PSReadLine keys and $PSStyle properties each of those roles feeds. This repository turns that list into PowerShell. It contains no colour value of its own, and a test fails if one appears. Both install paths run the same statements.

A few things follow from the palette and are deliberate:

  • Commands are cyan-blue, not the accent: the cursor is already yellow, and a typed command is a call.
  • Comments and inline predictions share a colour. Comments are italic, which tells them apart.
  • A selection is a light Sunset tint and draws its text in one colour, the plain text colour, at 7:1. PSReadLine does not keep syntax colours inside a selection, so the theme does not pretend it does.
  • The selected row of the prediction list gets a background only; its text keeps its own colours.
  • Red is a signal only: errors, on the command line and in the output.
  • PowerShell cannot blend colours, so the backgrounds of the selection and of the selected prediction are computed for that terminal background.

Not set by the theme

The design system has no role for these, so the theme leaves them at PowerShell's defaults on purpose:

  • PSReadLine: ListPredictionTooltip
  • $PSStyle.Formatting: FeedbackName, FeedbackText, FeedbackAction
  • $PSStyle.FileInfo: Extension

If you want one of them styled, set it yourself after the theme's line in your $PROFILE.

Contributing

You need Node.js 20 or later, and PowerShell 7 for the tests (pwsh, or pwsh.exe from WSL).

npm install
npm run build   # regenerates themes/, SeppsWorkshopPowerShell/ and images/ from @sepps-workshop/design-system
npm test

The files under themes/ and SeppsWorkshopPowerShell/ are generated; edit src/templates.mjs and rebuild. The tests apply the theme in a PowerShell started without your profile, so they do not touch your own session. To try a local build for real, dot-source themes/sepps-workshop.ps1.

If a colour looks wrong, or two things are hard to tell apart, the cause is almost always in the design system and not in this port. Please open the issue there. A mapping mistake (the right colour on the wrong key) belongs here.

License

MIT. See LICENSE.

Want to join Sepp’s Workshop?

Sepp, the blue robot, holding a sign that reads Be you – with us!

My humans at sepp.med build and test software for places where a bug is more than an inconvenience: medical devices, cars, aircraft. They have been doing it since 1980, as a family-run company in the Nuremberg metropolitan region.

Do you care whether a contrast ratio is 4.4 or 4.5? Did you read this README all the way to the bottom? Then you would get on well with them. Have a look at the open positions, or send a speculative application if none of them fits yet. I will keep the workbench tidy until you arrive.

Be you – with us.

About

Sepp’s Workshop: a dark PowerShell theme (PSReadLine and $PSStyle) on sepp.med Darkblue, WCAG AA verified

github.com/sepps-workshop/sepps-workshop-powershell/releases

Topics

colour-schemedark-themepowershellpsreadlinesepps-workshopthemewcag

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.