JSPM

numl

0.6.30
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q64878F

Package Exports

  • numl

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (numl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

NUDE Elements

NUDE Elements is a mix of four concepts:

  • Language - Alternative markup language for the modern web that meant to be a partial HTML/CSS replacement to describe complex responsive interfaces and dynamic relations between elements without frustration but with fun and highest compatibility with other modern technologies.
  • Methodology - Simple and intuitive methodology to ensure your apps look and work great. It eliminates some confusing conceptions as "margins" and brings clarity and order to your markup.
  • Framework - Powerful next-generation JS-Powered CSS-Framework based on Custom Elements that solves many fundamental problems like element inheritance, efficient runtime CSS-generation, theme color generation, sane id linking and affordable accessibility.
  • Library - Highly-customizable built-in components to ensure you have everything to start creating handy components and wonderful accessible interfaces with responsiveness.

UNDER RAPID DEVELOPMENT, API is subject to change

Features

  • 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've 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.
  • Dark Mode effortlessly. Darker colors will be generated automatically based on colors you use in you app.
  • 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)
  • Accessibility features to simplify ARIA declarations and automate them where it's possible.
  • Framework to create your own elements, modifiers and plugins.

Usage

Add numl.js to your page and initialize it.

<script src="https://cdn.jsdelivr.net/npm/numl/dist/numl.js"></script>

And that's all! Now your application is NUDE-ready!

Try to write some HTML to build awesome interfaces.

<nu-card
  display="flex"
  width="clamp(320px, 100%, initial)"
  responsive="480px"
  labelledby="heading"
  describedby="description price"
  gap="1" flow="row|column" items="start|initial">
  <nu-icon name="package" size="4" place="start"></nu-icon>
  <nu-flow gap=".5" grow="1">
    <nu-heading level="3" id="heading">Product name</nu-heading>
    <nu-line></nu-line>
    <nu-block id="description">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-block mod="w6" color="special" size="lg|md" id="price" padding=".5x 1x">
        Only $99.99
      </nu-block>
    </nu-flex>
  </nu-flow>
</nu-card>

Open in CodePen

Desktop render

NUDE Elements

Mobile render

NUDE Elements

Nude Elements are also available via npm.

$ npm install numl --save

Import the module to your application:

import 'numl';

Sites that use NUDE Elements

Development status (v1)

Current status of development is HERE.

Here is our Trello Board.

And here is our Telegram Chat. (Ask your questions here!)

Browser Support

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

Build

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

  • dist/numl.js - IIFE-module with auto initialization. Elements' CSS included. (Exports global Nude object)
  • dist/numl.dev.js - Same as above but with helpful warnings and without minification. (Exports global Nude object)
  • dist/numl.module.js - ES-module. Tree-shaking-friendly bundle. Elements' CSS included.
  • dist/numl.module.dev.js - Same as above but with helpful warnings and without minification.

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

Local playground

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

Documentation

IN PROGRESS

Contribution

There is no contribution guideline just yet but we would love to hear any feedback from you. Feel free to leave a note at tenphi@gmail.com.

License

MIT