New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@jobber/design

Package Overview
Dependencies
Maintainers
13
Versions
480
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jobber/design

Design foundation for the Jobber Atlantis Design System

latest
npmnpm
Version
0.96.0
Version published
Weekly downloads
18K
-23.64%
Maintainers
13
Weekly downloads
 
Created
Source

Design

Foundational colors, styling and design tokens for the Jobber Atlantis Design System

Installation

npm install @jobber/design

Usage

@jobber/design ships foundation.css. It also provides utilities for getting an icon svg path, and icon styles as a JS object for use in a React style attribute. We also ship a dark mode as both individual tokens (dark.theme.css) and a full theme file (dark.mode.css). We ship our semantic styles as well semantic.css

CSS

Foundation

Import the @jobber/design stylesheet into your own css

@import "~@jobber/design/foundation.css";

.myLabel {
  color: var(--color-blue);
  padding: var(--space-base);
}

For web, if design/foundation.css is already included you do not need to import it for every css file. For React Native, you need to import design/foundation in every css files that needs it. Soon, this manual approach will be replaced by a ThemeProvider.

icons

Import the getIcon utility into your JavaScript/Typescript file

import { getIcon } from "@jobber/design";

const { svgStyle, paths, viewBox } = getIcon({
  name: "dashboard",
  color: "green",
  size: "large",
  platform: "web",
});

You can also get the type definitions for IconNames, IconColorNames, and IconSizes from @jobber/design

import type { IconNames, IconColorNames, IconSizes } from "@jobber/design";

If you need the actual js style files for icons, you can import them from @jobber/design/icons. You may not need these files for the web but they might be required for React Native

@import "@jobber/design/foundation.css";
@import {iconStyles, iconSizes, iconColors} from "@jobber/design";

PostCSS

Inject @jobber/foundation into your css with postcss

module.exports = {
  plugins: [
    require("postcss-preset-env")({
      importFrom: ["@jobber/design/dist/foundation.css"],
    }),
  ],
};

Usage With React Native

To use tokens with React Native, add the following to the file containing your project's global styling:

import { tokens, androidTokens, iosTokens } from "@jobber/design";
import { Platform } from "react-native";

export const tokens: typeof AndroidTokens = Platform.select({
  ios: () => iosTokens,
  android: () => androidTokens,
  default: () => androidTokens,
})();

export const GlobalStyling = {
  ...tokens,
  ...otherStyles,
};

Adding a new set of tokens

  • Adding a new token file under src/tokens that follows the same format as above and in the other files (platformOverrides is a special file and should not be copied).
  • Importing your new token file in allTokens.ts and adding it to the tokenMap in the same file.
  • At this point, your token contents should start showing up in all the built output via npm run build in the design package (or just npm install from the root of the project)

For How The Platform Works see HOWTHISWORKS.md

FAQs

Package last updated on 09 Apr 2026

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