@warp-ds/preset-migrate

1.1.2 • Public • Published

Warp DS Migrate plugin - a UnoCSS preset

This plugin can be useful when migrating from Fabric to Warp Design System. It will detect all deprecated CSS utility classes and print warnings with useful hints in the terminal.

Use in the application

Install the plugin

This UnoCSS preset is available via NPM.

npm install -D @warp-ds/preset-migrate

Add the plugin to your Uno config

import { defineConfig } from 'unocss';
import { presetWarp } from '@warp-ds/uno';
import { presetMigrate } from '@warp-ds/preset-migrate';

export default defineConfig({
  presets: [
    presetMigrate(),
    presetWarp()
  ]
});

Use through command line

You can also check if a CSS utility class is deprecated using the pnpm dev (or node index.js) command in your terminal.

Example

pnpm dev focus-ring

This example prints the following output:

[REPLACED] focus-ring -> focusable ->

Releases

This project uses Semantic Release to automate package publishing when pushing changes to the master branch.

Follow conventional commits when making changes. The version published will depend on your commit message structure. You can use commitizen to help follow this structure:

npm install -g commitizen

When installed, you should be able to type cz or git cz in your terminal to commit your changes (replacing git commit).

Add and commit with Commitizen

Readme

Keywords

none

Package Sidebar

Install

npm i @warp-ds/preset-migrate

Weekly Downloads

236

Version

1.1.2

License

Apache-2.0

Unpacked Size

25 kB

Total Files

8

Last publish

Collaborators

  • imprashast
  • trygve-lie
  • annarybkina
  • magnuh
  • digitalsadhu
  • balbuhhha
  • pearofducks