Bluesky app fork with some witchin' additions 馃挮
witchsky.app
bluesky
fork
client
1export const BLUE_HUE = 211
2export const RED_HUE = 346
3export const GREEN_HUE = 152
4
5/**
6 * Smooth progression of lightness "stops" for generating HSL colors.
7 */
8export const COLOR_STOPS = [
9 0, 0.05, 0.1, 0.15, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.85, 0.9, 0.95, 1,
10]
11
12export function generateScale(start: number, end: number) {
13 const range = end - start
14 return COLOR_STOPS.map(stop => {
15 return start + range * stop
16 })
17}
18
19export const defaultScale = generateScale(6, 100)
20// dim shifted 6% lighter
21export const dimScale = generateScale(12, 100)