GithubHelp home page GithubHelp logo

onresize / windicss-webpack-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from windicss/windicss-webpack-plugin

0.0 0.0 0.0 2.48 MB

๐Ÿƒ Windi CSS for webpack โšก

Home Page: https://windicss.org/integrations/webpack.html

JavaScript 12.91% TypeScript 50.83% CSS 5.90% HTML 4.40% Vue 25.50% SCSS 0.29% Sass 0.18%

windicss-webpack-plugin's Introduction

windicss-webpack-plugin

๐Ÿƒ Windi CSS for webpack๏ธ
Next generation utility-first CSS framework.


Status: Stable - v4 coming soon
Made possible by my Sponsor Program ๐Ÿ’–
Follow me @harlan_zw ๐Ÿฆ

Features

  • ๐Ÿงฉ On-demand CSS utilities (Compatible with Tailwind CSS v2) and preflights
  • ๐Ÿƒ Load configurations from tailwind.config.js
  • ๐Ÿค Framework-agnostic: Vue CLI, Nuxt, Next, UmiJS, etc!
  • ๐Ÿ“„ Use directives in any CSS (SCSS, LESS, etc) @apply, @variants, @screen, @layer, theme(),
  • ๐ŸŽณ Support Utility Groups - e.g. bg-gray-200 hover:(bg-gray-100 text-red-300)

Documentation

Read the documentation for more details.

New Webpack Plugin Features

Design in DevTools mode

Add the import with your existing windi imports and you'll have autocompletion in your Chrome DevTools! See "Design in DevTools" for more information.

import 'virtual:windi-devtools'

Thanks await-ovo!

New Windi v3.0 Features

Enabled it by

// windi.config.ts
export default {
  attributify: true
}

And use them as you would like:

<button 
  bg="blue-400 hover:blue-500 dark:blue-500 dark:hover:blue-600"
  text="sm white"
  font="mono light"
  p="y-2 x-4"
  border="2 rounded blue-200"
>
  Button
</button>
// windi.config.ts
export default {
  alias: {
    'hstack': 'flex items-center',
    'vstack': 'flex flex-col',
    'icon': 'w-6 h-6 fill-current',
    'app': 'text-red',
    'app-border': 'border-gray-200 dark:border-dark-300',
  },
}

Sponsors

License

MIT License ยฉ 2022 - Present Harlan Wilton

windicss-webpack-plugin's People

Contributors

albert-cord avatar antfu avatar await-ovo avatar dependabot-preview[bot] avatar hannoeru avatar harlan-zw avatar jiangweixian avatar mohatt avatar noxify avatar schelmo avatar tmkx avatar winixt avatar wjq990112 avatar zhuangya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.