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

@sonarsource/marketing-design-system

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sonarsource/marketing-design-system

Design system for Sonar marketing projects

  • 3.8.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Sonar Design System

View Storybook

Usage

Installation

yarn add sonar-design-system

Implementation

// App.tsx
import { ThemeProvider, Button } from 'sonar-design-system';

const App = () => (
  <ThemeProvider>
    <Button variant="primary">Primary Button</Button>
  </ThemeProvider>
);

Releases

# Test all components
yarn test
# Create a new build
yarn build
# Choose new version and publish build to repository
yarn publish

Storybook

Start

yarn storybook

Build

yarn build-storybook

Deploy

Commit to master

Theming

Available themes:

  • mercury default
  • gemini

Available shades:

  • light default
  • dark

Overwrite default theme

// App.tsx
import { ThemeProvider, Button } from 'sonar-design-system';

const App = () => (
  <ThemeProvider theme="gemini" shade="dark">
    <Button />
  </ThemeProvider>
);

Get or modify current theme and shade

// Button.tsx
import { useTheme } from 'sonar-design-system';

const Button = () => {
  const { theme, shade, setTheme, setShade } = useTheme();
  return <button />;
};

Fonts

Import directly

import 'sonar-design-system/dist/fonts/maven-pro.woff2';
import 'sonar-design-system/dist/fonts/saira.woff2';

Import by CSS

import 'sonar-design-system/dist/css/fonts.css';

FAQs

Package last updated on 19 Aug 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