Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stackoverflow/stacks

Package Overview
Dependencies
Maintainers
6
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackoverflow/stacks

Stack Overflow’s CSS and Design Pattern Library. Stacks is an atomic CSS library with classes and components for rapidly building Stack Overflow.

  • 0.18.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.5K
decreased by-6.3%
Maintainers
6
Weekly downloads
 
Created
Source

Stacks

Stacks is Stack Overflow’s design system. It includes the resources needed to create consistent, predictable workflows and interfaces that adhere with Stack Overflow’s principles, design language, and best practices. It’s built using immutable, atomic classes and components for rapidly prototyping, building, and styling. The Stacks website documents a range of resources, including:

  • Semantic and accessible component markup
  • Cross-browser compatible Less / CSS
  • An icon library

Stacks documentation can be found at https://stackoverflow.design/

Table of contents

Using Stacks

You can use Stacks a few different ways.

  1. Stacks is currently included within various Stack Overflow projects automatically. If you’re working on a Stack Overflow project, chances are it’s already available for you! If not, reach out to use and we’ll work on getting it setup.
  2. To include it in other projects, you can intall it via NPM:
    npm install --save @stackoverflow/stacks
    
  3. You can also include a minified, compiled Stacks CSS style sheet:
    <link rel="stylesheet" href="https://unpkg.com/@stackoverflow/stacks">
    

Getting setup

  1. Our documentation site uses the Jekyll static site generator. You will need to install that and its various dependencies first. To install, follow this guide from CloudCannon.com.
  2. We use the task runner Grunt to compile our Less, rebuild the documentation site, minify things, auto-prefix things, and other tasks. To install and run Grunt and its various dependencies, you’ll first need to install Node & NPM.
  3. Clone the project
    # Clone your fork of the repo into the current directory
    git clone https://github.com/StackExchange/Stacks.git
    # Navigate to the newly cloned directory
    cd Stacks
    
  4. Run npm install. This will install all the required project dependencies for Grunt.
  5. Run npm start. This will run Grunt which will start your local Jekyll server.
  6. Visit http://127.0.0.1:4000/ to view your changes.

Having trouble getting these steps to work? Open an issue with a setup tag.

What's included

Within Stacks you’ll find the following directories and files:

Stacks/
├── docs/
│   ├── _data/
│   ├── _includes/
│   ├── _layouts/
│   ├── assets/
|   |   ├── css/
|   │   ├── img/
|   │   ├── js/
|   │   └── less/
│   ├── base/
│   ├── components/
│   ├── guidelines/
│   └── resources
└── lib/
    ├── css/
    ├── src/
    |   ├── atomic/
    │   ├── base/
    │   ├── components/
    │   └── exports/
    ├── stacks-dynamic.less
    ├── stacks-static.less
    └── stacks.less

Compiled and minified CSS for the core system is placed in a lib/css/ folder. Do not edit files in this folder as they are automatically generated from builds. Any CSS directly related to the documentation website should be made within the docs/assets/less folder.

  1. /docs — This contains the documentation website about the Stacks system.
  2. /lib — This contains the Stacks system files.

Bugs and feature requests

Have a bug or feature request? First search existing or closed issues to make sure the issue hasn’t been noted yet. If not, review our issue guidelines for submitting a bug report or feature request.

Contributing

If you’d like to contribute to Stacks, please read through our contribution guidelines. Included are directions for opening issues, coding standards, and notes on development.

License

Code and documentation copyright 2017-2018 Stack Exchange, Inc and released under the MIT License.

FAQs

Package last updated on 03 Jul 2018

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