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

karamel

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

karamel

A CSS framework

  • 1.0.0-alpha.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Karamel

A work in progress CSS framework

Usage

npm install karamel
@import 'karamel'

Parts

Font Size

Control the font size of any element using a range between 1 and 10.

  • f-<integer:1-10>
  • f-<unit>

Font Color

  • f-<color>

Font Style

Font styles allow you to apply several styles at once to maintain consistancy within your typography without being too restrictive. Combine with font size to maintain varied visuals without creating inconsistancies.

  • font-text
  • font-heading
  • font-link
  • font-code
  • font-quote

Letter Spacing

Set the spacing between letters.

  • ls-<integer>
  • ls-<unit>

Line Height

Set the line height of text.

  • lh-<integer>
  • lh-<unit>

Background

  • bg-<name>

Color Theme

Color schemes are useful when a design alternates between blocks of colour because often when a background colour changes other colours much change to accomodate that color.

  • color Applies the default colour theme
  • color-reverse Reverses the background and text colours of the default color theme
  • color-constrast Applies a contrasting color theme based on the default color theme.
  • color-<name> Create your own color themes

Flex

The easiest way to apply layout using the following parts.

  • flex Applies default flex layout behaviour
  • flex-block Makes all child elements behave like block elements and wraps them
  • flex-inline Males all child elements behave like inline elements and wraps them
  • flex-column Changes direction of layout
  • flex-wrap

To change the default flex behaviour pass an option through the plugin flex({default: 'flex-block'}).

Width

Specify width of an element.

  • w-<integer:1-20>
  • w-<unit>
  • w-content Sets to width of content
  • w-flex Sets width to available space
  • w-viewport Forces to width of viewport

Height

Specify height of an element.

  • h-<integer:1-20>
  • h-<unit>

Margin

Specify margin on an element.

  • m<side>?-<integer:1-20>#{1,4}
  • m<side>?-<unit>#{1,4}

Padding

Specify padding on an element.

  • p<side>?-<integer:1-20>#{1,4}
  • p<side>?-<unit>#{1,4}

The padding property allows you to use negative values when you want to apply the same negative margin as padding. Useful when you need to compensate for a parent that has padding or margins or to increase the hit area of a link.

Border

Specify a border on an element

  • b<side>?-[<width>|<style>|<color>|<align>]#{1,3}
  • b-<color>
  • b-<width>

Configure

{
    color: {
        theme: {
            default: {
                text: '',
                heading: '',
                link: '',
                border: '',
                background: ''
            },
            contrast: {},
            reverse: {}
        }
    },
    font: {
        family: {
            arial: {}
        },
        style: {
            text: {
                'font family': '',
                'line height': '',
                'letter spacing': '',
                'font weight': ''
            },
            heading: {},
            link: {},
            code: {},
            quote: {}  
        }
    }
}

Keywords

FAQs

Package last updated on 27 Aug 2019

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