Code Monkey home page Code Monkey logo

fylgja-utilkit's Introduction

⚠️ This package has been deprecated

@fylgja/utilkit has been replaced and split in to 2 new packages, for the sass functions see @fylgja/sass and for CSS utility classes see @fylgja/utilpack

Fylgja UtilKit

NPM version

The UtilKit is a small helper package. that can make complex tasks easier.

By offering easy tools to speed up you development. It offers you SCSS functions and mixins. And utility-class builder that is super small compared to other utility class frameworks.

Table of Contents

Installation

npm install @fylgja/utilkit

How to use

Include the utilkit package in to your code via;

@import "@fylgja/utilkit"; // (DartSass, LibSass 3.6)
@import "@fylgja/utilkit/index"; // old way

Or just the utilkit classes, via;

@import "@fylgja/utilkit/utilkit.css";

There is allot to cover. So each section is split in it is own file.

Functions

This contains SCSS functions that extend on base SCSS function like an str-replace or an encode-svg. And has some helper mixins to easily build @media based styles.

For more on what each function/mixin does, Check it out here →

Util classes

The utilkit comes with super strong util class builder and some good defaults.

To use these classes first include the build-util mixin.

It is best to load this last after all other css. This will allows it to override most styles without using an important.

By just calling the build-util mixin will also load the default config. More on what you are loading and how to configure it here →

If you want more control on what you are loading.

First set the $utilkit-import to none.

Second (if not allready done) call the build-util mixin.

And third add your settings to it as found on the class builder readmore →

fylgja-utilkit's People

Contributors

dependabot-preview[bot] avatar grimlink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fylgja-utilkit's Issues

@media not working if the property is diffrent

Do each property is made differently the media queries also separate from each other.

Making it impossible to do something like this.

<div class="d-flex flex-column md-flex-row">..</div>

flex-column is build later, and so will win even if the row has an @media.

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.