GithubHelp home page GithubHelp logo

aqua's People

Contributors

tmpfs avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

davado

aqua's Issues

Variables and blocks

Currently blocks are being used for all rule declarations which allows consumers to override all styles (everything is mutable), however this is not ideal in some scenarios.

The uses cases are:

  1. I want to completely change the styles for an element, component, block etc.
  2. I want to modify a single declaration

Point 1) is catered for by the use of blocks, but if we also make everything a variable we can cater to use case 2).

Whilst this is quite a lot of work it does make the library as flexible as possible.

Everything is mutable

Draft styles have been implemented quickly, need to follow the everything is mutable principle.

Add asset-path and image-path mixins

Because developers writing CSS stylesheets need to resolve assets that are in ../ with ../../assets so that the rev/replace logic for production builds works as expected.

Use of media queries

The default h element styles include @media rules which override any h*-block values specified.

The options I can see are:

  • include the h*-block directives in these media query rules. The example library page has some basic responsive styles, but as soon as a library user defines vars it is the user's responsibility to define appropriate responsive media queries.
  • remove any media queries from the project, leaving it up to a library user to define basic styling beyond a smaller viewport

Are there any other considerations or alternatives here?

Update readme

Include design philosophy and information on overriding default styles etc.

Elements:

  • vars
  • placeholders
  • mixins
  • blocks
  • rules

Basic imports:

  • libs
  • vars

Style imports:

  • norm
  • elem
  • etc etc

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.