New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
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

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

  • 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