0.5.0 • Published 10 months ago

vcss.css v0.5.0

Weekly downloads
107
License
MIT
Repository
github
Last release
10 months ago

VCSS

Semantic and minimal CSS library, only about 2.5Kb gzipped and minified.

Inspired by marx and sanitize but with extras:

  • Different defaults, more light weight
  • More SCSS variables and colors
  • Extra tag styles and utilities
  • Lots of tweaks and bug fixes
  • Mobile first

Check out the demo

Usage

If you're using plain CSS you can just include the dist/vcss-min.css file.

If you're using SCSS:

npm i vcss.css

and then include in app with:

@import '../node_modules/vcss.css/scss/vcss.scss`

Variables

Here's the list of available variables at the moment (as found in scss/_variables.scss):

// Colors
$primary: #44f !default;
$text: #111 !default;
$white: #fff !default;
$black: #000 !default;
$light: #dfdfdf !default;
$dark: #5a5a5a !default;
$highlight: #ffa !default;
$danger: #f55 !default;
$line: #eaeaea !default;
$disabled: #fafafa !default;
$medium: #ccc !default;
$preserve: #fafafa !default;
$button: #efefef !default;
$small: #999 !default;

// Basic stylings
$border: 1px solid $line !default;
$border-radius: 4px !default;

// Padding
$xs-pad: 4px !default;
$sm-pad: 8px !default;
$md-pad: 16px !default;
$lg-pad: 20px !default;
$xl-pad: 40px !default;

// Breakpoints
$xl-breakpoint: 1140px !default;
$lg-breakpoint: 960px !default;
$md-breakpoint: 600px !default;
$sm-breakpoint: 400px !default;
$xs-breakpoint: 360px !default;

// Links
$link-color: $primary !default;
$link-hover-color: darken($link-color, 10%) !default;

// Buttons
$button-background-color: $button !default;
$button-border-radius: $border-radius !default;
$button-color: $text !default;
$button-padding: $sm-pad $md-pad !default;
$button-border: 1px solid $medium !default;
$button-font-size: 1rem !default;
$button-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
$button-hover-background-color: darken($button, 7.5%) !default;
$button-active-background-color: darken($button, 10%) !default;
$button-focus-outline: 0 !default;
$button-focus-shadow: 0 0 0 0.2rem fade_out($primary, 0.75) !default;
$button-disabled-background-color: $button !default;

// Forms
$label-color: $dark !default;
$label-font-size: 90% !default;
$label-line-height: 2 !default;
$input-border: 1px solid $medium;
$input-focus-background-color: #fff !default;
$input-focus-border-color: mix($primary, #fff) !default;
$input-focus-outline: 0 !default;
$input-focus-shadow: 0 0 0 0.2rem fade_out($primary, 0.75) !default;
$input-outline: 1px thin $line !default;
$input-disabled-background-color: $disabled !default;
$input-readonly-background-color: $disabled !default;
$input-invalid-border-color: darken($danger, 10%) !default;
$input-invalid-color: $danger !default;
$input-focus-invalid-outline-color: $danger !default;

// Font
$sans-serif: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol" !default;
$serif: Georgia, Times, 'Times New Roman', serif !default;
$monospace: Menlo, Monaco, Consolas, 'Courier New', monospace !default;
$font-family: $sans-serif !default;

// Typography
$font-size: 16px !default;
$font-size-small: ceil(($font-size * 0.85)) !default;
$font-size-h1: 40px !default;
$font-size-h2: 32px !default;
$font-size-h3: 25px !default;
$font-size-h4: 18px !default;
$font-size-h5: 16px !default;
$font-size-h6: 80% !default;
$line-height: 1.6 !default;

MIT licensed. Enjoy!

0.5.0

10 months ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.16

3 years ago

0.2.15

3 years ago

0.2.14

3 years ago

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.3

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago