npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@circutor/ui

v3.4.0

Published

Circutor Design System UI

Downloads

813

Readme

Getting Started


Overview

Circutor CDS (Circutor Design System) is a set of rules to unify the interfaces of Circutor applications. There are several ways to associate the CDS with a front end project:

Circutor UI

NPM

Circutor UI is the most agnostic and flexible system of the entire CDS, it is the base of the all systems. It is created with sass and I offered several ways to use it.

UI for node

If your application uses node you can install the library with a command line in the terminal

npm i circutor/ui

By executing this command you already have the circutor ui as a dependency. We recommend that you update the version manually, and remove the circumflex accent, e.g. "@circutor/ui": "1.0.19"

You have 2 ways to use the library:

Using css

You must import from Circudor UI the core and place it so that it is always present. e.g. @circutor/ui/css/cds-core.css

Also for each element you use you must import the corresponding css, for example if you use buttons you must use the @circutor/ui/css/cds-buttons.css

Using scss

Also for each element you use you must import the corresponding css, for example if you use buttons you must use the

///*! cds-config.scss | Circutor Design System 
/// ======================================================

/// Set the config variables to create the font-face
/// * Only needed if your project use Circutor typography or another custom typography.
/// ======================================================

/*
$cds-cfgff-name-400: "NettoPro";
$cds-cfgurl-400: "path/to/your/resources/font/folder/your_font.otf";
$cds-cfgformat-400: "opentype";
$cds-cfgfw-400: 400;

$cds-cfgff-name-700: "NettoProBold";
$cds-cfgurl-700: "path/to/your/resources/font/folder/your_font.otf";
$cds-cfgformat-700: "opentype";
$cds-cfgfw-700: 400;

/// Set the path variables of Circutor Icons location
/// ======================================================

$cds-cfgurl-eot-icons: "path/to/your/resources/icons/folder/CDSIcons.eot";
$cds-cfgurl-ttf-icons: "path/to/your/resources/icons/folder/CDSIcons.ttf";
$cds-cfgurl-woff-icons: "path/to/your/resources/icons/folder/CDSIcons.woff";
$cds-cfgurl-svg-icons: "path/to/your/resources/icons/folder/CDSIcons.svg";
*/

/// Override the font family variables
/// ======================================================

/*
$cds-font-family-400: sans-serif;
$cds-font-weight-400: 400;
$cds-font-family-700: sans-serif;
$cds-font-weight-700: 700;
*/

/// Override config variables
/// ======================================================

/*
$cds-size-factor: 0.2;
$cds-br: 0rem; //Use base-10 in rem. I.e. 20px = 2.0rem
*/

/// Override available color variables
/// ======================================================

/*
$cds-color-body-light: black;
$cds-color-primary-light: blue;
$cds-color-background-light: rgb(222, 225, 235);
*/

@import '@circutor/ui/scss/common/cds-core';

Finally you will see that we import the cds-core which is in charge of preparing all the CDS to be used.

You will need to use this file in the head of your project or for each of the templates you want to provide with CDS.

To use the different CDS elements you should import them, e.g. @circutor/ui/scss/common/cds-buttons.css.