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

cui-styles

v0.4.3

Published

CSS styles for cUI framework

Downloads

26

Readme

cUI Styles

CSS styles for cUI ecosystem.

Features

cUI Styles delivers CSS components for cUI frameworks. It can be used as standalone as well in combination with reactive front-end frameworks like React, Vue, Angular or vanilla javascript. By default module can be imported as common css file into the project. Project structure allows for building (with some requirements) an own custom, specialized project.

All features and components use classes as the styling way.

Library

cUI Styles comes already built as CSS file in minimized form, ready for import to HTML document or to project. More information about build and import options can be found in Documentation

Created with Sass

cUI Styles is created in Sass. Uses mixins to split components features into smaller pieces so it is easier to built custom realease of the library. More details in Documentation

CSS variables

Most of cUI Styles components are based on CSS variables what makes them more accessible and easy to adjust even in runtime. Such solution brings a flexibility to components but also introduces some limitations in terms of creation of custom builds. More info can be found in the Documentation

Responsiveness

Responsivenes in the library is mostly achieved by common usage of media-queries. Framework uses four breakpoints to provide styling for all possible screen size. Responsiveness is partially achieved by calculating using a ratio on the size depended values

Dark theme

Library comes with built-in dark mode. Switch to this mode can be done by setting '*-dark' class in documents body. More details about this feature can be found in Documentation

Custom prefix

cUI Styles introduces a convinient solution for cases where project's specifics requires custom library prefix. When building custom version it is enough to specify variable $prefix at the very beginning of the document. More details in Documentation.

Components

cUI Styles delivers package of styled components and features:

  • Grids - based on flexbox. Divides container on six parts. Widths of the children can be controlled based

System was not built on grids are already commonly used to built whole site's layout. Having two or more grids is a bad practice.

  • Spaces - gives additional paddings and margins. They work with sizes breakpoints so spaces can be adjusted depending on screen size
  • WIP...

Changelogs

To see what's new, changed or fixed in the latest release, see Changelog

Documentation

WIP

Installation

Add to document

To use built package, it is enough to add link in HTML document.

Import to project

First install package:

npm i cui-styles

Import to project

import "cui-styles/dist/cui-styles.css";

Custom build

Custom build can be created (sometimes they are even preferable options), but some rules must be preserved. cUI components will not work without CSS variables and SCSS so it is important to use root, variables at the begining of the project. Here is an example project structure:

$prefix : 'cui' !default;

@use 'variables'with($prefix: $prefix);
@use "core/root"with($prefix: $prefix);
@use 'core/head';
@use 'core/body';
@use 'dark';
@use 'components/print';
@use 'commons';
@use 'base';
@use 'components';

:root {
    @include root.variables;
}

html {
    @include head.html;
}

body {
    @include body.main-body;
}

@include commons.definitions;
@include base.definitions;
@include components.definitions;
@include dark.definitions;
@include print.definitions;

Add the @use of the variables (keeps Sass variables) and root (holds CSS variables) at the beginning of the document. Then the rest of the modules can be importe

NOTICE: 'root.variables' are included in ':root' section in order to work properly