* 应用中,对字体大小不使用`rem`, rem的基准值与屏幕宽度成正比, 这就造成相同分辨率的屏幕,越宽字越大,越窄字越小, 在开发过程中,我们创造了 `dpx` (dpr px) 这个单位, 按照dpr来放大 1*px, 2*px, 3*px 大小的字体,再按照屏幕dpr缩小, 这样就达到了字体 不缩放, 各种屏幕的字体看起来都差不多,也与屏幕宽度无关。 * 边框一般不使用`rem` , 在移动设备上最常见的就是`1px`的边框, 由上一条规则我们知道`rem`无法精确到`1px`, 它只是一个与屏幕
Tool for transforming styles with JS plugins
Color helpers to ease transformation between formats, gamut, etc
Autoload Config for PostCSS
PostCSS plugin to unwrap nested rules like how Sass does it
Convert modern CSS into something browsers understand
PostCSS for CSS-in-JS and styles in JS objects
Use unquoted format on @font-face CSS definitions.
Use two values display syntax for inner and outer display types.
Use the :focus-within pseudo-selector in CSS
Use the :focus-visible pseudo-selector in CSS
Use the ic length unit
Use cascade layers in CSS
A pseudo-class for matching elements in a selector list
Use the unset keyword in CSS.
PostCSS plugin to transform :not() W3C CSS level 4 pseudo class to :not() CSS level 3 selectors
Use the :dir pseudo-class in CSS
Use env() variables in CSS
Use Custom Selectors in CSS
Use the rebeccapurple color keyword in CSS
Correctly declare progressive enhancements for CSS Custom Properties.
Nest rules inside each other in CSS
Use the :any-link pseudo-class in CSS
Safe defaults for cssnano which require minimal configuration.