Spyglass design system

The brand, the library and the rules in one CLI.

Tokens, logos, fonts, the brand light and the ASCII texture, and 158 components in React and as web components. Every value traces to the brand guidelines.

Install the CLI

Run once from the project root. init adds the brand stylesheet, the Tailwind theme, the fonts and the agent instructions.

npm install --save-dev github:anwarlemu/spyglass-brand-cli#release
npx spyglass-ds init

Add components

React apps get the React files; every other stack gets web components that carry their own styles. Names resolve however they are typed.

npx spyglass-ds add button card search-bar
npx spyglass-ds view search-bar

Draw the brand graphics

The light and the texture are generated from a seed, never pasted as images: the same seed draws the same picture in a page, a component and a file.

npx spyglass-ds light --variant band --seed 1 --out band.svg
npx spyglass-ds ascii --seed 4 --out texture.svg

For agents

manifest lists every command, template, size, component, token and rule. A name that is not in it is an error, never a guess.

npx spyglass-ds manifest --json

Components

Product

Site

Brand

Blocks

Pages

Source: github.com/anwarlemu/spyglass-brand-cli