iC Framework CSS
iC Framework is a CSS framework developed by iCHEF, designed for building flexible, accessible, and responsive web applications. It provides a set of pre-defined styles and an exclusive icon set (`ic-icon.*`) tailored specifically for iCHEF's branding and aesthetic. The current stable version available on npm is 2.0.0. The framework's primary distribution methods include direct inclusion via a GitHub CDN for HTML `<link>` tags or installation via npm for integration into modern JavaScript/TypeScript build pipelines. It offers minified CSS for production environments and provides source files for developers who wish to build from scratch. Based on the copyright date of 2016, the project appears to be in a maintenance mode or minimally updated. Its key differentiator lies in its specialized styling and components for iCHEF-branded applications, rather than being a general-purpose framework like Bootstrap or Tailwind.
Common errors
-
Module not found: Can't resolve 'ic-framework/dist/css/ic-framework.min.css' in '...' or similar CSS loading errors.
cause The `ic-framework` package might not be installed, or your module bundler (e.g., Webpack, Vite) is not correctly configured to resolve paths within `node_modules` or to process CSS files.fixEnsure the package is installed with `npm install ic-framework` or `yarn add ic-framework`. Verify that your bundler configuration includes appropriate loaders (e.g., `css-loader`, `style-loader` for Webpack) to handle CSS imports. -
TypeError: icFramework is not a function/object (or similar errors when trying to call or access properties on an imported `ic-framework` variable).
cause The `ic-framework` package contains only CSS and font assets; there are no JavaScript exports or APIs. Developers are often accustomed to frameworks with associated JavaScript components.fixThe framework is applied by importing its CSS file (e.g., `import 'ic-framework/dist/css/ic-framework.min.css';`) or linking it in HTML. Do not attempt to call JavaScript functions or access properties from the imported package as it provides no such interface.
Warnings
- gotcha The project's README and copyright information suggest it has not been actively maintained or significantly updated since 2016. This may lead to compatibility issues with newer browsers, lack of support for modern CSS features, or potential security vulnerabilities in its dependencies.
- gotcha This package provides only CSS stylesheets and font assets. It does not include any JavaScript APIs, components, or utilities. Developers accustomed to frameworks with accompanying JS may mistakenly expect functional exports.
Install
-
npm install ic-framework -
yarn add ic-framework -
pnpm add ic-framework
Imports
- ic-framework.min.css
import * as icFramework from 'ic-framework/dist/css/ic-framework.min.css';
import 'ic-framework/dist/css/ic-framework.min.css';
- ic-framework (package root)
const icFramework = require('ic-framework'); - ic-icon.woff (font asset)
import { icIcon } from 'ic-framework/dist/fonts/ic-icon.woff';// Reference in CSS: url('~ic-framework/dist/fonts/ic-icon.woff');
Quickstart
npm install ic-framework // In your main JavaScript/TypeScript entry file (e.g., src/index.ts): import 'ic-framework/dist/css/ic-framework.min.css'; // Or, in your HTML for direct CDN usage: // <link rel="stylesheet" href="//ichef.github.io/iC-framework/dist/css/ic-framework.min.css"> // You can now use the iC Framework CSS classes in your HTML: // <div class="ic-container"> // <h1 class="ic-heading-primary">Hello iC Framework!</h1> // <button class="ic-btn ic-btn-primary">Click Me</button> // <i class="ic-icon ic-icon-check"></i> // </div>