Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cookiiies

jonasfroeller409MIT2.3.0TypeScript support: included

A cookie popup-, banner- and sheet focused on accessibility and ui/ux.

svelte-component, cookie-banner

readme

Cookiiies

npm total npm downloads latest npm release npm package license

semantic-release: svelte Renovate enabled

Developing

Once you've created a project and installed dependencies with pnpm install, start a development server:

pnpm run dev

# or start the server and open the app in a new browser tab
pnpm run dev -- --open

Everything inside src/lib is part of your library, everything inside src/routes can be used as a showcase or preview app.

Building

To build your library:

pnpm run package

To create a production version of your showcase app:

pnpm run build

You can preview the production build with pnpm run preview.

To deploy the app, you may need to install an adapter for your target environment.

Manual Publishing

npm publish

Releasing

Semantic Release GitHub Actions

Package Updates

Renovate Configuration Options

changelog

2.3.0 (2025-05-27)

Features

  • cookies: make cookie components customizable (text, topics, styling) (8244dff)

2.2.0 (2025-05-27)

Features

  • styling: implement 'cc:' prefix for Tailwind CSS classes to prevent collisions (7ff0e52)

2.1.0 (2025-05-27)

Features

  • styling: bundle TailwindCSS directly in build output (7828c34)

2.0.0 (2025-05-27)

Features

  • tailwind: upgrade to Tailwind CSS v4 (b1a66da)

BREAKING CHANGES

  • tailwind: Migrated the project from Tailwind CSS v3 to v4. This major upgrade includes:
  • Migration of Tailwind configuration from tailwind.config.js to src/app.css using @theme, @utility, and @keyframes.
  • Deletion of tailwind.config.js and update of postcss.config.cjs.
  • Integration of @tailwindcss/vite plugin.
  • Removal of autoprefixer as it's now built into Tailwind CSS v4.
  • Adjustments to src/app.css including cleanup of redundant v3 compatibility styles.

This version introduces breaking changes from Tailwind CSS v3. All UI components and styles require thorough review and testing to ensure compatibility and address any visual regressions or behavior changes due to updated utility names, default values, and Preflight styles.

1.1.0 (2025-05-26)

Features

  • cookies: conditionally render cookie consent components depending on cookie presence and improve close behavior (e43dd66)

1.0.0 (2025-05-26)

Bug Fixes

  • packaging: ensure runtime dependencies are correctly declared (ef7036b)