This package has been deprecated

Author message:

This module has been renamed to numl, please install the latest version of numl instead of nude-elements

nude-elements

0.3.1 • Public • Published

NUDE Elements

NUDE Elements is the Bootstrap of the Future. It’s JS-powered CSS Framework, that reinvents the way we create modern web apps. With NUDE Elements you can build gorgeous dynamic accessible web interfaces writing only HTML. It’s ridiculously simple to connect your favorite framework in case you need more.

UNDER RAPID DEVELOPMENT, API is subject to change

  • Simple API of elements based on well-known web standards.
  • Powerful layout elements that help you create virtually any interface you want.
  • Responsiveness with effort so little you never seen before.
  • Future proof thanks to implementation based on Custom Elements.
  • Transferable markup to be easily copy-pasted to your new project.
  • Compatible with any popular framework: Vue, React, Angular, Svelte, etc...
  • Compact size with no dependencies.
  • CSS Generation under the hood to create only CSS your application needs.
  • No Build Step needed. Edit attributes and move elements in runtime and see how they change instantly.
  • No-JS support with pregenerated CSS.
  • Support for all modern browsers. (small polyfill needed)
  • ARIA support.
  • Framework to create your own elements, modifiers and plugins.

In Action

You can see NUDE in action on the Sellerscale site.

Development status (v1)

Current status of development is HERE.

Here is our Trello Board.

Browser Support

Based on caniuse.com. Real-world support table will be presented after production-release.

Getting started

npm run build builds the library to dist, generating five files:

  • dist/nude.js - ES-module. Tree-shaking-friendly bundle. Elements' CSS included.
  • dist/nude.dev.js - Same as above but without minification and with helpful warnings.
  • dist/nude.pack.js - Classic JS-Bundle with all elements. Elements' CSS included. (Exposes global Nude object)
  • dist/nude.pack.dev.js - Same as above but without minification and with helpful warnings. (Exposes global Nude object)

npm run dev builds the library, then keeps rebuilding it whenever the source files change.

Usage

Add nude.js to your page and initialize it.

<script src="https://cdn.jsdelivr.net/npm/nude-elements/dist/nude.pack.js"></script>
<script>Nude.init();</script> 

Add nu-defaults attribute to the root element. Preferably, to the body tag. This step is optional but make sure you did it if you want to give your app more elegant look.

<body class="nu-defaults"></body>

That's all. Now your application is NUDE-ready! Try to write some HTML to build awesome interfaces.

<nu-card responsive="420px" width="clamp(320px, 100%, auto)">
  <nu-flex gap="1" items="start" flow="row|column">
    <nu-icon name="package" size="4"></nu-icon>
    <nu-flow gap=".5" grow="1">
      <nu-heading level="3">Product name</nu-heading>
      <nu-block>Very very long product description</nu-block>
      <nu-flex gap="1" items="center|start" flow="row|column-reverse">
        <nu-btn special>
          <nu-icon name="dollar-sign" inline></nu-icon>
          Order now
        </nu-btn>
        <nu-badge mod="lg|md">Only $99.99</nu-badge>
      </nu-flex>
    </nu-flow>
  </nu-flex>
</nu-card>

Nude Elements are also available via npm.

$ npm install nude-elements

Import the module to your application:

import Nude from 'nude-elements';
 
Nude.init();

Local playground

Run npm run play to view test page with few examples.

Documentation

IN PROGRESS

License

MIT.

Readme

Keywords

none

Package Sidebar

Install

npm i nude-elements

Weekly Downloads

4

Version

0.3.1

License

none

Unpacked Size

760 kB

Total Files

12

Last publish

Collaborators

  • tenphi