包详细信息

@warp-ds/uno

warp-ds3.6kApache-2.02.1.0

How to contribute

自述文件

drive - a UnoCSS preset

How to contribute

If you'd like to contribute to @warp-ds/drive, start by reviewing the contributing guidelines.

Plugin API

development

  • boolean
  • Internal use only - force preflights(resets.css + transform resets) to be excluded and no externalized classes will be processed

skipResets

  • boolean
  • If true forces resets.css to be excluded from preflights

usePixels

  • boolean
  • Internal use only, for use on sites that are incompatible with root REM/font-size changes

externalizeClasses

  • Forces classes in externalClasses to be removed from output

externalClasses

  • A list of CSS classes that should be removed from output

Quick test of utility classes support

In order to generate CSS for utility classes from your terminal, run pnpm dev using the following instructions:

Usage: node dev.js [--cliClasses=string | -c string] [--usePixels] [--externalClasses=string] [--externalizeClasses]

Example:

pnpm dev -c m-2

! Do not use -c when passing negative values, e.g. pnpm dev --cliClasses='-m-2! gap-2'

Migration development

checking fabric classes

  1. Check out the parity project from warp-ds, get dependencies for the project
  2. Link to the parity project from drive's root folder: pnpm link ../parity
  3. Run node checkFabricClasses.js

Releases

This project is continuously published to NPM using a next tag (e.g. 1.1.0-next.1). Anyone needing to use the latest changes of this package can install the next version while waiting for the stable release.

Changelog

Detailed changes for each release can be found in the CHANGELOG file.

License

@warp-ds/drive is available under the Apache-2.0 software license.

更新日志

2.1.0 (2025-02-11)

Bug Fixes

Features

2.1.0-next.2 (2025-02-11)

Features

2.1.0-next.1 (2025-01-22)

Features

2.0.3-next.1 (2025-01-22)

Bug Fixes

2.0.2-next.1 (2024-12-12)

Bug Fixes

2.0.1-next.2 (2024-12-04)

Bug Fixes

2.0.1-next.1 (2024-07-05)

Bug Fixes

2.0.0 (2024-07-03)

Bug Fixes

Features

  • Added leading-none rule to set line-height to 1 (#222) (b8c0092)

BREAKING CHANGES

    • fix(focus-ring): remove deprecated default token in outline color
  • fix(preflights): use v2/resets.css url resets should now come from @warp-ds/css/v2 instead of v1

  • fix(slider): remove deprecated slider rules

  • fix(focus-ring): remove deprecated --w-s-color-border-focused token

  • fix: change unocss into a peerDependency and change to get the latest versions

  • fix: update @warp-ds/eslint-config to latest version, update lint scripts and fix linting errors

2.0.0-next.2 (2024-07-02)

Bug Fixes

  • remove internal.js from rules and test (#227) (048cf61)

2.0.0-next.1 (2024-07-02)

Bug Fixes

BREAKING CHANGES

    • fix(focus-ring): remove deprecated default token in outline color
  • fix(preflights): use v2/resets.css url resets should now come from @warp-ds/css/v2 instead of v1

  • fix(slider): remove deprecated slider rules

  • fix(focus-ring): remove deprecated --w-s-color-border-focused token

  • fix: change unocss into a peerDependency and change to get the latest versions

  • fix: update @warp-ds/eslint-config to latest version, update lint scripts and fix linting errors

1.13.0-next.1 (2024-07-02)

Features

  • Added leading-none rule to set line-height to 1 (#222) (b8c0092)

1.12.1-next.1 (2024-05-27)

Bug Fixes

  • Tweak positioning of list-checked icon (#223) (5f1a13f)

1.12.0 (2024-04-29)

Features

  • support css vars as arbitrary values for margins and paddings (#219) (43d913f)

1.12.0-next.1 (2024-04-26)

Features

  • support css vars as arbitrary values for margins and paddings (#219) (43d913f)

1.11.0 (2024-04-15)

Bug Fixes

  • New svg icon and styling fixes for list-checked (#215) (859dc69)

Features

1.11.0-next.3 (2024-04-15)

Bug Fixes

  • New svg icon and styling fixes for list-checked (#215) (859dc69)

1.11.0-next.2 (2024-04-15)

Features

  • Added rules for break-before and break-after (#217) (b630130)

1.11.0-next.1 (2024-04-15)

Features

1.10.2 (2024-03-28)

Bug Fixes

  • Correct color for spinner background (#212) (5720630)

1.10.2-next.1 (2024-03-27)

Bug Fixes

  • Correct color for spinner background (#212) (5720630)

1.10.1 (2024-03-25)

Bug Fixes

  • Bug fix for elevated surface classes (#210) (7e453dc)

1.10.1-next.1 (2024-03-22)

Bug Fixes

  • Bug fix for elevated surface classes (#210) (7e453dc)

1.10.0 (2024-03-15)

Features

1.10.0-next.2 (2024-03-15)

Features

1.10.0-next.1 (2024-02-28)

Features

1.9.0 (2024-02-21)

Features

1.9.0-next.1 (2024-02-21)

Features

1.8.1 (2024-02-13)

Bug Fixes

  • Remove use of deprecated component tokens (#200) (90c0ea5)

1.8.1-next.1 (2024-02-13)

Bug Fixes

  • Remove use of deprecated component tokens (#200) (90c0ea5)

1.8.0 (2024-02-06)

Features

  • Add support for alpha channel modifier to arbitrary color classes (#198) (c98cc3c)
  • Add support for alpha channel modifier to semantic color classes (#197) (3236a1f)

1.8.0-next.2 (2024-02-06)

Features

  • Add support for alpha channel modifier to arbitrary color classes (#198) (c98cc3c)

1.8.0-next.1 (2024-02-05)

Features

  • Add support for alpha channel modifier to semantic color classes (#197) (3236a1f)

1.7.0 (2024-01-24)

Bug Fixes

  • Use semantic token for spinner color (#195) (f8ec1a3)

Features

  • Add support for arbitrary box-shadow (#194) (984e3d3)

1.7.0-next.1 (2024-01-24)

Features

  • Add support for arbitrary box-shadow (#194) (984e3d3)

1.6.1-next.1 (2024-01-24)

Bug Fixes

  • Use semantic token for spinner color (#195) (f8ec1a3)

1.6.0 (2024-01-16)

Features

  • Add rule for setting background-image to none (#192) (495fdf0)

1.6.0-next.1 (2024-01-15)

Features

  • Add rule for setting background-image to none (#192) (495fdf0)

1.5.0 (2024-01-11)

Bug Fixes

  • Improve arbitrary values handling for border and divide (#186) (882ff69)

Features

1.5.0-next.1 (2024-01-11)

Features

1.4.1-next.1 (2024-01-11)

Bug Fixes

  • Improve arbitrary values handling for border and divide (#186) (882ff69)

1.4.0 (2024-01-04)

Bug Fixes

  • Add support for direction in semantic divide classes (#179) (d825cde)
  • Improve regexps for flex grow/shrink (#185) (808c026)
  • Misc cleanup/fixes for arbitrary values (#182) (c5b47b5)

Features

  • Add missing support for misc arbitrary and semantic colors (#176) (ed6b5bf)
  • Support arbitrary values for background position (#183) (6508312)
  • support arbitrary values for flex-basis, flex-grow, flex-shrink, grid-auto-rows, grid-auto-columns (#180) (d3106cd)
  • support arbitrary values for order, columns and transition-timing (#181) (4116fda)
  • Support arbitrary values for padding, margin, border-radius, gap, translate, top-right-bottom-left (#178) (3dd18b4)

1.4.0-next.8 (2024-01-04)

Bug Fixes

  • Improve regexps for flex grow/shrink (#185) (808c026)

1.4.0-next.7 (2024-01-04)

Features

  • Support arbitrary values for background position (#183) (6508312)

1.4.0-next.6 (2024-01-02)

Bug Fixes

  • Misc cleanup/fixes for arbitrary values (#182) (c5b47b5)

1.4.0-next.5 (2024-01-02)

Features

  • support arbitrary values for order, columns and transition-timing (#181) (4116fda)

1.4.0-next.4 (2024-01-02)

Features

  • support arbitrary values for flex-basis, flex-grow, flex-shrink, grid-auto-rows, grid-auto-columns (#180) (d3106cd)

1.4.0-next.3 (2023-12-14)

Features

  • Support arbitrary values for padding, margin, border-radius, gap, translate, top-right-bottom-left (#178) (3dd18b4)

1.4.0-next.2 (2023-12-13)

Bug Fixes

  • Add support for direction in semantic divide classes (#179) (d825cde)

1.4.0-next.1 (2023-12-13)

Features

  • Add missing support for misc arbitrary and semantic colors (#176) (ed6b5bf)

1.3.0 (2023-11-27)

Features

  • rules: add support for outline color classes (#173) (da3aec9)

1.3.0-next.1 (2023-11-24)

Features

  • rules: add support for outline color classes (#173) (da3aec9)

1.2.0 (2023-11-13)

Features

1.2.0-next.1 (2023-11-13)

Features

1.1.0 (2023-09-19)

Features

1.1.0-next.1 (2023-09-07)

Features

1.0.0 (2023-08-22)

Bug Fixes

  • add 75% to the opacity values (#86) (fa52e6e)
  • add arbitrary width support for border (#88) (2eb8d87)
  • add base styles to preflight (#101) (19ec46b)
  • add bg color options (#76) (980c532)
  • add correct token for the focus ring (#87) (9191bca)
  • add development flag back and externalize our published component classes (#129) (4470892)
  • add font-bold to t1-t6 and use those classes to ref h1-h5 (#146) (1c6a81d)
  • add missing apostrofs (#91) (a28756e)
  • add missing classes Fabric supported (#135) (4ce6033)
  • add px to the arbitrary border width (#93) (c4d17ae)
  • add rules and tests for caret (#84) (fac54a1)
  • add skipResets flag (#142) (a13cbcd)
  • add styling for loading (#77) (87e0e50)
  • Added missing rules for static border colors (#123) (6644a66)
  • aspect-ratio: add rules for aspect-ratio, -video and -square (#150) (f5d1c79)
  • avoid null issue and use empty array instead (#144) (6d56dcd)
  • avoid top-level await in reset (#137) (b35c803)
  • background arbitrary url rule change (#95) (ae70e51)
  • bad comment syntax in preflight (#73) (ae37e8e)
  • be able to use a one-off background image (#89) (12df5a9)
  • border-x|y fix and slider obsolete snapshot fix (#120) (85dfaec)
  • cache the preflight instead of requesting every rebuild (83537ca)
  • Cleanup color classes for text and background color (#127) (1b3d13e)
  • display.js: align order of css for display classes with fabric.css (#147) (aa00cfc)
  • escape current selector for focusable (#122) (00b789b)
  • extend regex for the background arbitrary values (#92) (d908e24)
  • focusable classes (#109) (8e3ca96)
  • focusable, last-child, spinner rules (#110) (40e75cf)
  • height and width shouldn't match without a dash (#83) (3580750)
  • improve arbitrary bg rule (#111) (ea43100)
  • improve syntax to clear the float for the elements after legend (#108) (75f4cac)
  • only support gap from theme (#31) (4d49678)
  • proper handle bg arbitrary url as var (#126) (0ddd0e9)
  • remove @warp-ds/css dep to fix circular dependency (#149) (e351c76)
  • remove a shortcut for the outline-none (#128) (ced819c)
  • remove caret class, will use current (#85) (f87db11)
  • remove input related stuff from preflight (#81) (a5dcb42)
  • Remove old fallback values from box shadows (#140) (da00995)
  • remove resets from preflight and refactor (#106) (3591a3b)
  • Replace arbitrary background class with semantic class for page-container (#138) (ee9c296)
  • restructure html and body styling to make shadow dom styling work (#107) (7eb3e94)
  • shadows: add default box-shadow values to generic shadow classes (#96) (4adb2d6)
  • shadow: update naming of box-shadows (#112) (4405ae5)
  • slider: fix slider bug (#100) (31b9b0c)
  • theme now exports useTheme (#82) (88476fd)
  • throw better errors for users who are missing 'fetch' (#132) (77ba1e2)
  • trigger a new release of alpha.59 (#145) (1ad8465)
  • typography.js: add font-bold to .h1-5 shortcuts (#121) (b84a631)
  • update & align unocss dependencies (#148) (e540d19)
  • Update focus outline to use new semantic color token (#139) (673627d)
  • update vite to 4.2.3 to fix a vulnerability (#152) (929c9af)
  • Updated rules for semantic colors to handle base level token names without ending "default" suffix (#133) (805526d)
  • use #plugin alias in import in checkFabricClasses (6022115)
  • use new css repo for component classes (#143) (b2816b6)
  • workflows: set node v to lts/* and pnpm to 8 (#118) (413058d)
  • Wrong syntax (#69) (b938d3a)

Features

  • Add background, text and border classes for semantic color tokens (#119) (19b5ee9)
  • add css variables as arbitrary values for w and h (#104) (455c4cb)
  • add layout rules and tests for rules (d47d412)
  • add new shortcut for page-container (#114) (8ae08b3)
  • add rules for border and rounded (#19) (48ec500)
  • add rules for focusable classes (#27) (e9f7e08)
  • add rules for outline (#125) (3834087)
  • add rules for shadows (#90) (a0dfbc5)
  • add rules for table (#33) (d1ea3fb)
  • add rules for text decoration (#29) (9797311)
  • add tests for align rules (64d2815)
  • arbitrary values accepted for leading (#130) (39919f4)
  • automate package publishing using semantic-release (#68) (9273e19)
  • dropshadow: add drop shadow (#105) (9b68cbe)
  • internals: add rules for border-top/right/bottom/left-color classes (#78) (83eb2f5)
  • internals: add rules for shadow component classes (#94) (e7e65d1)
  • rule for adding safe area inset from the bottom edge of the viewport (#103) (88186f6)
  • rules: add typography rules (#99) (6e1c363)
  • semantic.js: add rules for semantic icon colors (#124) (afc0354)
  • slider: add border shadow for active and hover states (#98) (0b36581)
  • slider: add outline-none styling for slider (#102) (48fdd8a)
  • touch-actions: add support for touch actions (#97) (54a3002)

1.0.0-alpha.66 (2023-08-21)

Bug Fixes

  • update vite to 4.2.3 to fix a vulnerability (#152) (929c9af)

1.0.0-alpha.65 (2023-08-21)

Bug Fixes

  • aspect-ratio: add rules for aspect-ratio, -video and -square (#150) (f5d1c79)

1.0.0-alpha.64 (2023-08-18)

Bug Fixes

  • remove @warp-ds/css dep to fix circular dependency (#149) (e351c76)

1.0.0-alpha.63 (2023-08-17)

Bug Fixes

1.0.0-alpha.62 (2023-08-15)

Bug Fixes

  • display.js: align order of css for display classes with fabric.css (#147) (aa00cfc)

1.0.0-alpha.61 (2023-08-15)

Bug Fixes

  • add font-bold to t1-t6 and use those classes to ref h1-h5 (#146) (1c6a81d)

1.0.0-alpha.60 (2023-07-13)

Bug Fixes

  • use new css repo for component classes (#143) (b2816b6)

1.0.0-alpha.59 (2023-07-13)

Bug Fixes

  • avoid null issue and use empty array instead (#144) (6d56dcd)
  • trigger a new release of alpha.59 (#145) (1ad8465)

1.0.0-alpha.59 (2023-07-13)

Bug Fixes

  • avoid null issue and use empty array instead (#144) (6d56dcd)

1.0.0-alpha.58 (2023-07-10)

Bug Fixes

  • add missing classes Fabric supported (#135) (4ce6033)

1.0.0-alpha.57 (2023-07-07)

Bug Fixes

1.0.0-alpha.56 (2023-07-03)

Bug Fixes

  • Remove old fallback values from box shadows (#140) (da00995)

1.0.0-alpha.55 (2023-06-30)

Bug Fixes

  • Update focus outline to use new semantic color token (#139) (673627d)

1.0.0-alpha.54 (2023-06-30)

Bug Fixes

  • Replace arbitrary background class with semantic class for page-container (#138) (ee9c296)

1.0.0-alpha.53 (2023-06-30)

Bug Fixes

  • add development flag back and externalize our published component classes (#129) (4470892)

1.0.0-alpha.52 (2023-06-30)

Bug Fixes

1.0.0-alpha.51 (2023-06-29)

Bug Fixes

  • cache the preflight instead of requesting every rebuild (83537ca)

1.0.0-alpha.50 (2023-06-28)

Bug Fixes

  • Updated rules for semantic colors to handle base level token names without ending "default" suffix (#133) (805526d)

1.0.0-alpha.49 (2023-06-27)

Features

  • arbitrary values accepted for leading (#130) (39919f4)

1.0.0-alpha.48 (2023-06-26)

Bug Fixes

  • throw better errors for users who are missing 'fetch' (#132) (77ba1e2)

1.0.0-alpha.47 (2023-06-21)

Bug Fixes

  • remove a shortcut for the outline-none (#128) (ced819c)

1.0.0-alpha.46 (2023-06-20)

Bug Fixes

  • Cleanup color classes for text and background color (#127) (1b3d13e)

1.0.0-alpha.45 (2023-06-16)

Bug Fixes

  • proper handle bg arbitrary url as var (#126) (0ddd0e9)

1.0.0-alpha.44 (2023-06-16)

Features

1.0.0-alpha.43 (2023-06-15)

Features

  • semantic.js: add rules for semantic icon colors (#124) (afc0354)

1.0.0-alpha.42 (2023-06-14)

Bug Fixes

  • Added missing rules for static border colors (#123) (6644a66)

1.0.0-alpha.41 (2023-06-14)

Bug Fixes

  • escape current selector for focusable (#122) (00b789b)

1.0.0-alpha.40 (2023-06-14)

Bug Fixes

  • typography.js: add font-bold to .h1-5 shortcuts (#121) (b84a631)

1.0.0-alpha.39 (2023-06-14)

Features

  • Add background, text and border classes for semantic color tokens (#119) (19b5ee9)

1.0.0-alpha.38 (2023-06-13)

Bug Fixes

  • border-x|y fix and slider obsolete snapshot fix (#120) (85dfaec)

1.0.0-alpha.37 (2023-06-12)

Bug Fixes

  • workflows: set node v to lts/* and pnpm to 8 (#118) (413058d)

1.0.0-alpha.36 (2023-06-05)

Bug Fixes

  • remove resets from preflight and refactor (#106) (3591a3b)

1.0.0-alpha.35 (2023-06-05)

Features

1.0.0-alpha.34 (2023-06-02)

Bug Fixes

1.0.0-alpha.33 (2023-06-01)

Bug Fixes

  • focusable, last-child, spinner rules (#110) (40e75cf)

1.0.0-alpha.32 (2023-05-31)

Bug Fixes

  • shadow: update naming of box-shadows (#112) (4405ae5)

1.0.0-alpha.31 (2023-05-29)

Bug Fixes

1.0.0-alpha.30 (2023-05-26)

Bug Fixes

  • improve syntax to clear the float for the elements after legend (#108) (75f4cac)

1.0.0-alpha.29 (2023-05-25)

Bug Fixes

  • restructure html and body styling to make shadow dom styling work (#107) (7eb3e94)

1.0.0-alpha.28 (2023-05-24)

Features

1.0.0-alpha.27 (2023-05-24)

Features

  • slider: add outline-none styling for slider (#102) (48fdd8a)

1.0.0-alpha.26 (2023-05-23)

Bug Fixes

1.0.0-alpha.25 (2023-05-23)

Features

  • add css variables as arbitrary values for w and h (#104) (455c4cb)

1.0.0-alpha.24 (2023-05-22)

Features

  • rule for adding safe area inset from the bottom edge of the viewport (#103) (88186f6)

1.0.0-alpha.23 (2023-05-11)

Bug Fixes

1.0.0-alpha.22 (2023-05-11)

Features

  • slider: add border shadow for active and hover states (#98) (0b36581)

1.0.0-alpha.21 (2023-05-10)

Features

1.0.0-alpha.20 (2023-05-10)

Features

  • touch-actions: add support for touch actions (#97) (54a3002)

1.0.0-alpha.19 (2023-05-03)

Bug Fixes

  • background arbitrary url rule change (#95) (ae70e51)

1.0.0-alpha.18 (2023-05-03)

Bug Fixes

  • shadows: add default box-shadow values to generic shadow classes (#96) (4adb2d6)

1.0.0-alpha.17 (2023-05-03)

Features

  • internals: add rules for shadow component classes (#94) (e7e65d1)

1.0.0-alpha.16 (2023-04-28)

Bug Fixes

  • add px to the arbitrary border width (#93) (c4d17ae)

1.0.0-alpha.15 (2023-04-28)

Bug Fixes

  • extend regex for the background arbitrary values (#92) (d908e24)

1.0.0-alpha.14 (2023-04-28)

Bug Fixes

1.0.0-alpha.13 (2023-04-27)

Features

1.0.0-alpha.12 (2023-04-26)

Bug Fixes

  • be able to use a one-off background image (#89) (12df5a9)

1.0.0-alpha.11 (2023-04-25)

Bug Fixes

  • add correct token for the focus ring (#87) (9191bca)

1.0.0-alpha.10 (2023-04-21)

Bug Fixes

1.0.0-alpha.9 (2023-04-21)

Bug Fixes

  • remove caret class, will use current (#85) (f87db11)

1.0.0-alpha.8 (2023-04-18)

Bug Fixes

1.0.0-alpha.7 (2023-04-18)

Bug Fixes

  • height and width shouldn't match without a dash (#83) (3580750)
  • theme now exports useTheme (#82) (88476fd)

1.0.0-alpha.6 (2023-04-14)

Bug Fixes

  • remove input related stuff from preflight (#81) (a5dcb42)

1.0.0-alpha.5 (2023-03-28)

Features

  • internals: add rules for border-top/right/bottom/left-color classes (#78) (83eb2f5)

1.0.0-alpha.4 (2023-03-28)

Bug Fixes

1.0.0-alpha.3 (2023-03-27)

Bug Fixes

1.0.0-alpha.2 (2023-03-17)

Bug Fixes

1.0.0-alpha.1 (2023-03-14)

Bug Fixes

Features

  • add layout rules and tests for rules (d47d412)
  • add rules for border and rounded (#19) (48ec500)
  • add rules for focusable classes (#27) (e9f7e08)
  • add rules for table (#33) (d1ea3fb)
  • add rules for text decoration (#29) (9797311)
  • add tests for align rules (64d2815)
  • automate package publishing using semantic-release (#68) (9273e19)