Git Product home page Git Product logo

marshmellowcss's Introduction

marshmellowcss

Easy intuitive utility-first CSS framework for rapidly building custom user interfaces.

Status

Slack Build Status npm version Backers on Open Collective Sponsors on Open Collective


Explore Marshmellow docs »

Table of contents

Quick start

Several quick start options are available:

  • Download the latest release
  • Clone the repo: git clone https://github.com/marshmellowcss/marshmellowcss.git
  • Install with npm: npm install marshmellowcss
  • Install with yarn: yarn add marshmellowcss
  • Install with Composer: composer require marshmellowcss/marshmellowcss:5.1.3

1. Install Marshmellow CSS

Install marshmellow via npm, and create your marshmellow.config.js file.

#Terminal
> npm install -D marshmellow
> npx marshmellow init

2. Configure your template paths

Add the paths to all of your template files in your mellow.config.js file (or marshmellow.config.js file. Allows unused rules to be removed from dist at compile.)

//mellow.config.js
module.exports = {
  content: ["./src/**/*.{html,js}"],
  theme: {
    extend: {},
  },
  plugins: [],
}

3. Add the Marshmellow directives to your CSS

Add the @marshmellow directives for each of Marshmellow's layers to your main CSS file.

#src/input.css
@marshmellow base;
@marshmellow components;
@marshmellow utilities;

4. Start the Marshmellow CLI build process

Run the CLI tool to scan your template files for classes and build your CSS.

#Terminal
> npx marshmellowcss -i ./src/input.css -o ./dist/output.css --watch
  1. Start using Marshemmlow in your HTML

Add your compiled CSS fileto the <head> and start using Marshmellow's utility classes to style your content.

#src/index.html
Add your compiled CSS

Read the Getting started page for information on the framework contents, templates, examples, and more.

What to read next

Get familiar with some of the core concepts that make Marshmellow CSS different from writing traditional CSS.

- Utility-First fundamentals

Using a utility-first workflow to build complex components from a contrained set of primitive utilies

- Customizing the Framework

Customize the framework to match your brand and extend it with your own custom styles

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discuss Marshmellow CSS on GitHub

For casual chit-chat with others using the framework:

Join the Marshmellow CSS Discord Server

marshmellowcss's People

Contributors

kielan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.