Giter Club home page Giter Club logo

axs's People

Contributors

jxnblk avatar lachlanjc avatar oomathias 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

axs's Issues

Improve color generation

Currently axs uses palx to generate the palette. When working on an existing design using incremental refactor, I must use our brand colors. However palx only accept the main color. It would be a greet improvement to expose functions to generate the palette (especially the shades).

import {config, palette} from "axs"

// Possible API satisfying the need:
config.set({
  colors: palette({
    orange: "#ff8000",
    red: "#d62828",
    green: "#128811",
    blue: "#2f638b",
  })
})

Boolean style properties should be toggleable

Currently the following would render a bold text.

<Box bold={false}>Foo</Box>

I would expect the font-weight to be unchanged.
Note: using null lets the text unstyled.

The motivation is to be able to write the following:

<Box bold={active} {...props} />
<Box bold={active ? true : null} {...props} /> // Too verbose

Can't control Border width

In the Border component i can't modify the border width, like '3px solid #ffff', its only 1px default.

support for custom universal props

Would you consider being able to add custom props that any withAxs component can use? For example I'd like to change font-family easily without making extra layers or using css={}, as it might apply to different types of components, so just specifying mono would be nice.

rounded="circle" does nothing

The following has no effect:

<Box rounded="circle" {...props} />

Should the documentation be updated or is it a bug?

multiple responsive props return incomplete media query

Given the following props on any withAxs-wrapped component:

{
  width: [1, 2/3]
  pr: [0, 1]
}

This only generates a cxs media query for the last responsive props given:

@media screen and (min-width:40em) {
  .cxs-12406165 {
    padding-right:8px
   /** -> missing `width` here */
  }
}

I just throw this out here in case you run into it too. I'll eventually send a PR.

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.