konfeti - v0.6.0
    Preparing search index...

    Variable KonfetiPalettesConst

    KonfetiPalettes: {
        AUTUMN: readonly [
            "#d35400",
            "#e67e22",
            "#f1c40f",
            "#a0522d",
            "#8b0000",
            "#c0392b",
        ];
        CANDY: readonly [
            "#ff6fb5",
            "#ff9ecd",
            "#b5a2ff",
            "#7ee8fa",
            "#fff47d",
            "#ffb86f",
        ];
        CLASSIC: readonly [
            "#26ccff",
            "#a25afd",
            "#ff5e7e",
            "#88ff5a",
            "#fcff42",
            "#ffa62d",
            "#ff36ff",
        ];
        FOREST: readonly [
            "#1b4332",
            "#2d6a4f",
            "#40916c",
            "#74c69d",
            "#b7e4c7",
            "#8b5a2b",
        ];
        GOLD: readonly [
            "#ffd700",
            "#ffcc33",
            "#f5b700",
            "#e6be8a",
            "#fff1b8",
            "#c9a227",
        ];
        MONOCHROME: readonly [
            "#ffffff",
            "#e5e5e5",
            "#bdbdbd",
            "#8a8a8a",
            "#4d4d4d",
        ];
        NEON: readonly [
            "#39ff14",
            "#ff073a",
            "#00f0ff",
            "#ff00ff",
            "#fff01f",
            "#ff6ec7",
        ];
        OCEAN: readonly [
            "#006994",
            "#0096c7",
            "#48cae4",
            "#90e0ef",
            "#caf0f8",
            "#00b4d8",
        ];
        PASTEL: readonly [
            "#ffd1dc",
            "#ffe4b5",
            "#fffacd",
            "#d4f0c0",
            "#c1e1ff",
            "#e0c3fc",
        ];
        RAINBOW: readonly [
            "#ff0000",
            "#ff8000",
            "#ffff00",
            "#00c000",
            "#0080ff",
            "#8000ff",
        ];
        WINTER: readonly ["#ffffff", "#e8f4ff", "#b3dcff", "#7fb8e6", "#c0c0c0"];
    } = ...

    Built-in Color Themes. Ready-made color lists for colors (on paper or any shape), one per member. Plain read-only data: use one as is, mix two, or spread one into your own list.

    Type Declaration

    • ReadonlyAUTUMN: readonly ["#d35400", "#e67e22", "#f1c40f", "#a0522d", "#8b0000", "#c0392b"]

      Autumn. Burnt orange, amber, rust and deep red — falling leaves (try form: "leaf").

    • ReadonlyCANDY: readonly ["#ff6fb5", "#ff9ecd", "#b5a2ff", "#7ee8fa", "#fff47d", "#ffb86f"]

      Candy. Sweet pinks, lilac, mint and lemon.

    • ReadonlyCLASSIC: readonly [
          "#26ccff",
          "#a25afd",
          "#ff5e7e",
          "#88ff5a",
          "#fcff42",
          "#ffa62d",
          "#ff36ff",
      ]

      Classic. The library's default mix of bright confetti colors.

    • ReadonlyFOREST: readonly ["#1b4332", "#2d6a4f", "#40916c", "#74c69d", "#b7e4c7", "#8b5a2b"]

      Forest. Greens from pine to lime, with a touch of bark brown.

    • ReadonlyGOLD: readonly ["#ffd700", "#ffcc33", "#f5b700", "#e6be8a", "#fff1b8", "#c9a227"]

      Gold. Warm golds and champagne for awards, anniversaries and "premium" moments.

    • ReadonlyMONOCHROME: readonly ["#ffffff", "#e5e5e5", "#bdbdbd", "#8a8a8a", "#4d4d4d"]

      Monochrome. White to charcoal grays — elegant on colored backgrounds.

    • ReadonlyNEON: readonly ["#39ff14", "#ff073a", "#00f0ff", "#ff00ff", "#fff01f", "#ff6ec7"]

      Neon. Saturated glowing colors; pair with blendMode: "lighter" on dark backgrounds.

    • ReadonlyOCEAN: readonly ["#006994", "#0096c7", "#48cae4", "#90e0ef", "#caf0f8", "#00b4d8"]

      Ocean. Deep to pale blues and teals.

    • ReadonlyPASTEL: readonly ["#ffd1dc", "#ffe4b5", "#fffacd", "#d4f0c0", "#c1e1ff", "#e0c3fc"]

      Pastel. Soft, light tints for baby showers, weddings and calm celebrations.

    • ReadonlyRAINBOW: readonly ["#ff0000", "#ff8000", "#ffff00", "#00c000", "#0080ff", "#8000ff"]

      Rainbow. The six spectrum colors in order (try colorMode: "sequence").

    • ReadonlyWINTER: readonly ["#ffffff", "#e8f4ff", "#b3dcff", "#7fb8e6", "#c0c0c0"]

      Winter. Whites, ice blues and silver for snow and holiday scenes.

    import { Konfeti, KonfetiPalettes } from "konfeti";

    Konfeti.fire({ paper: { colors: KonfetiPalettes.PASTEL } });
    Konfeti.fire({ paper: { colors: [...KonfetiPalettes.GOLD, "#ffffff"] } });
    Konfeti.fire({ shapes: [{ type: "star", colors: KonfetiPalettes.NEON }] });