Socket
Book a DemoInstallSign in
Socket

tachyons-extendable

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

tachyons-extendable

Extendable functional CSS for humans

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

TACHYONS EXTENDABLE

Extendable functional css for humans.

Quickly build and design new UI without writing css.

This is a fork of tachyons-custom which makes use of PostCSS placeholders. When used in conjunction with postcss-extend it is possible to take full advantage of Tachyons without bloating your markup with classnames. Since placeholders act as virtual classes, only those which are @extended will be included in the final output CSS.

src/_position.css
/*

   POSITIONING
   Docs: http://tachyons.io/docs/layout/position/

   Media Query Extensions:
     -ns = not-small
     -m  = medium
     -l  = large

*/

%static { position: static; }
%relative  { position: relative; }
%absolute  { position: absolute; }
%fixed  { position: fixed; }

@each $bkpt, $nmsp in (--breakpoint-not-small, --breakpoint-medium, --breakpoint-large), (ns, m, l) {
  @media ($bkpt) {
    %static-$(nmsp) {
      @extend %static;
    }
    %relative-$(nmsp) {
      @extend %relative;
    }
    %absolute-$(nmsp) {
      @extend %absolute;
    }
    %fixed-$(nmsp) {
      @extend %fixed;
    }
  }
}

Requirements

Getting started

With tachyons-extendable and the deps above installed and configured, it is then simply a matter of composing CSS files in your application using the provided placeholders.

.big-title {
  @extend %pa1;
  @extend %bg-black-90;
  @extend %white;
  @extend %lh-copy;
  @extend %tracked-tight;
}

Local Setup

Clone the repo from github and install dependencies through npm.

git clone https://github.com/toddlawton/tachyons-extendable.git
cd tachyons-extendable
npm install

License

MIT

Keywords

css

FAQs

Package last updated on 14 Nov 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.