GithubHelp home page GithubHelp logo

Comments (11)

argyleink avatar argyleink commented on July 18, 2024 1

Nice, I could see this being a good workflow yeah. Easy to copy and paste colors from the docsite.

A PR with the feature sounds nice πŸ™‚
what do you think about offering to put either the custom property name or the hex into the clipboard? like when folks click, they get a popup about which they want to copy? another tricky thing too, is should it copy hex or offer hsl, rgb, etc?

Cool feature but it may creep up on you with scope πŸ˜…

from open-props.

Brian-Pob avatar Brian-Pob commented on July 18, 2024 1

I was thinking we could have a little options menu with checkboxes for the user’s preferences located above the colors section. I’m gonna explore and test out some other ways to do this but here is a rough idea that I came up with on my ipad.

But yeah, I get what you mean about scope creep! πŸ˜…

Rough sketch showing potential implementation of color option selection

from open-props.

Brian-Pob avatar Brian-Pob commented on July 18, 2024 1

Decided to host the WIP fork on Vercel
https://open-props-fork.vercel.app/

from open-props.

argyleink avatar argyleink commented on July 18, 2024 1

features comin along nice!

from open-props.

argyleink avatar argyleink commented on July 18, 2024 1

@argyleink The feature is basically done on my fork now! Though I would like suggestions on how to improve the styling and wording on the format selector.

been on vacation, back now and in the saddle! this is lookin sweet tho, folks are gonna love it.

i took a stab at adding some styles to make it look more in line with the rest of the design. Might be fine for now?

Screenshot 2024-02-20 at 3 32 17β€―PM

With all the colors becoming buttons and in the tab flow, it's probably a good idea to add some roving focus with something like this? https://github.com/argyleink/roving-ux

that way folks on a keyboard don't need to tab through every single one, they can tab over groups and use arrow keys and spacebar.

for the gray text in the radio label, use var(--text-2) instead of a gray so it's adaptive with the light/dark theme πŸ‘πŸ»

from open-props.

Brian-Pob avatar Brian-Pob commented on July 18, 2024 1

been on vacation, back now and in the saddle! this is lookin sweet tho, folks are gonna love it.

Welcome back from vacation. And thank you for the kind words!

i took a stab at adding some styles to make it look more in line with the rest of the design. Might be fine for now?
for the gray text in the radio label, use var(--text-2) instead of a gray so it's adaptive with the light/dark theme πŸ‘πŸ»

Thanks. I'll get to work on this.

With all the colors becoming buttons and in the tab flow, it's probably a good idea to add some roving focus with something like this? argyleink/roving-ux

that way folks on a keyboard don't need to tab through every single one, they can tab over groups and use arrow keys and spacebar.

The tab order was one of my concerns when I started building out this feature and I'm not surprised that there's already an existing tool that helps solve this issue. Built by you nonetheless! 😁

So for this feature, is it alright if I add the roving-ux package to the docsite project? Or would you prefer to keep it vanilla?

I've gone ahead and added roving-ux. Implementation is looking good!

Screencast.from.2024-02-21.23-20-59.webm

from open-props.

argyleink avatar argyleink commented on July 18, 2024 1

TODO's based on code review in #476 (review):

  • Clean up (console logs, comments, formatting)

let's just stick at this and make issues/feature requests for anything additional!? they're nice to haves, but the core here is much nicer to have and doesnt need to wait for the other stuff. thoughts?

from open-props.

Brian-Pob avatar Brian-Pob commented on July 18, 2024

Here's a little TODO list for my feature

  • Update color swatch CSS for buttons
  • Click to copy property
  • Click to copy Hex
  • Click to copy RGB
  • Click to copy HSL
  • Option for which format to copy
  • Tooltip or some other indicator that something was copied to clipboard
  • Consider adding "Skip buttons" for tab navigation?
  • Style format selection
  • Improve wording of format selection
  • Consider turning "Copy type" selector into a toggle switch?

from open-props.

Brian-Pob avatar Brian-Pob commented on July 18, 2024

@argyleink The feature is basically done on my fork now! Though I would like suggestions on how to improve the styling and wording on the format selector.

from open-props.

Brian-Pob avatar Brian-Pob commented on July 18, 2024

TODO's based on code review in #476 (review):

  • Clean up (console logs, comments, formatting)
  • Look into color libraries for the color conversions
  • Look into oklch() and p3 implementations
  • Look into implementing copy format options using <fieldset>

from open-props.

Brian-Pob avatar Brian-Pob commented on July 18, 2024

Sounds good to me! πŸ‘

from open-props.

Related Issues (20)

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.