windicss
unplugin-auto-import
Our great sponsors
windicss | unplugin-auto-import | |
---|---|---|
10 | 22 | |
6,507 | 2,919 | |
0.1% | 3.3% | |
2.6 | 7.8 | |
about 1 year ago | 22 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
windicss
-
Vite 2.x + Vue 3.x + quasar 2.x + windcss 3.x starter ⚡
why not use Windi CSS or Tailwind css?
- Goodbye CSS Modules, Hello TailwindCSS
- Does anyone have TailwindCSS jit working in Nuxt 3?
-
Top 4 Tailwind CSS alternatives for 2021
Windi CSS, in contrast to Tachyons, is a very fresh framework. Started in the late December of 2020, it’s already gained a lot of attention and currently sits at respectable 1.5K GitHub stars.
-
Just-In-Time: The Next Generation of Tailwind CSS
No mention of Windi CSS? Didn't it inspire this?
-
Ok fine… TailwindCSS rocks!
However I decided it was time to question my own biases. I installed Tailwind Intellisense for VS Code and started up a test project with a starter that included Tailwind (actually it uses Windi, which is a Tailwind compiler). I then started making a basic site, forcing myself to use the utility classes for (most) all of the styling.
- Windi CSS: Tailwind CSS Compiler
-
Introduce vue-windicss-preprocess, the best way to interact with vue and tailwindcss.
For more details, please check windicss
-
Introduce svelte-windicss-preprocess, the best way to interact with svelte and tailwindcss.
You can check the README of windicss (https://github.com/voorjaar/windicss). Compared with postcss, it runs faster, can be built in real time and does not require plugins such as autoprefixer and purgecss to increase the complexity of configuration. And windicss extends the utilities and variants of tailwindcss. For example, you can directly use p-1.3rem or bg-hex-fff just like atomic css. And we also have a compilation mode, which can combine a line of classes into one to increase the readability of html.
- I built a new tailwindcss compiler with Typescript. It runs fast, can build css in real-time during development, well-matched with vue and svelte. Give it a try. If you like leave a star, or send some feedback if you find problems. Pull requests are most helpful.
unplugin-auto-import
-
Welcome to the dark side. Ree.js awaits you!
Unplugin auto import
- Vue 3 vs Vue 2 so far? What's your opinion? Things I didn't like about Vue 3 compared to Vue 2
-
using types without import them
You looked through https://github.com/antfu/unplugin-auto-import/issues/61, https://github.com/unjs/unimport/pull/218 and https://github.com/antfu/unplugin-auto-import/issues/61?
-
Saw this on twitter last night 😂😂
unplugin-auto-import, let's you set what any library to be automatically imported. It has reasonable defaults for popular libraries.
-
Better DX in JS apps with unplugin-auto-import
AutoImport({ // targets to transform include: [ /\.[tj]sx?$/, // .ts, .tsx, .js, .jsx /\.vue$/, /\.vue\?vue/, // .vue /\.md$/, // .md ], // global imports to register imports: [ // presets 'vue', 'vue-router', // custom { '@vueuse/core': [ // named imports 'useMouse', // import { useMouse } from '@vueuse/core', // alias ['useFetch', 'useMyFetch'], // import { useFetch as useMyFetch } from '@vueuse/core', ], 'axios': [ // default imports ['default', 'axios'], // import { default as axios } from 'axios', ], '[package-name]': [ '[import-names]', // alias ['[from]', '[alias]'], ], }, ], // Enable auto import by filename for default module exports under directories defaultExportByFilename: false, // Auto import for module exports under directories // by default it only scan one level of modules under the directory dirs: [ // './hooks', // './composables' // only root modules // './composables/**', // all nested modules // ... ], // Filepath to generate corresponding .d.ts file. // Defaults to './auto-imports.d.ts' when `typescript` is installed locally. // Set `false` to disable. dts: './auto-imports.d.ts', // Auto import inside Vue template // see https://github.com/unjs/unimport/pull/15 and https://github.com/unjs/unimport/pull/72 vueTemplate: false, // Custom resolvers, compatible with `unplugin-vue-components` // see https://github.com/antfu/unplugin-auto-import/pull/23/ resolvers: [ /* ... */ ], // Generate corresponding .eslintrc-auto-import.json file. // eslint globals Docs - https://eslint.org/docs/user-guide/configuring/language-options#specifying-globals eslintrc: { enabled: false, // Default `false` filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json` globalsPropValue: true, // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable') }, })
- Vue 3 over Nuxt 3
-
Import commonly-used module once, not in each component?
If you don’t want to write the import everywhere, use a unplug auto importing plug-in: https://github.com/antfu/unplugin-auto-import
-
Pinia as global $store
I forgot to specify, for the AutoImport I'm using unplugin-auto-import/vite
-
[NUXT3] Is there a more elegant way to get current route?
Others have already mentioned answers but I just want to say if you are bothered by importing reactive and computed take a look at https://github.com/antfu/unplugin-auto-import.
-
[AskJS] why no other javascript framework has implemented this feature (yet) ?
You can check out https://github.com/antfu/unplugin-auto-import
What are some alternatives?
Tailwind CSS - A utility-first CSS framework for rapid UI development.
unplugin-vue-components - 📲 On-demand components auto importing for Vue
unocss - The instant on-demand atomic CSS engine.
pinia - 🍍 Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
twin.macro - 🦹♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
vite-plugin-pages - File system based route generator for ⚡️Vite
nuxt3-tailwind - nuxt3 boilerplate with tailwind and dynamic routes.
unplugin-vue2-script-setup - 💡 Bring `<script setup>` to Vue 2.
twind - The smallest, fastest, most feature complete Tailwind-in-JS solution in existence.
vite - Next generation frontend tooling. It's fast!
chakra-ui - ⚡️ Simple, Modular & Accessible UI Components for your React Applications
Svelte - Cybernetically enhanced web apps