Giter Site home page Giter Site logo

dracula / dracula-ui Goto Github PK

View Code? Open in Web Editor NEW
871.0 871.0 38.0 61.07 MB

:vampire: A dark-first collection of UI patterns and components.

Home Page: https://ui.draculatheme.com

License: MIT License

JavaScript 32.70% TypeScript 50.89% CSS 16.22% Shell 0.19%

dracula-ui's Introduction

dracula-ui's People

Contributors

binarydigitcodes avatar helderberto avatar insidiae avatar itaibo avatar jhortale avatar koki-develop avatar leandrocunha avatar luxonauta avatar nettofarah avatar pbteja1998 avatar rixcy avatar ryoneme2 avatar vitormalencar avatar zainsci avatar zenorocha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dracula-ui's Issues

Installation failed: Conflicting peer dependency

I have fresh next.js setup with tailwindcss and it is producing conflict. I tried to install it with --force and --legacy-peer-deps but then it doesn't seem to install anything.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: [email protected]
npm ERR! node_modules/postcss
npm ERR!   dev postcss@"^8.2.8" from the root project
npm ERR!   peer postcss@"^8.1.0" from [email protected]
npm ERR!   node_modules/autoprefixer
npm ERR!     dev autoprefixer@"^10.2.5" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! dev jest-transform-css@"^2.1.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/postcss
npm ERR!   peer postcss@"^7.0.2" from [email protected]
npm ERR!   node_modules/jest-transform-css
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Standardize size attribute

Today we have different notations for the same attribute.

Heading

<Heading size="heading-1">

Spacing

<Box m="sm" />

Button / Anchor / etc

<Button size="xsmall">

My suggestion is to follow the same shorthand pattern (xs, sm, lg, etc).

Try to access "Spacing" breaks the build

There are 2 "Spacing" links (under "Getting Started" and "Components"); both break the build when accessed, showing a "Module not found" error.

image

I'm on Windows using Ubuntu-20.04 through WSL 2.

Local run not working on Windows

I want to access the documentation, but following the README steps localhost:3000 didn't worked.

I have tried on Windows using Ubuntu-20.04 through WSL 2.

Unable to use <Button as="input" />

I'm getting the following error when creating a test with <Button as="input" />.

 FAIL  src/components/Button/__tests__/Button.test.tsx (22.277 s)
  ● Console

    console.error
      The above error occurred in the <input> component:
      
          at input
          at Button (/Users/zeno/Projects/dracula-ui/src/components/Button/Button.tsx:62:71)
          at div
          at WrapperComponent (/Users/zeno/Projects/dracula-ui/node_modules/enzyme-adapter-utils/src/createMountWrapper.jsx:49:26)
      
      Consider adding an error boundary to your tree to customize error handling behavior.
      Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

      at logCapturedError (node_modules/react-dom/cjs/react-dom.development.js:20085:23)
      at update.callback (node_modules/react-dom/cjs/react-dom.development.js:20118:5)
      at callCallback (node_modules/react-dom/cjs/react-dom.development.js:12318:12)
      at commitUpdateQueue (node_modules/react-dom/cjs/react-dom.development.js:12339:9)
      at commitLifeCycles (node_modules/react-dom/cjs/react-dom.development.js:20736:11)
      at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:23426:7)
      at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:3945:14)
      at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:316:27)

Create <Kdb> component

Render a <kdb> tag with OS detection. For example:

<Kdb osx="⇧⌘P" win="Ctrl+Shift+P" />

Input not recognizing type prop

Hi guys,

We are trying to use the inputs with different types, like password etc, there is one specific reason for not come with type property?

image

CSS Autocomplete

We would like to be able to autocomplete css classes based on the generated stylesheet.

Problem with site responsiveness

The documentation site does not behave as expected on screens with lower resolution.

captura-de-tela

This screenshot was taken on a notebook running Windows 10, at the native resolution of 1366x768, using the Google Chrome browser.

Adding color prop to Avatar sets backround

If you add a color to the Avatar component it sets a background on the Avatar element that clears the image in it.
Version: 0.8.0

// Not working
<Avatar
    src="/avatar.jpg"
    color="cyanGreen"
/>

Add Avatar sizes

  • xs: 30x30
  • sm: 60x60
  • md: 90x90
  • lg: 120x120
  • xl: 150x150
  • 2xl: 180x180

Select Disabled doesn't work

Hi there,

When I pass this prop, the component still clickable and I can select an option. Also the styles doesn't change.

Maybe passing this prop to select will work.

I tried to fork it and change here but it is not allowed yet.

Remove all extraneous DOM properties

i.e. make sure HTML elements only receive:

  • Actual Dracula UI component props
  • Any valid HTML prop

We shouldn't see something like hoverColor show up in an a tag though.

Suggestion: mnemonic CSS classes

Description

IMHO, you can consider to use a mnemonic classes, such as:

<p class="d-text d-text-black">Hello Vampire</p>

Insteaf of:

<p class="drac-text drac-text-black">Hello Vampire</p>

Why I'm telling this, IMHO it's easier to remember, write and you'll remember the Dracula UI faster with the d-.

Link

I recommend changing the Link component to another name because it may conflict with NEXT / LINK
My suggestion "DracLink " hahahahah

Tailwind Version of Dracula UI

I would love if there is some sort of a Tailwind compatible version of Dracula UI — so that it would be possible to do things like sm:drac-text-sm lg:drac-text-lg among other things.

Ideally, it should be like adding some custom config to tailwind.config.js, which would auto generate all the drac-* classes.

I would also try to come up with something similar to this, I think this is straightforward to achieve for every type of class other than those with gradients. Would have to do some hacking for gradients to work with Tailwind.

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.