Nihilistic Party Mantra


    2.0.0 • Public • Published


    CircleCI devDependencies Status npm version


    A powerful, configuration-first front-end framework.

    In the box

    The framework features:

    • A flex-grid for layouts
    • Styling for common tags: buttons, paragraphs, headers, etc.
    • Configuration file to apply core brand styling to all elements, including an option for name-spacing.
    • Functional JavaScript components: modals, accordions, etc.

    Easy setup

    Setting up and using Undernet is fairly straightforward:


    Simply download the compiled assets and add them to your layout. Great for prototyping.

    <!DOCTYPE html>
        <title>I'm using Undernet!</title>
        <link rel="stylesheet" href="path/to/undernet.min.css">
        <!-- Add new styles after -->
        <script type="text/javascript" src="path/to/undernet.bundle.min.js" async></script>
        <script type="text/javascript">

    Advanced setup

    If you prefer to have more control over the styles and components, you are free to use the uncompiled SCSS modules along with the JS modules (via npm or as static assets).


    For the most control over your CSS, it's highly recommended to integrate the SCSS modules with your asset pipeline. Simply link to the main undernet.scss file in your main stylesheet (only once!) before your other styles (or anywhere, if you've added an optional scope to the styles):

    @import "path/to/undernet";

    You can then easily customize _config.scss with your intended brand attributes. This is where you'd also define a scope to isolate Undernet styles.

    For more details on the config, check out the Getting Started page.

    NPM / JS modules

    Another option is to use the npm package and borrow the modules you need. This is great for webpack where you can tree shake the modules you won't be needing.

    $ npm install --save-dev undernet

    Check out the docs to see the necessary DOM structure for a given component.

    Then require or import the dependency in your js, or add it to a script tag in your main layout (see the Easy setup method above for script usage).

    import Undernet from "undernet"
    // start all components
    // or only use a single component, e.g. the Modal:
    // NOTE: if you use Undernet.start(), you're effectively doing nothing with this method call


    Undernet fully supports use in React. You simply need to call the .start() method in componentDidMount(), and then .stop() in componentWillUnmount() (to prevent unnecessary event listeners when the components are no longer visible):

    export default class SomeComponent extends React.Component {
      componentDidMount() {
      componentWillUnmount() {
      render() {
        return <div>
          // ... modal markup here!

    Since Undernet doesn't have visibility into React's state, and that's something you're worried about (i.e., adding new components dynamically), then add this bit to cover your bases:

    export default class SomeComponent extends React.Component {
      componentDidUpdate() {


    See for more details on git flow and recommendations for pull requests/issues.

    Fork and clone for development

    Clone the repo and re-clone the wiki contents.

    $ git clone
    $ cd undernet/
    $ npm run setup

    The site is both a demo and marketing tool. It is built with my own webpack setup called Pulsar. It's basically just Webpack + React, so don't panic.

    Run the dev server

    $ npm run watch

    Make a production build

    $ npm run build

    Run tests with istanbuljs/nyc coverage stats (for the site only)

    $ npm run test

    Load tests on file save (also for the site)

    $ npm run test:w

    Building the framework

    The site itself is a demo of the framework, so you should be able to work on the framework source itself while the site runs in the background.

    The build environment works only for macOS at the moment.

    To compile and test the framework in this project, you'll need to have a stable version of ruby for sass. I recommend using ruby-install and managing your version for this project with chruby or rvm. Use whatever setup is easiest for your machine.

    Then globally install sass and rollup:

    $ gem install sass
    $ npm install -g rollup
    $ npm run build:development

    From there, everything should build correctly: the framework scss and js will be prettified by prettier and distributions of js and css will be output using babel-cli, rollup, sass, and a few macOS specific commands for zipping/prepping files for release. The output typically takes 5-10 seconds at most.

    Rebuild assets on the fly

    To rebuild fresh js assets while running the site's dev server, run this in a separate session to auto-reload assets while you work:

    $ npm run js:watch

    New releases

    New releases are simply zipped and compiled files. You can create a new release using:

    $ npm run build:release

    This will compile and zip framework assets for a new version.


    npm i undernet@2.0.0






    Unpacked Size

    315 kB

    Total Files


    Last publish


    • geotrev