@candy.thieves/ui-kit-lumos
v0.0.52
Published
π¨ **Component library for **Lumos app** β a unified design system and interface elements.**
Readme
Lumos UI-kit
π¨ Component library for Lumos app β a unified design system and interface elements.
π Description:
UI Kit is a centralized library of reusable components created to ensure interface consistency across the Lumos app ecosystem.
The project is built on React and TypeScript, using Storybook for component documentation and visual testing. Build is optimized with Vite.
π₯ Team:
Team-lead - Vladislav Kravchenko
Front-end:
- Vikastgn - Viktoriya Stognieva (Main)
- Intrstng - Andrei Babich
- hoakiin - Ekaterina Olesik
- VladSkij - Vladislav Skalskij
- tymanskaya - Ekaterina Tymanskaya
π Deploy
π Related Projects
UI-kit Lumos npm-package β a UI component library (UI-kit) for the Lumos application
UI-kit Lumos repository β UI-kit library repository for the Lumos application
Lumos app repository β main application using the UI-kit
Lumos app deploy link β deployment link for the application using the UI-kit
Figma Design β mockups and design system
π Instructions for Integrating UI-kit with the app
π¦ UI-kit library installation
npm install @candy.thieves/ui-kit-lumos@latest
# or
yarn add @candy.thieves/ui-kit-lumos@latest
# or
pnpm add @candy.thieves/ui-kit-lumos@latestβοΈ Basic Setup
π Global Style import for React app (Vite, CRA)
π¨ Add the styles to main.tsx:
// my-vite-app/src/main.tsx
import '@candy.thieves/ui-kit-lumos/dist/index.css'π» Using Components
// my-vite-app/src/components/MyComponent.tsx
import { Button } from '@candy.thieves/ui-kit-lumos'
import { Typography } from '@candy.thieves/ui-kit-lumos'
export const MyComponent = () => {
return (
<div>
<Typography variant={'h2'} color={'green'}>
How to use UI-kit components
</Typography>
<Button variant="primary" fullWidth onClick={() => console.log('clicked')}>
Click me!
</Button>
</div>
)
}π Global Style import for Next.js (App Router)
π¨ Add the styles to your root layout file:
// my-next-app/app/layout.tsx
import '@candy.thieves/ui-kit-lumos/dist/index.css'
import type { Metadata } from 'next'
export const metadata: Metadata = {
title: 'My Next.js App',
}
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>{children}</body>
</html>
)
}π» Using Components
// my-next-app/components/MyComponent.tsx
'use client'
import { Button, Typography } from '@candy.thieves/ui-kit-lumos'
export const MyComponent = () => {
return (
<div>
<Typography variant={'h2'} color={'green'}>
How to use UI-kit components
</Typography>
<Button variant="primary" fullWidth onClick={() => console.log('clicked')}>
Click me!
</Button>
</div>
)
}π Getting started locally with the UI-kit library
Follow these steps to run the application locally:
Clone the repository:
git clone https://github.com/candysthieves/lumos-ui-kit.gitNavigate to the project directory:
cd lumos-ui-kitSwitch to the
developbranch:git checkout developInstall dependencies:
pnpm installIf you have problems with running the script, use the following command in the CLI:
pnpm install --legacy-peer-depsLaunch the StoryBook local development server to visually test components:
pnpm run storybookAccess the application:
Open your browser and navigate to the link provided in the CLI.*
βοΈAvailable Scripts
dev: π» Starts a local Vite development server for quick debugging of the application.pnpm run devbuild: π¦ Checks the TypeScript, then it builds an optimised production build of the project.pnpm run buildtype:check: π· Checks TypeScript types without generating files; for validation purposes only.pnpm run type:checkstylelint:check: π¨ Checks SCSS files for stylelint errors.pnpm run stylelint:checkstylelint:fix: π§ Automatically fixes SCSS stylelint errors.pnpm run stylelint:fixformat: β Checks and automatically formats code with Prettier.pnpm run formatlint: π Runs ESLint to check for code quality issues and automatically fixes ESLint errors.pnpm run lintpreview: π Starts a local server to preview the production build.pnpm run previewstorybook: β¨ Starts a local server to preview the production build.pnpm run storybookbuild-storybook: π Starts a local server to preview the production build.pnpm run build-storybookprepare: βοΈA lifecycle script that Husky uses to set up Git hooks. This is automatically run afternpm install.pnpm run build-storybook
