Material Design Components, Responsive and Modern CSS Framework Built with Flexbox ๐Ÿฐ

  • By Butter Cake Css
  • Last update: Dec 10, 2022
  • Comments: 6

Butter Cake logo

Butter Cake

v4.0.0

A Modern Lightweight Front End CSS framework for faster and easier web development.
Explore Butter Cake docs ยป

Report bug . Request feature . Examples

Status

Awesome Css Jsdeliver GitHub Releases Website GitHub issues

Build responsive, mobile-first projects on the web with Butter Cake.

Butter Cake is an open source and lightweight modular toolkit for developing with HTML, CSS, and JS. Quickly prototype your ideas or build your entire app with our Sass(SCSS) variables and mixins, responsive grid system, extensive prebuilt components.

Get Started

NPM

npm i buttercake

CSS (jsdelivr)

<!-- BUTTER CAKE CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/butterCake.min.css">

JS (jsdelivr)

<!-- BUTTER CAKE JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/butterCake.min.js"></script>

Documentation

Checkout the official website for the Documentation. https://getbuttercake.com

Why You should use - Butter Cake

  • โœˆ๏ธ light weight
  • ๐Ÿ—ƒ Modular Components
  • ๐Ÿ  Simple Structure
  • ๐Ÿ“œ Built Using Sass(SCSS)
  • ๐Ÿ“ฒ Responsive

๐ŸŒ Browser Support

Butter Cake uses autoprefixer to make (most) Flexbox features compatible with earlier browser versions. According to Can I use, Butter Cake is compatible with recent versions of:

Chrome, Firefox, Safari, Edge, Samsung Internet

  • Chrome
  • Firefox
  • Safari
  • Edge
  • Samsung Browser
  • Opera

Support the developement

Copyright and license

Code copyright 2018 - 2021 Himas Rafeek. Code released under the MIT license.

Github

https://github.com/himasrafeek/butterCake

Comments(6)

  • 1

    Different offsets at different breakpoints

    Hi,

    Is there a way to have no offset on mobile and also have an offset on desktop?

    <!-- 
    With this code the offset-2 is always applied 
    I want the offset to only be applied when col-md-8 applies
    -->
    <div class="col-12 col-md-8 offset-2">
    
  • 2

    Move away from jQuery

    Because butterCake identifies as a lightweight framework, it makes sense to ship vanilla JS scripts without jQuery dependency

    Removing jQuery would also make Butter Cake easier to use with front-end frameworks such as react

  • 3

    Scale font size with media queries by default

    Hi, I have been playing around with Butter Cake for the past few days and I like it. I do not know SASS, as I mostly work in LESS, so please answer my following ignorant questions regarding the distribution compiled CSS:

    • Why did you decide to use px for text-size instead of relatives such as em/rem?
    • As they are, font-size does not automatically scale with media queries, will this be addressed?
  • 4

    Navbar documentation

    I could not get the navbar menu to open on mobile, the documentation does not say it but it is necessary for jquery and butterCake.min.js to be loaded in the footer and not in the header. You should make that clear

  • 5

    Activating Open Collective

    Hi, I'm making updates for Open Collective. Either you or a supporter signed this repo up for Open Collective. This pull request adds backers and sponsors from your Open Collective https://opencollective.com/butterCake โค๏ธ

    It adds two badges at the top to show the latest number of backers and sponsors. It also adds placeholders so that the avatar/logo of new backers/sponsors can automatically be shown without having to update your README.md. [more info]. See how it looks on this repo. You can also add a "Donate" button to your website and automatically show your backers and sponsors there with our widgets. Have a look here: https://opencollective.com/widgets

    P.S: As with any pull request, feel free to comment or suggest changes. The only thing "required" are the placeholders on the README because we believe it's important to acknowledge the people in your community that are contributing (financially or with code!).

    Thank you for your great contribution to the open source community. You are awesome! ๐Ÿ™Œ And welcome to the open collective community! ๐Ÿ˜Š

    Come chat with us in the #opensource channel on https://slack.opencollective.com - great place to ask questions and share best practices with other open source sustainers!

  • 6

    Container width $xl-media

    Hi, In the compiled CSS the .container class does not use the 1260px breakpoint

    .container {
        margin: 0 auto;
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
        /* Breakpoints | Min Width */
    }
    
    @media (min-width: 590px) {
        .container {
            max-width: calc(100% - 50px);
        }
    }
    
    @media (min-width: 790px) {
        .container {
            max-width: calc(100% - 100px);
        }
    }
    
    @media (min-width: 1160px) {
        .container {
            max-width: 1150px;
        }
    }
    

    This is because the _containers.scss file does not define container widths for $xl-media. I recommend adding a definition for $xl-media

    P.S. you shouldn't close issues until they're resolved. For example, the issue about jQuery should stay open until the jQuery dependency is deprecated. That is to provide a todo-list to you and your contributors and to prevent other people from accidentally opening an issue about the same thing.