Skip to content
buttery

v1.0.0

Source on GitHub

Version 1.0.0

Palettes

buttery's gradient and solid color presets, for backdrops, covers and anything a person picks a color for.

The palettes are 24 gradient presets and the solid colors taken from them, made to sit well together. Use them where a person picks a color, such as a card's backdrop or a workspace's cover, rather than for interface colors, which come from the color tokens.

Use a preset

Import them from @butteryui/core/palettes. gradientCss turns a gradient into a CSS background, blended in OKLab at 135ยฐ unless you pass another angle:

tsx

import type { ReactElement } from "react";
import { gradientCss, gradients } from "@butteryui/core/palettes";

const LILAC = gradients.find((preset) => preset.id === "lilac");

export function Cover(): ReactElement {
  return (
    <div
      className="cover"
      style={{ background: LILAC ? gradientCss(LILAC) : undefined }}
    />
  );
}

SwatchGrid shows the presets as a picker.

The presets

The gradients come in four rows of six. The first three share six hue families, one to a column: butter, apricot, rose, lilac, sky and mint. Every stop shifts lightness, chroma and hue a little toward its neighbor, so the blends stay soft.

RowPresets, by id
Cream pastelscream, peach, blush, lilac, mist, mint
Fresh midshoney, apricot, rose, violet, sky, sea
Deep tonesespresso, rust, plum, ink, navy, forest
Neutrals, from paper to graphitepaper, fog, stone, sand, slate, graphite

The 18 solids are the midpoints of the cream, deep and neutral gradients, mixed in OKLab. Every preset, with its OKLCH and hex values:

Gradients

Creamoklch(0.965 0.035 95) โ†’ oklch(0.9 0.075 75)#fbf4da โ†’ #fcd8a7
Peachoklch(0.94 0.04 62) โ†’ oklch(0.86 0.085 38)#ffe6d1 โ†’ #ffc0ac
Blushoklch(0.94 0.035 15) โ†’ oklch(0.86 0.075 352)#ffe3e5 โ†’ #f9bdd6
Lilacoklch(0.93 0.04 315) โ†’ oklch(0.85 0.08 288)#f2e0fb โ†’ #cac6ff
Mistoklch(0.94 0.03 235) โ†’ oklch(0.86 0.065 210)#d9effd โ†’ #9fdde9
Mintoklch(0.95 0.035 165) โ†’ oklch(0.88 0.07 140)#daf6e9 โ†’ #c0e3b8
Honeyoklch(0.86 0.11 88) โ†’ oklch(0.74 0.15 62)#efcd79 โ†’ #ed9235
Apricotoklch(0.8 0.12 58) โ†’ oklch(0.66 0.16 32)#f8aa6d โ†’ #e36650
Roseoklch(0.78 0.11 10) โ†’ oklch(0.64 0.16 352)#f499a7 โ†’ #d25d96
Violetoklch(0.74 0.12 300) โ†’ oklch(0.56 0.17 280)#b699eb โ†’ #6463d4
Skyoklch(0.8 0.09 235) โ†’ oklch(0.62 0.14 258)#82c7f0 โ†’ #4d86d9
Seaoklch(0.8 0.09 180) โ†’ oklch(0.6 0.11 200)#78d1c0 โ†’ #009298
Espressooklch(0.46 0.05 55) โ†’ oklch(0.3 0.035 40)#6e513d โ†’ #3d2820
Rustoklch(0.52 0.12 38) โ†’ oklch(0.36 0.09 24)#a14c32 โ†’ #642625
Plumoklch(0.42 0.07 340) โ†’ oklch(0.27 0.05 325)#663d59 โ†’ #331d34
Inkoklch(0.4 0.08 275) โ†’ oklch(0.24 0.06 285)#3b4372 โ†’ #1d1a3a
Navyoklch(0.5 0.09 240) โ†’ oklch(0.34 0.075 252)#2b6991 โ†’ #17395d
Forestoklch(0.46 0.06 160) โ†’ oklch(0.3 0.045 175)#38624c โ†’ #10352c
Paperoklch(0.975 0.01 85) โ†’ oklch(0.905 0.022 72)#faf6ef โ†’ #e9ded0
Fogoklch(0.89 0.01 230) โ†’ oklch(0.8 0.016 245)#d4dce0 โ†’ #b6bfc8
Stoneoklch(0.79 0.012 75) โ†’ oklch(0.7 0.016 60)#bfbab2 โ†’ #a69c95
Sandoklch(0.7 0.04 82) โ†’ oklch(0.58 0.05 62)#ab9c83 โ†’ #90745c
Slateoklch(0.55 0.022 245) โ†’ oklch(0.41 0.026 255)#67737e โ†’ #414b59
Graphiteoklch(0.38 0.006 260) โ†’ oklch(0.22 0.004 260)#404246 โ†’ #191b1c

Solids

Creamoklch(0.932 0.054 81.3) ยท #fbe6c0
Peachoklch(0.9 0.061 45.6) ยท #ffd3bf
Blushoklch(0.9 0.054 359.3) ยท #fed0dd
Lilacoklch(0.89 0.059 296.9) ยท #ded3fe
Mistoklch(0.9 0.047 217.8) ยท #bce6f3
Mintoklch(0.915 0.051 148.3) ยท #cdedd0
Espressooklch(0.38 0.042 48.8) ยท #553c2e
Rustoklch(0.44 0.104 32) ยท #82392c
Plumoklch(0.345 0.06 333.8) ยท #4c2d46
Inkoklch(0.32 0.07 279.3) ยท #2c2e56
Navyoklch(0.42 0.082 245.5) ยท #215177
Forestoklch(0.38 0.052 166.4) ยท #244b3c
Paperoklch(0.94 0.016 76.1) ยท #f1eae0
Fogoklch(0.845 0.013 239.2) ยท #c5cdd4
Stoneoklch(0.745 0.014 66.4) ยท #b3aba3
Sandoklch(0.64 0.044 70.9) ยท #9e886f
Slateoklch(0.48 0.024 250.4) ยท #545f6b
Graphiteoklch(0.3 0.005 260) ยท #2c2e30
  • SwatchGrid

    A grid of color and gradient swatches to pick one from, like radio buttons.

  • Colors

    The color tokens every component draws with, by role, in light and dark.