Socket
Book a DemoInstallSign in
Socket

sass-theme-defaults

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sass-theme-defaults

Personal default classes and variables I use in my projects

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

sass-theme-defaults

npm version

Importable personal default classes and variables I use in my projects

Github Pages Demo. NPM Module Link.

Usage

Install to the project:

npm install --save sass-theme-defaults

Simply import at the top of a sass file to get going:

@import './node_modules/sass-theme-defaults/index.scss';

// Other Sass down here...

I'd highly suggest visiting the Github Pages Demo for the classes and variables. but here is a quick run down of all of them:

$standard - The dark color, should be used for things like font color

$sub-standard - The light-dark color, should be used for things like sub text

$inverse - The opposite of $standard. The light color, could be used for a page background color

$links - The light blue color. Should be used for links outside of the current page

$transparent-x - Available 'x' values are 25, 50, 75. A dark transparent color, could be used to darken the page when a sidebar opens.

$transparent-light-x - Available 'x' values are 25, 50, 75. A light transparent color, could be used to lighten parts of the page.

.center - centers a div or display: block element

.center-text - centers a div and its text elements

.center-children - centers a divs children horizontally and vertically

.center-children-horizontal - centers a divs children only horizontally

.center-children-vertical - centers a divs children only vertically

Example

In HTML on an element:

<div class="center-text">
  I am centered! 🖥️
</div>

Within Sass:

.my-awesome-class {
  @extends .center

  background-color: $standard;
}

Contributing

Clone the project:

git clone https://github.com/torch2424/sass-theme-defaults.git

Install devDependencies:

npm install

Run the command: npm run build, to continuously see changes to the index.html in the docs folder. Sorry, but no livereload or watch is set up for this (Since it's just a simple little package).

LICENSE

MIT

Keywords

sass

FAQs

Package last updated on 04 Sep 2017

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