Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@orca-so/design-system

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orca-so/design-system

Orca Design System

  • 0.0.22
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

Orca Design System

This is some short description.

This repository contains proprietary fonts that should be removed before open-sourcing this repo.

What is the Orca Design System?

Two styles of components are available: Base and Pro. Base friendly and inviting. Pro is more serious and business-like.

Using the Orca Design System

Including the Orca Design System in your project is easy. Simply add the following to your project's package.json file:

npm i @orca-so/design-system
yarn add @orca-so/design-system

Add our tailwind configuration to your tailwind config file:

module.exports = {
  content: [
    // ...
    "./node_modules/@orca-so/design-system/dist/**/*.{html,ts,tsx,js,jsx}"
  ],
  presets: [
    require('@orca-so/design-system/dist/tailwind.config.js')
  ],
  // ...
}

Add the SuisseIntl font to your project (optional):

@layer base {
  @font-face {
    font-family: "SuisseIntl";
    font-weight: 400;
    src: url("path/to/SuisseIntl-Regular-WebS.woff") format("woff");
  }
  @font-face {
    font-family: "SuisseIntl";
    font-weight: 500;
    src: url("path/to/SuisseIntl-Medium-WebS.woff") format("woff");
  }
  @font-face {
    font-family: "SuisseIntl";
    font-weight: 600;
    src: url("path/to/SuisseIntl-SemiBold-WebS.woff") format("woff");
  }
  @font-face {
    font-family: "SuisseIntlMono";
    font-weight: 400;
    src: url("path/to/SuisseIntlMono-Regular-WebS.woff") format("woff");
  }
}

Then, you can import the components you need:

import { Button, Colors, Icon } from '@orca-so/design-system';
const Component = () => (
  <div style={{ backgroundColor: Colors.Manta }} className="bg-manta">
    <Button>Click Me</Button>
    <Icon name="orca" />
  </div>
);

This library supports tree-shaking, so you can import only the components you need.

Development and Contributing

  • git clone
  • yarn install
  • yarn dev

Using a local version of design system

If you want to use a local version of the design system in your project, you can do so by following these steps.

  1. Add the following to your project's package.json file:
"resolutions": {
  "@orca-so/design-system": "portal:../design-system"
},
  1. Run yarn install in your project.
  2. Run tsc --watch in the design system project to compile the TypeScript files and watch for changes.
  3. Run next dev (or whatever development command) in the in your project. Hot reload should work when using next.

FAQs

Package last updated on 02 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc