Catalog npm
Back to packageRELEASE DETAILS

0.1.5

npm

@0x-jerry/unocss-preset-brand

```sh npm i @0x-jerry/unocss-preset-brand -D ```

Published1 Mar 2025
Direct dependencies11
Transitive dependenciesNot calculated

README

Current package documentation

Uno Preset Brand

Install

npm i @0x-jerry/unocss-preset-brand -D
import { defineConfig, presetUno } from 'unocss'
import { presetBrand } from '@0x-jerry/unocss-preset-brand'

export default defineConfig({
  presets: [
    presetUno(),
    presetBrand({
      brand: {
        // You can use any color that is defined in other presets, here is `presetUno`,
        // which uses the same colors as `tailwind`, reference: https://tailwindcss.com/docs/customizing-colors
        primary: 'teal',
        gray: 'gray'
      }
    }),
  ],
})

Usage

<div class="text-b-primary">
  Primary Color
</div>

<div class="border-1 border-solid border-b-primary">
  Use primary color with border
</div>

<div class="text-b-gray">
  Gray Color
</div>

Change brand color at runtime

import { changeBrand } from '@0x-jerry/unocss-preset-brand/runtime'

changeBrand({
  primary: 'rose',
  gray: 'zinc'
})

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 11

Native requirements
11 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
lodash-es
Environment
{
  "local_name": "lodash-es",
  "alias": false,
  "peer_metadata": null
}
^4.17.21runtime
@unocss/core
Environment
{
  "local_name": "@unocss/core",
  "alias": false,
  "peer_metadata": null
}
66.1.0-beta.3runtime
@0x-jerry/utils
Environment
{
  "local_name": "@0x-jerry/utils",
  "alias": false,
  "peer_metadata": null
}
^4.2.2runtime
tsx
Environment
{
  "local_name": "tsx",
  "alias": false,
  "peer_metadata": null
}
^4.19.3development
tsup
Environment
{
  "local_name": "tsup",
  "alias": false,
  "peer_metadata": null
}
^8.4.0development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
^3.0.7development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.8.2development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^22.13.8development
@types/lodash-es
Environment
{
  "local_name": "@types/lodash-es",
  "alias": false,
  "peer_metadata": null
}
^4.17.12development
@0x-jerry/x-release
Environment
{
  "local_name": "@0x-jerry/x-release",
  "alias": false,
  "peer_metadata": null
}
^2.2.2development
@vitest/coverage-v8
Environment
{
  "local_name": "@vitest/coverage-v8",
  "alias": false,
  "peer_metadata": null
}
^3.0.7development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "cf90230f2440cbfe48384d07068b48b39a4d22ce",
  "tarball": "https://registry.npmjs.org/@0x-jerry/unocss-preset-brand/-/unocss-preset-brand-0.1.5.tgz",
  "fileCount": 7,
  "integrity": "sha512-oOuYnTOkiDVcrFnDBIiABz5raSVh+MweEVrVnBVQ2g1NicTmviPYa50yHq4UBe07Z9+gRzgvt21acVFQesCuvg==",
  "signatures": [
    {
      "sig": "MEUCIQDMO0865y4XDzYbK4ERh/M9KaDIvdRwUNvEw0rQpF+FagIgc3TL/A+JYrfZnuk6coKebgswGRQiZq/1aVlSZHzf85U=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 7834
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:16 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:3dfa343a4aff89c77c4bd9cbc57ee89ccd678b2b422115c159c63fbf26ea4c5b

Other collected versions

0.1.622 Apr0.1.428 May0.1.313 Apr0.1.213 Apr0.1.11 Apr0.1.031 MarView all collected versions →