« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 647 ms

GitHub - freeCodeCamp/ui: freeCodeCamp's UI Component Library

Source: https://github.com/freeCodeCamp/ui

Repository navigation

ui
Public

About

freeCodeCamp's UI Component Library

opensource.freecodecamp.org/ui

Resources

Readme BSD-3-Clause license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

80 stars

Watchers

6 watching

Forks

39 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


1,298 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.github .github    
.husky .husky    
.storybook .storybook    
__mocks__ __mocks__    
src src    
utils utils    
.babelrc.js .babelrc.js    
.editorconfig .editorconfig    
.gitignore .gitignore    
.lintstagedrc.json .lintstagedrc.json    
.nvmrc .nvmrc    
.prettierignore .prettierignore    
LICENSE.md LICENSE.md    
README.md README.md    
eslint.config.mjs eslint.config.mjs    
package.json package.json    
pnpm-lock.yaml pnpm-lock.yaml    
pnpm-workspace.yaml pnpm-workspace.yaml    
postcss.config.js postcss.config.js    
renovate.json renovate.json    
rollup.config.mjs rollup.config.mjs    
tailwind.config.js tailwind.config.js    
tsconfig.json tsconfig.json    
vitest-setup.ts vitest-setup.ts    
vitest.config.ts vitest.config.ts    

Repository files navigation

freeCodeCamp's component library is a collection of reusable React components that can be used in your projects. The components are built with accessibility in mind and are designed to be easy to use and customize.

Installation

  • Run the following command to install the library:
pnpm install @freecodecamp/ui
  • Import the library's base stylesheet into your app:
// app.tsx
import "@freecodecamp/ui/dist/base.css";
import "./my-app.css"; // Your custom stylesheet should be imported after, in order to override the base.
  • Use the getThemingClass util to get a CSS class for theming, and add the class to the body element:
import { getThemingClass } from "@freecodecamp/ui";

const MyApp = () => {
	const cls = getThemingClass();

	return <body className={cls}></body>;
};

Docs

To see the components in action, check out the Storybook .

About

freeCodeCamp's UI Component Library

opensource.freecodecamp.org/ui

Resources

Readme BSD-3-Clause license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

80 stars

Watchers

6 watching

Forks

39 forks Report repository

Releases

Sponsor this project

Packages

Contributors

Languages