From c87eb1b003f0ea6ba9cf2699745dbbe879c3efde Mon Sep 17 00:00:00 2001 From: Stanley Horwood Date: Fri, 26 Apr 2024 06:34:24 +0200 Subject: [PATCH] feat(unocss-preset): renamed preset to match current project naming Renamed the preset from `presetHsjm` to `presetUnshared` and updated the interface from `PresetHsjmOptions` to `PresetUnshared`. This change aligns the preset's name with the current project naming conventions, removing the leftover name from the old project. Additionally, adjusted the order of properties within the preset to logically group related configurations, enhancing the readability and maintainability of the code. --- packages/unocss-preset/preset.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/unocss-preset/preset.ts b/packages/unocss-preset/preset.ts index 51e921d1..32ae3f85 100644 --- a/packages/unocss-preset/preset.ts +++ b/packages/unocss-preset/preset.ts @@ -4,12 +4,13 @@ import * as SHORTCUTS from './shortcuts' import * as RULES from './rules' import { colorsBrand, colorsNord } from './constants' -export interface PresetHsjmOptions {} +export interface PresetUnshared {} -export const presetHsjm: PresetFactory = (options = {}) => ({ +export const presetUnshared: PresetFactory = (options = {}) => ({ name: '@hsjm/unocss-preset', options, rules: Object.values(RULES), + variants: Object.values(VARIANTS), shortcuts: Object.values(SHORTCUTS), theme: { colors: { @@ -21,5 +22,4 @@ export const presetHsjm: PresetFactory = (options = { landing: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)', }, }, - variants: Object.values(VARIANTS), })