Giter VIP home page Giter VIP logo

ibm-security's Introduction

Carbon for IBM Security

Note: This project has moved to the Carbon for Cloud & Cognitive monorepo. The specific package is available here.

All issues and pull requests for this package should be made on that repo instead.

Carbon for IBM Security is an open-source React component library built by IBM Security. With the Carbon Design System and IBM Design Language as its foundation, the library consists of working code and resources, maintained by a vibrant community of contributors.

Licensed under the Apache License, Version 2.0 CircleCI Netlify Status PRs Welcome

Getting started

If you're just getting started and looking for React components, take a look at our Storybook.

If you only want to try out Carbon for IBM Security, you can also use CodeSandbox.

Edit CodeSandbox

If you're trying to find something specific, here's a full list of packages that we support!

Package name Description
carbon-components Carbon component styles
carbon-components-react Carbon React components
@carbon/colors Work with IBM Design Language colors
@carbon/grid Build layouts using the grid system
@carbon/icons-react Iconography assets
@carbon/layout Layout-based units and spacing scale
@carbon/type Type tokens used alongside IBM Plex

To install Carbon for IBM Security in your project, you'll need to run one of the following commands using a package manager:

# npm - https://www.npmjs.com
npm i @carbon/ibm-security

# Yarn - https://yarnpkg.com
yarn add @carbon/ibm-security

Distribution tags

Please use distribution tags to install the most relevant version of this library. e.g. npm i @carbon/ibm-security@latest:

  • @latest - Stable
  • @canary - Unstable prerelease
  • @experimental - Experimental features
  • @next - Upcoming

React

All components come with any installation of Carbon for IBM Security. You can use them by doing the following in your project:

// ES Modules - https://tc39.es/ecma262/#sec-modules
import { ComponentName } from '@carbon/ibm-security';

// CommonJS - http://www.commonjs.org
const { ComponentName } = require('@carbon/ibm-security');

Babel builds both of these variants and imports carbon-components-react using a plugin, so that no further transpilation is required.

SCSS

To add a component style to your build, import the component directly. Importing a component this way will bring in any dependencies that component has as well. The import system removes duplicate dependencies, so shared dependencies between components will not create extra CSS.

In addition, to resolve your import declarations, you will need to setup sass so that node_modules is included in the includePaths option.

@use '@carbon/ibm-security/scss/components/ComponentName';

Feature flags

Carbon for IBM Security takes advantage of feature flags to conditionally enable or disable features. To configure feature flags, you will need to update the $security--feature-flags map before importing any Sass files. For example:

$security--feature-flags: (
  css-gridish: false,
  ibm-type: false,
  security--css-custom-property-theming: false,
);

@use '@carbon/ibm-security/scss/components/ComponentName';

Also refer to feature flags in Carbon.

CSS

To add all of the components' processed and minified styles, reference @carbon/ibm-security/css/index.min.css.

Documentation

Contributing

We're always looking for contributors to help us fix bugs, build new features, or help us improve the project documentation. If you're interested, definitely check out our Contributing Guide and Carbon's Developer Guide.

License

Licensed under the Apache License, Version 2.0.

Telemetry

This project collects product dependency information for IBM and Carbon Design System properties.

ibm-security's People

Contributors

semantic-release-bot avatar simonfinney avatar jendowns avatar lily-peng avatar dbrugger avatar clairek20 avatar deriohig avatar diego-codes avatar jaknas avatar sbutler2901 avatar thekevinboyle avatar shaymurnin avatar j1mie avatar rebecca-m-l avatar dependabot[bot] avatar b3nk3 avatar areddon avatar a110605 avatar cassidyjensen avatar jamelhendricks avatar jennchao avatar kieran-clx avatar paul-balchin-ibm avatar sridharkopalli avatar i0r1 avatar jillyj 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.