Giter Site home page Giter Site logo

ngduc / windmill-react-ui-kit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from estevanmaito/windmill-react-ui

4.0 1.0 6.0 4.15 MB

๐Ÿงฉ A fork from Windmill UI with upgrades, fixes and new components.

Home Page: https://windmillui.com/react-ui

License: MIT License

JavaScript 5.02% TypeScript 94.93% CSS 0.05%

windmill-react-ui-kit's Introduction

Windmill React UI

The component library for fast and accessible development of gorgeous interfaces.

Projects using it: Windmill Dashboard React

Mission

Be the most accessible it can be out of the box and the fastest way to production.

Go to docs to see complete, live examples

๐Ÿš€ Usage

Install

npm i windmill-react-ui-kit

Inside tailwind.config.js

const windmill = require('windmill-react-ui-kit/config')
module.exports = windmill({
  purge: [],
  theme: {
    extend: {},
  },
  variants: {},
  plugins: [],
})

Then place Windmill at the root of your project (the order doesn't matter, as long as your application is inside).

// index.js
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import { Windmill } from 'windmill-react-ui-kit'

ReactDOM.render(
  <Windmill>
    <App />
  </Windmill>,
  document.getElementById('root')
)

Use components inside your project

import { Button } from 'windmill-react-ui-kit'

function App() {
  return <Button>Hi there!</Button>
}

export default App

๐Ÿ”Œ Contributing

  • Fork
  • Clone
  • npm install
  • npm run storybook

It will start a local server at localhost:6006 with all components rendered.

โš  Use npm run cz instead of git commit! It will guide you through some short questions and guarantee that you commit message is standardized.

Commit will also trigger linting and test coverage.

windmill-react-ui-kit's People

Contributors

dependabot[bot] avatar estevanmaito avatar mantovanig avatar ngduc avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

windmill-react-ui-kit's Issues

config.js still using old references

  • Tailwind version 3 upgrade

Relevant code or config:

https://github.com/ngduc/windmill-react-ui-kit/blob/master/config.js#L165

const windmillConfig = {
  darkMode: 'class',
  purge: {
    content: [
      'node_modules/@windmill/react-ui/lib/defaultTheme.js',
      'node_modules/@windmill/react-ui/dist/index.js',
    ],

Problem description:

Your windmill node_modules reference still referencing old @windmill package not your package name.

Purge property no longer being used in Tailwind version 3

Suggested solution:

https://tailwindcss.com/docs/upgrade-guide#configure-content-sources

And update package names:

'node_modules/windmill-react-ui-kit/lib/defaultTheme.js',
'node_modules/windmill-react-ui-kit/dist/index.js'

Ensure windmill() wrapper config will merge cleanly content property.

For performance, there should be a way to decide whether to exclude the node_module's defaultTheme.js as well for the windmill function call. Since user might one to configure their own full custom theme on their end fully and not rely on Windmill's one at all.

Pre-commit Linting/Test issues with current repo

Seems like with the Pre-commit husky operations with eslint and JEST test coverage thresholds, there are issues compiling and pre-commiting. Consider cleaning these up or removing pre-commit?

You may consider cherry-picking/using my pre-commit commit to deal with this issue as part of another existing PR related to Dropdown component (take note that this will remove test:coverage thresholds for precommiting and only only do the regular tests):

PR: #5

Commit: 15d16e3

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.