Giter Site home page Giter Site logo

mojocss / mojocss Goto Github PK

View Code? Open in Web Editor NEW
385.0 7.0 5.0 171 KB

The Atomic CSS Framework for crafting gorgeous UIs without shipping any CSS.

Home Page: https://mojocss.com/

License: MIT License

JavaScript 100.00%
atomic-css css-framework grid-system lightweight responsive utility-first webdevelopment

mojocss's Introduction


Mojo CSS

The Next-Gen Atomic CSS Framework for crafting gorgeous UIs without shipping any CSS.

Documentation · Blog · Play

Community

Stay in the loop with Mojo CSS development progress and engage in conversations with the project maintainers and community members.

Contributing

Please read our contribution guidelines before making a pull request.

Copyright and license

Code copyright 2024 Mojo CSS Authors. Code released under the MIT license.

mojocss's People

Contributors

ali-m97 avatar mimze 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

mojocss's Issues

Typo in Installation Guide

Hey, thank you for the great job. I haven't spent much time on the framework, but I know that a lot has been done. Well done.

However, I noticed a typo in the installation guide as shown in the screenshot below (import mojo from from 'mojocss'):

IMG_20240207_000220.jpg

The link to this typo is here.

[Documentation] Typo in [.github/CONTRIBUTING.md]

Hi there,
I hope you're doing well. While reviewing the "Contributing to Mojo CSS" documentation, I noticed a small typo that I'd like to bring to your attention.

Details:
Incorrect Word: [resquest]
Correction: [request]
Page/File: [.github/CONTRIBUTING.md]

Issue with media query ordering when using patterns

Hello!
There appears to be an issue with the order that media query breakpoints are generated when they are specified via a pattern.

For example:

 mojo({
    patterns: {
        '.listings': {
            'idle': 'grid-gap-1rem',
            'sm': 'cols-4',
            'md': 'cols-5',
            'lg': 'cols-6'
        },
    }
})

This will always output the media queries in reverse order (largest to smallest), which causes them not to take effect correctly.

If you do this:

<div class="listings" sm="cols-4" md="cols-5" lg="cols-6">

It generates the queries in the right order, and everything works as desired.

Changing the order of the variants in the pattern does not affect the output order in the generated CSS, it's always in reverse order.

If I remove this reverse() things work as expected.

And just to be clear, I am using the default breakpoints; and haven't changed them.

Mojocss js file is too big (not small)

Mojocss docs says:

While a normal project typically requires at least 100kb of CSS to handle the styling,

I doubt it is not ture. Can you give us some real eaxmples / projects that have more than 100kb CSS?

Mojo requires only a single ~50kb (15kb gzipped) JS file to handle the styling of any size project.

A normal tailwind project only generate .css files less than 10kb (before gzipped). So why we need a ~50kb mojo.mini.js?

link: https://mojocss.com/docs/guide/what-is-mojocss#file-size

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.