Giter VIP home page Giter VIP logo

nimiq-style's Introduction

Nimiq Style Framework

The Nimiq CSS framework, defining UI look and feel: colors, fonts, sizes.

Please refer to the demo page for examples and in-depth explanations of available UI components, what they look like, and how to use them.

The style framework consists of two parts, the CSS definitions and the fonts (available via Google Fonts).

Add Nimiq Style CSS to your project

From NPM

yarn add @nimiq/style
# or
npm install @nimiq/style

Then import the style into your CSS or module files:

@import 'node_modules/@nimiq/style/nimiq-style.min.css';

To use icons, you need to link to the icon sprite:

<svg class="nq-icon">
    <use xlink:href="node_modules/@nimiq/style/nimiq-style.icons.svg#nq-hexagon"/>
</svg>

From a CDN

You can also link to the Nimiq Style CSS directly in your HTML:

<link href="https://cdn.jsdelivr.net/npm/@nimiq/[email protected]/nimiq-style.min.css" rel="stylesheet">

Note: To use icons, you need to host and serve the nimiq-style.icons.svg file yourself, because cross-origin requests of SVG sprites are not allowed by browsers.

Use the official fonts

To use Nimiq's main font "Muli", include it from Google Fonts:

<link href="https://fonts.googleapis.com/css?family=Muli:400,600,700" rel="stylesheet">

Nimiq also uses the monospace font "Fira Mono" to display account numbers. Include the required subset from Google Fonts:

<link href="https://fonts.googleapis.com/css?family=Fira+Mono&text=0123456789ABCDEFGHJKLMNPQRSTUVXY%20" rel="stylesheet">

nimiq-style's People

Contributors

sisou avatar robinlinus avatar danimoh avatar bettelstab avatar svub avatar julianbauer avatar brantje avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.