Skip to content

Commit

Permalink
feat(unocss-preset): renamed preset to match current project naming
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
shorwood committed Apr 26, 2024
1 parent 82b9bca commit c87eb1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/unocss-preset/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<object, PresetHsjmOptions> = (options = {}) => ({
export const presetUnshared: PresetFactory<object, PresetUnshared> = (options = {}) => ({
name: '@hsjm/unocss-preset',
options,
rules: Object.values(RULES),
variants: Object.values(VARIANTS),
shortcuts: Object.values(SHORTCUTS),
theme: {
colors: {
Expand All @@ -21,5 +22,4 @@ export const presetHsjm: PresetFactory<object, PresetHsjmOptions> = (options = {
landing: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)',
},
},
variants: Object.values(VARIANTS),
})

0 comments on commit c87eb1b

Please sign in to comment.