New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@getbase/base

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getbase/base

A Rock Solid, Responsive CSS Framework built to work on all devices big, small and in-between.

  • 4.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
436
increased by21.45%
Maintainers
1
Weekly downloads
 
Created
Source

Base

A Rock Solid, Responsive CSS Framework built to work on all devices big, small and in-between.

Lightweight and minimal code. Spend less time overriding styles and focus more time on creating beautiful website applications.

Travis Build Status David Dependencies Status


Table of contents


Overview

Base itself is a very thin layer which includes Normalize.css and a few mixins to get you started.

You can then include what you need on top of Base such as typography, grids, individual components, etc and make it yours.


Installation

If you are creating a new project from scratch, it is highly recommended that you use base starter.

git clone https://github.com/getbase/starter.git \
new-website && cd new-website && rm -rf .git
npm install && npm start

For existing projects, simply install base using NPM.

npm install --save @getbase/base

Once you have Base installed, you can build on top of it by including your own custom styles or add the ready made modules

CSS Import:
import url("https://cdn.rawgit.com/getbase/base/master/css/index.css");
SCSS Import:
/* Import Base */
@import "node_modules/@getbase/base/scss/index";
/* Your Other Styles */
@import "main"
LESS Import:
/* Import Base */
@import "node_modules/@getbase/base/scss/index";
/* Your Other Styles */
@import "main"

Documentation

Base includes the latest version of Normalize.css by default and includes a few Mixins to get you started.

SCSS

Variables
VariablePurposeDefault
$breakpoint-mBreakpoint value for medium devices (tablet)740px
$breakpoint-lBreakpoint value for large devices (desktop)960px
$breakpoint-xBreakpoint value for extra large devices (HD)1120px
Mixins
MixinPurposeExampleOutcome
@include breakpoint(x)Apply a breakpoint for a particular device. Accepts values m, l and xl (m: medium, l: large, xl: extra large).box { @include breakpoint(m) { ... } }Applies styles to .box for medium devices and up
@include background-alpha(hex, percentage)Applies a background color with opacity@include background-alpha(#000, 50%)Applies a background color of black with opacity set to 50%
@include animation(time)Applies animation speed@include animation(2s)Animation will run for 2 seconds

LESS

Variables
VariablePurposeDefault
@breakpoint-mBreakpoint value for medium devices (tablet)740px
@breakpoint-lBreakpoint value for large devices (desktop)960px
@breakpoint-xBreakpoint value for extra large devices (HD)1120px
Mixins
MixinPurposeExampleOutcome
.background-alpha(hex, percentage)Applies a background color with opacity.background-alpha(#000, 50%)Applies a background color of black with opacity set to 50%
.animation(time)Applies animation speed.animation(2s)Animation will run for 2 seconds

Demo

View page example with just Base stylesheet applied.


Modules and Components


Templates

There are a collection of premium templates built with Base which are available to download on Gumroad.


Support

  • IE10+ and all other modern browsers.
  • Please specify browsers you need to support in package.json according to browserslist docs.

Credits


Authors

Matthew Hartman

License

Code released under the MIT Open Source license.

Keywords

FAQs

Package last updated on 05 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc