Catalog npm
Back to packageRELEASE DETAILS

0.1.3

npm

@0x-jerry/unocss-preset-brand

## Install

Published13 Apr 2024
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
}
^0.59.2runtime
@0x-jerry/utils
Environment
{
  "local_name": "@0x-jerry/utils",
  "alias": false,
  "peer_metadata": null
}
^2.1.2runtime
tsx
Environment
{
  "local_name": "tsx",
  "alias": false,
  "peer_metadata": null
}
^4.7.2development
tsup
Environment
{
  "local_name": "tsup",
  "alias": false,
  "peer_metadata": null
}
^8.0.2development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
^1.5.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.4.5development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^20.12.7development
@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
}
^1.0.0development
@vitest/coverage-v8
Environment
{
  "local_name": "@vitest/coverage-v8",
  "alias": false,
  "peer_metadata": null
}
^1.5.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "7257feb87d5a5865426fc592d18316016011fa6c",
  "tarball": "https://registry.npmjs.org/@0x-jerry/unocss-preset-brand/-/unocss-preset-brand-0.1.3.tgz",
  "fileCount": 7,
  "integrity": "sha512-g44XXPlVNuW5dt/EgZpdkCVvSx1G/eFJXx/fQLS3TyBkm9oOqtnVxb/M5/dLoS3RMRqwC1rHVSB5xaRj02PxPw==",
  "signatures": [
    {
      "sig": "MEUCICMSVmfbuCWYyyauBZcjPS46C4HKtTK1U6or1NHW+J7fAiEA1Pw6vbu6oLm4IXh/0LrnTBdKrYks7me0/le5UzRgn7E=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 7542
}

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:ce000034cd2e6914c20a5c2f4ca2da19f2877bf1da48ba0a4e3eaf4edb56bbbf

Other collected versions

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