Skip to content

Commit 86945aa

Browse files
committed
feat: add @unocss/preset-wind4 dependency and update related imports
1 parent 2b16ab5 commit 86945aa

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

packages/nimiq-css/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"dependencies": {
3939
"@iconify/utils": "catalog:",
4040
"@unocss/preset-web-fonts": "catalog:",
41+
"@unocss/preset-wind4": "^66.1.2",
4142
"nimiq-icons": "workspace:*",
4243
"ts-cssjson": "catalog:",
4344
"unocss": "catalog:"

packages/nimiq-css/src/unocss/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { LocalFontProcessorOptions } from '@unocss/preset-web-fonts/local'
2+
import type { Theme } from '@unocss/preset-wind4'
23
import type { CSSObject, DynamicRule, Preflight, Preset, Rule } from 'unocss'
3-
import type { Theme } from 'unocss/preset-mini'
44
import type { NimiqColor } from './colors'
55
import type { NimiqIconsOptions } from './icons'
66
import { existsSync, readFileSync } from 'node:fs'
@@ -414,15 +414,15 @@ export const presetNimiq = definePreset((options: NimiqPresetOptions = {}) => {
414414
variants,
415415
theme: {
416416
colors,
417-
fontFamily: {
417+
font: {
418418
sans: 'Mulish',
419419
mono: 'Fira Code',
420420
},
421-
boxShadow: {
421+
shadow: {
422422
DEFAULT: 'var(--nq-shadow)',
423423
lg: 'var(--nq-shadow-lg)',
424424
},
425-
easing: {
425+
ease: {
426426
nq: 'var(--nq-ease)',
427427
},
428428
},

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)