Catalog npm
Back to packageRELEASE DETAILS

1.6.2

npm

1byte-react-design

A React component library built with TypeScript, Antd, and Emotion. This library provides a set of reusable UI components that can be easily integrated into your React applications.

Published9 Sept 2025
Direct dependencies29
Transitive dependenciesNot calculated

README

Current package documentation

1byte-react-design

A React component library built with TypeScript, Antd, and Emotion. This library provides a set of reusable UI components that can be easily integrated into your React applications.

Features

React

A popular JavaScript library for building user interfaces. It allows developers to create reusable UI components and provides a declarative approach to rendering views.

Antd

A UI design language and component library allowing developers to quickly create beautiful and functional user interfaces for web applications.

TypeScript

A superset of JavaScript that adds optional static type checking and other features to the language. It helps catch errors earlier in the development process and improves code readability and maintainability.

Emotion

A library designed for writing CSS styles with JavaScript. It provides powerful and flexible styling capabilities for your components.

Installation

To install the library, you can use either npm or yarn:

npm install 1byte-react-design

or

yarn add 1byte-react-design

Usage

To use the components from the library, you need to import them into your project. You can also configure the design tokens to customize the appearance of the components.

Example

import React from 'react';
import ReactDOM from 'react-dom';
import { config, Button } from '1byte-react-design';
import { globalToken } from '@/assets/styles/customTheme';

const seedToken: Partial<AliasToken> = {
    borderRadius: 6,
    colorLink: generatedTheme.colorPrimary,

    colorPrimary: generatedTheme.colorPrimary,
    colorTextSecondary: generatedTheme.colorSecondary,
    colorTextTertiary: generatedTheme.colorTertiary,
    colorTextQuaternary: generatedTheme.colorQuaternary,

    fontFamily: "'Open Sans', sans-serif",
    fontSize: 14,
    controlHeight: 28,
};

const themeConfig: ThemeConfig = {
    token: seedToken,
};

const globalToken = theme.getDesignToken(themeConfig);

// Set the design token
config.designToken = globalToken;

const App = () => {
    return (
        <div>
            <ConfigProvider theme={customTheme}>
                <App1Byte>
                    <Button type="primary">Click Me</Button>
                </App1Byte>
            </ConfigProvider>
        </div>
    );
};

ReactDOM.render(<App />, document.getElementById('root'));

Note

If you do not provide a designToken, the library will use the default Antd tokens for the components.

Getting Started

Before you start, make sure you have a fresh version of Node.js and Yarn installed. The current Long Term Support (LTS) release is an ideal starting point.

  1. Fork this repository and clone your own fork to your computer:

    git clone https://github.com/1Byte-Software/1byte-react-design.git
    
  2. From the project's root directory, install the required packages (dependencies):

    yarn install
    
  3. To build/deploy the app, you can run:

    yarn build
    

    This will place all files needed for deployment for develop server into the /dist directory.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

We welcome contributions to improve this library. Please fork the repository and submit pull requests.

Authors

Acknowledgments

About

This library is developed by 1Byte to unify the interface for the company, optimize component reuse, and ensure that our developers do not need to remember conventions. The library is based on the Atomic Design architecture.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 29

Native requirements
29 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
antd
Environment
{
  "local_name": "antd",
  "alias": false,
  "peer_metadata": null
}
^5.21.2runtime
clsx
Environment
{
  "local_name": "clsx",
  "alias": false,
  "peer_metadata": null
}
^2.1.1runtime
dayjs
Environment
{
  "local_name": "dayjs",
  "alias": false,
  "peer_metadata": null
}
^1.11.13runtime
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^18.3.1runtime
polished
Environment
{
  "local_name": "polished",
  "alias": false,
  "peer_metadata": null
}
^4.3.1runtime
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
^18.3.1runtime
@dnd-kit/core
Environment
{
  "local_name": "@dnd-kit/core",
  "alias": false,
  "peer_metadata": null
}
^6.3.1runtime
@emotion/react
Environment
{
  "local_name": "@emotion/react",
  "alias": false,
  "peer_metadata": null
}
^11.13.3runtime
@emotion/styled
Environment
{
  "local_name": "@emotion/styled",
  "alias": false,
  "peer_metadata": null
}
^11.13.0runtime
react-hook-form
Environment
{
  "local_name": "react-hook-form",
  "alias": false,
  "peer_metadata": null
}
^7.53.0runtime
react-router-dom
Environment
{
  "local_name": "react-router-dom",
  "alias": false,
  "peer_metadata": null
}
^6.28.0runtime
@dnd-kit/sortable
Environment
{
  "local_name": "@dnd-kit/sortable",
  "alias": false,
  "peer_metadata": null
}
^10.0.0runtime
@dnd-kit/modifiers
Environment
{
  "local_name": "@dnd-kit/modifiers",
  "alias": false,
  "peer_metadata": null
}
^9.0.0runtime
@dnd-kit/utilities
Environment
{
  "local_name": "@dnd-kit/utilities",
  "alias": false,
  "peer_metadata": null
}
^3.2.2runtime
webpack
Environment
{
  "local_name": "webpack",
  "alias": false,
  "peer_metadata": null
}
^5.95.0development
ts-loader
Environment
{
  "local_name": "ts-loader",
  "alias": false,
  "peer_metadata": null
}
^9.5.1development
css-loader
Environment
{
  "local_name": "css-loader",
  "alias": false,
  "peer_metadata": null
}
^7.1.2development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.6.2development
@babel/core
Environment
{
  "local_name": "@babel/core",
  "alias": false,
  "peer_metadata": null
}
^7.25.2development
webpack-cli
Environment
{
  "local_name": "webpack-cli",
  "alias": false,
  "peer_metadata": null
}
^5.1.4development
@types/react
Environment
{
  "local_name": "@types/react",
  "alias": false,
  "peer_metadata": null
}
^18.3.10development
babel-loader
Environment
{
  "local_name": "babel-loader",
  "alias": false,
  "peer_metadata": null
}
^9.2.1development
style-loader
Environment
{
  "local_name": "style-loader",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
@types/react-dom
Environment
{
  "local_name": "@types/react-dom",
  "alias": false,
  "peer_metadata": null
}
^18.3.0development
@babel/preset-env
Environment
{
  "local_name": "@babel/preset-env",
  "alias": false,
  "peer_metadata": null
}
^7.25.4development
webpack-dev-server
Environment
{
  "local_name": "webpack-dev-server",
  "alias": false,
  "peer_metadata": null
}
^5.1.0development
@babel/preset-react
Environment
{
  "local_name": "@babel/preset-react",
  "alias": false,
  "peer_metadata": null
}
^7.24.7development
webpack-bundle-analyzer
Environment
{
  "local_name": "webpack-bundle-analyzer",
  "alias": false,
  "peer_metadata": null
}
^4.10.2development
tsconfig-paths-webpack-plugin
Environment
{
  "local_name": "tsconfig-paths-webpack-plugin",
  "alias": false,
  "peer_metadata": null
}
^4.1.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "1e76e6e41f3eb81077d009e9944769dab169af44",
  "tarball": "https://registry.npmjs.org/1byte-react-design/-/1byte-react-design-1.6.2.tgz",
  "fileCount": 409,
  "integrity": "sha512-qoPhCk8BGpAe1dHp6M4o+i0Wd7O7UBq2jJb/6f8pX9fh+WrBGETqvaKURqV/BtdKKjuQ/fLWYzztfc4n4tXclg==",
  "signatures": [
    {
      "sig": "MEUCIQDhEIZDZ8rf7IxR9yEPt+A0k/BUe5xQrvlvxW7gjq+iNgIgQ7h6gNqq0R+qLwI5QndalIAgeQHuLm8fWzPrJMRxuFA=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 2823174
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:25 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:56301c028d0aafcedec89f2c1a5daccedaa24e6445c19fd3e76beee7c5b0267f

Other collected versions

1.14.022 Dec1.13.09 Dec1.12.44 Dec1.12.321 Nov1.12.218 Nov1.12.127 OctView all collected versions →