jonathanharrell / Hiq

Licence: mit
A lightweight, progressive, high-IQ CSS framework.

Projects that are alternatives of or similar to Hiq

Webpack Encore
A simple but powerful API for processing & compiling assets built around Webpack
Stars: ✭ 1,975 (+747.64%)
Mutual labels:  postcss
Vanilla Back To Top
Simple and smooth Back To Top button
Stars: ✭ 179 (-23.18%)
Mutual labels:  postcss
React Native Css Modules
Style React Native components using CSS, PostCSS, Sass, Less or Stylus.
Stars: ✭ 207 (-11.16%)
Mutual labels:  postcss
Rucksack
A little bag of CSS superpowers, built on PostCSS
Stars: ✭ 1,861 (+698.71%)
Mutual labels:  postcss
Gopablo
🐺 Static site generator.
Stars: ✭ 166 (-28.76%)
Mutual labels:  postcss
Xity Starter
A blog-ready 11ty starter based on PostCSS, with RSS feed and Native Elements!
Stars: ✭ 184 (-21.03%)
Mutual labels:  postcss
React Itunes Search
🎵Simple web app for itunes search with React
Stars: ✭ 147 (-36.91%)
Mutual labels:  postcss
Next Starter Tailwind
Next.js starter styled with Tailwind CSS
Stars: ✭ 225 (-3.43%)
Mutual labels:  postcss
Front End Tooling Recipes
Collection of pre-configured front-end tooling setups for common uses.
Stars: ✭ 176 (-24.46%)
Mutual labels:  postcss
Jamstack Web Starter
Static website workflow utilising Eleventy, Tailwind CSS, Webpack and PostCSS.
Stars: ✭ 198 (-15.02%)
Mutual labels:  postcss
Hops
Universal Development Environment
Stars: ✭ 158 (-32.19%)
Mutual labels:  postcss
Gatsby Starter Hello Friend
Pretty basic starter for Gatsby that covers all of the essentials. All you have to do is start typing!
Stars: ✭ 162 (-30.47%)
Mutual labels:  postcss
Polymer Skeleton
💀 Skeleton for Polymer 3 app with Webpack, PostCSS and Service Workers ready.
Stars: ✭ 185 (-20.6%)
Mutual labels:  postcss
Deventy
A minimal 11ty starting point for building static websites with modern tools.
Stars: ✭ 157 (-32.62%)
Mutual labels:  postcss
Mobi.css
A lightweight, scalable, mobile-first CSS framework
Stars: ✭ 2,348 (+907.73%)
Mutual labels:  postcss
Reactql
Universal React+GraphQL starter kit: React 16, Apollo 2, MobX, Emotion, Webpack 4, GraphQL Code Generator, React Router 4, PostCSS, SSR
Stars: ✭ 1,833 (+686.7%)
Mutual labels:  postcss
Stylefmt
stylefmt is a tool that automatically formats stylesheets.
Stars: ✭ 2,123 (+811.16%)
Mutual labels:  postcss
Kit
ReactQL starter kit (use the CLI)
Stars: ✭ 232 (-0.43%)
Mutual labels:  postcss
Svelte Boilerplate
Svelte application boilerplate with Webpack, Babel, PostCSS, Sass, Fetch, Jest, .Env, EsLint.
Stars: ✭ 216 (-7.3%)
Mutual labels:  postcss
Css Declaration Sorter
Sort CSS declarations fast and automatically in a certain order.
Stars: ✭ 188 (-19.31%)
Mutual labels:  postcss

HiQ

A simple CSS foundation with responsive typography and input styling, built with PostCSS.

View the documentation.

In the age of Flexbox, CSS grid, and other exciting layout features, there is less and less need for a bloated CSS framework. What we do need is a simple foundation on top of which to build our own styles. Enter HiQ.

Install

Start using HiQ by using npm to install the package or use the Github repository to get the latest development version.

npm install hiq

Usage

Basic

Import the compiled minified version in your CSS:

@import 'node_modules/hiq/dist/hiq.min.css';

Advanced

Import the source version and process your CSS using PostCSS. This will give you access to the utility mixins that HiQ provides. Note that source files use the .css file extension.

@import 'node_modules/hiq/css/hiq.css';

To take full advantage of the PostCSS features in HiQ, you will need to configure your postcss.config.js to include these plugins (already installed with HiQ):

module.exports = {
    plugins: [
        require('postcss-mixins'),
        require('postcss-custom-selectors'),
        require('postcss-custom-media')
    ]
};

For more information on using PostCSS, read the PostCSS documentation usage section.

Theming

HiQ is built with custom properties and is easy to theme according to your own brand. Refer to the custom property reference, grab the properties you want to change, and include them in your project.

These can be included anywhere, before or after HiQ!

@import 'node_modules/hiq/dist/hiq.min.css';

:root {
  --hiq-button-border-color: lightgray;
  --hiq-button-background-color: lightgray;
  --hiq-button-text-color: black;
}

If you want your custom property definitions to apply globally, you should define them on the root element using :root. Otherwise, you can scope them to whatever element you wish.

For example, if you are creating a button variant, you could define the locally scoped custom properties on a specific class:

button.is-primary {
  --button-border-color: blue;
  --button-background-color: blue;
  --button-text-color: white;
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].