@accurat/tachyons-lite 中文文档教程
Tachyons Lite
像 Tachyons 但没有媒体查询、颜色和 normalize.css
有时你不需要 tachyons 的媒体查询,你有自己的调色板并且你想使用 modern-normalize 而不是 normalize.css。
这是给你的图书馆! 它比原始快子 75% 小,重量仅为 18KB(缩小后),而原始快子束的重量为 79KB(缩小后)。
Install
yarn add @accurat/tachyons-lite
Usage
如果你正在使用 webpack,你可以这样做
import '@accurat/tachyons-lite'
否则你可以从 CDN 使用它,把它放在你的 html 中
<link rel="stylesheet" href="https://unpkg.com/@accurat/tachyons-lite/tachyons-lite.min.css">
Tachyons Lite
Like Tachyons but without media-queries, colors and normalize.css
Sometimes you don't need tachyons' media queries, you have your own color palette and you want to use modern-normalize instead of normalize.css.
This is the library for you! It is 75% smaller than the original tachyons, weighing only 18KB (minified) against the 79KB of the (minified) original tachyons bundle.
Install
yarn add @accurat/tachyons-lite
Usage
If you're using webpack, you can just do
import '@accurat/tachyons-lite'
Otherwise you can use it from the CDN, put this in your html
<link rel="stylesheet" href="https://unpkg.com/@accurat/tachyons-lite/tachyons-lite.min.css">