An open API service indexing awesome lists of open source software.

https://github.com/brendon1555/panda-preset-unique-utilities

The base preset utilities for Panda CSS but with unique classNames
https://github.com/brendon1555/panda-preset-unique-utilities

classname css hacktoberfest pandacss styling

Last synced: 4 months ago
JSON representation

The base preset utilities for Panda CSS but with unique classNames

Awesome Lists containing this project

README

          

# :panda_face: PandaCSS preset with a unique className for every utility

Unique className for every utility in `@pandacss/preset-base`. Useful when using atomic styling and you want to avoid conflicts between utilities or setting up deduplication of classes based on properties.

This preset is required when using [@brendon1555/panda-cx-deduplicator](https://github.com/brendon1555/panda-cx-deduplicator)

## Installation

```bash
# npm
npm install -D @brendon1555/panda-preset-unique-utilities

# yarn
yarn add -D @brendon1555/panda-preset-unique-utilities

# pnpm
pnpm add -D @brendon1555/panda-preset-unique-utilities
```

## Usage

Add the preset to your PandaCSS configuration (`panda.config.ts`)
This example assumes you are not using `eject: true` in your PandaCSS configuration as we are extending the utilities included in `@pandacss/preset-base`

```ts
import { defineConfig } from "@pandacss/dev";

import uniqueUtilsPreset from "@brendon1555/panda-preset-unique-utilities";

export default defineConfig({
presets: [
uniqueUtilsPreset,
// Be sure to include the panda preset if you want
// to keep the defaults provided by PandaCSS.
// See: https://panda-css.com/docs/customization/presets
"@pandacss/preset-panda",
],
});
```