Socket
Book a DemoInstallSign in
Socket

@sparkbox/sparkle

Package Overview
Dependencies
Maintainers
17
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sparkbox/sparkle

✨ Sparkle CSS Framework

latest
Source
npmnpm
Version
1.4.5
Version published
Maintainers
17
Created
Source

✨ Sparkle CSS Framework

A highly customizable utility-based CSS Framework

From your friends at Sparkbox.

Spin Up the Sparkle Styleguide in a Browser

  • From the root, run npm install to install project dependencies.
  • Run npm run docs to create the styleguide directory
  • Navigate to the directory cd styleguide
  • Run python -m SimpleHTTPServer 3000 to spin up the project locally
  • Navigate to localhost:3000 in your browser

Creating a Sparkle Sub-System

  • Default Sass Map with at least three example values.
  • A function to access the map.
  • A value added to the settings map to enable/disable the utility classes.
  • Utility classes that meet this criteria:
    • A check for if the utility class is enabled/disabled.
    • Utility classes should be written to accept a namepspace.
    • Utility classes should be written to loop through all of the values in the map.
    • Loop includes media query prefixes for the class to be called at certain breakpoints.
  • Write test to check the function and class names.
  • Write documentation that can be configurable to the settings.

Mixins

  • Visually-hidden
  • Unbuttonize
  • Delist
  • Delink
  • Loop-mq
  • Antialiased
  • Clearfix

Functions

  • Map Getters (A system map retriever)
  • Strip-Unit
  • Negative
  • Ratio
  • Stringify
  • Remify

Systems

  • Spacing
    • Padding
    • Margin
    • Position
  • Color
    • Foreground
    • Background
    • Border
  • Grid
  • Font
    • Family
    • Size
    • Weight
  • Border
  • Order
  • Z-Index
  • Breakpoints and Print

Utilities

  • Display
  • Flex
  • Text Alignment
  • Position
  • Font Style
  • Grid
Sass Documentation
File structure
Sparkle Settings
Importing
Testing

FAQs

Package last updated on 19 Nov 2021

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