Socket
Socket
Sign inDemoInstall

@preply/ds-core

Package Overview
Dependencies
Maintainers
0
Versions
399
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@preply/ds-core


Version published
Weekly downloads
6K
increased by3.71%
Maintainers
0
Weekly downloads
 
Created
Source

@preply/ds-core

Platform agnostic utils and generated types and constants.

Depends only on @preply/ds-core-types.

Important: When adding types and constants here, always check if @preply/ds-tools will need to use them.. in which case they should go directly in ds-core-types.

Important: An new code added to ds-core mut be absolutely platform agnostic. If it dependends on browser APIs or CSS it needs to go to @preply/ds-web-core. Likewise for native dependencies meaning it should go in @preply/ds-rn-core.

tl;dr:

import { RootProvider } from `@preply/ds-rn-root`;
import { Heading, Button } from `@preply/ds-rn-lib`;

export const App: FC = () => (
  <RootProvider>
    <Heading level="h1">Hello!</Heading>
    <Button>Go!</Button>
  </RootProvider>
);

Using the Design System in your application or library?

Follow the instructions in @preply/ds-workspace.

Contributing

Reach out to #design-system-public if you think you can help and keep an eye on DS Confluence for more docs, guides, work in progress, decisions, the works.

Development

You probably want to execute yarn dev and/or yarn docs in the root, as per instructions in @preply/ds-workspace.

For quicker - and more focused - feedback, you can also directly use the scripts in this package directory, but make sure you have first executed yarn build in root, or that you have the root yarn dev script running in the background.

Tooling

Details about tools and configurations in @preply/ds-workspace.

FAQs

Package last updated on 12 Sep 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