GithubHelp home page GithubHelp logo

sobhandash / vera-ui Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 762 KB

A ready-to-use and lightweight CSS Library for developing fast and responsive web interfaces!

Home Page: https://vera-ui.netlify.app/

SCSS 100.00%
css3 html5 scss vanillajs

vera-ui's Introduction

A ready-to-use and lightweight CSS Library for developing fast and responsive web interfaces!


Table of contents


Overview


Usage


CSS

Just copy-paste the stylesheet <link> into your <head> to load our CSS.

<link rel="stylesheet" href="https://vera-ui.netlify.app/css/main.css" />

JS

Some of our components require the use of JavaScript to function. Place our script at the end of your page content, right before the closing <body> tag, to enable them.

<script src="https://vera-ui.netlify.app/js/main.js"></script>

Documentation

Check out our documentation website.



Screenshot

Desktop Homepage

Desktop Getting Started

Mobile Homepage

Mobile Button


My process

Built with

  • Semantic HTML5 markup
  • SCSS
  • CSS3
  • Flexbox
  • Mobile-first workflow
  • VanillaJS

What I learned

SCSS is awesome! I did use it once before but not on such a big scale. I learned that css can be optimized and it that is clean and reusable. Large projects can really benefit from using SASS or SCSS.


One of the things that I loved about SCSS is how easy it is to nest elements. Also we can group various classes and tap them as a whole.


.btn {
  padding: 1rem;
  cursor: pointer;
  color: red;
}
.btn:hover {
  background-color: blue;
}
.btn.btn-icon {
  padding: 1rem 1.5rem;
}
.btn.btn-icon span {
  padding: 0 0.5rem;
}
.btn.btn-primary {
  background-color: red;
  color: blue;
}
.btn.btn-primary:hover {
  background-color: blue;
}
.btn.btn-primary-outline {
  background-color: black;
}
.btn.btn-primary-outline:hover {
  background-color: red;
}

The above CSS code can be written in SCSS as below:

.btn {
  padding: 1rem;
  cursor: pointer;
  color: red;

  &:hover {
    background-color: blue;
  }
  &#{&}-icon {
    padding: 1rem 1.5rem;

    span {
      padding: 0 0.5rem;
    }
  }
  &#{&}-primary {
    background-color: red;
    color: blue;
    &:hover {
      background-color: blue;
    }

    &-outline {
      background-color: black;
      &:hover {
        background-color: red;
      }
    }
  }
}

Continued development

  • Light Mode
  • Add new components
  • Structured code in a better way
  • Learn more about functions and mixins in SCSS
  • Try to optimize more of the code

Useful resources

  • SCSS - This helped me greatly in learning SCSS and its variety of features. I really liked the examples given in SCSS documentation which helped me a lot to transition from writing CSS to SCSS.

  • SCSS to CSS - This helped me to figure out how to write some stuff in SCSS when I had a idea how to write in CSS.

Author

Acknowledgments

A big thanks to NeoGrammers for giving me an inspiration to create something on my own, even if I'm not a part of it. Its really great to see these guys build amazing stuff and put out content to get inspired from!

vera-ui's People

Contributors

sobhandash avatar

Watchers

 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.