New:Socket for Asana Is Now Available.Learn more
Get Started

@sophostechne/ui

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sophostechne/ui

the shared design system for react ui @ sophos. components, hooks, utils, fonts, overlays, etc.

latest
npmnpm
Version
0.19.0
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

sophos ui

the shared design system for react ui @ sophos. components, hooks, utils, fonts, overlays, etc.

setup

npm i @sophostechne/ui or pnpm i @sophostechne/ui

import the global styles in your app's root css file:

@import 'tailwindcss';
@import '@sophostechne/ui/styles/globals.css';

globals.css includes the design-system tokens, utilities, component styles, and default --font-* variable values, but does not register font files. Import the optional font stylesheet first if your app wants CSS-managed @font-face declarations:

@import 'tailwindcss';
@import '@sophostechne/ui/styles/fonts.css';
@import '@sophostechne/ui/styles/globals.css';

Next.js apps should prefer next/font/local with the exported @sophostechne/ui/fonts/* files and map them to the same --font-* variables. Apps can also provide their own --font-* variables while keeping the design-system utilities from globals.css.

usage

everything exports from the top level export:

import {
  Button,
  Grid
  // whatever else!
} from '@sophostechne/ui'

local development

two ways to preview components while editing:

storybook (per-component, primary)

pnpm storybook        # dev server on http://localhost:6006
pnpm build-storybook  # static build → ./storybook-static

stories live in stories/*.stories.tsx. the Overview story re-renders the entire /ds page, so you always have a kitchen-sink view alongside the isolated component stories. the Lens toolbar above the preview cycles between the lens presets (0, 1, 2, 3, 4, 5, 5i, 6).

next.js showcase (kitchen-sink, secondary)

pnpm dev              # next dev on http://localhost:3000 → redirects to /ds

app/ds/page.tsx is the same content the Overview story renders.

publishing

pnpm build     # tsc → dist/ + copies css / fonts / assets

releases are published automatically when PRs merge to main. the github workflow bumps the package version from the merged PR labels (major, minor, or patch), pushes the tag, publishes to npm via trusted publishing, and creates a GitHub Release with notes from CHANGELOG.md.

before merging:

  • leave package.json at the current published version on main (CI bumps it after merge).
  • label the PR so the bump matches your changelog section:
PR labelbump from 0.15.0changelog heading
patch (default)0.15.1## 0.15.1
minor0.16.0## 0.16.0
major1.0.0## 1.0.0
  • add that ## X.Y.Z section to CHANGELOG.md — release notes are pulled from it for npm and GitHub Releases.

the same file is rendered in Storybook under Docs → Changelog and shipped in the npm tarball.

the published tarball ships dist/, src/, README.md, and CHANGELOG.md (see files in package.json). inline source maps are embedded in dist/ so consumers can debug into the TypeScript source.

deployment

vercel.json builds both and serves them on a single Next.js deployment:

  • / and /ds — the Next.js showcase (same as pnpm dev)
  • /storybook — the static Storybook build (copied to public/storybook/ before next build so Next serves it like any other static asset)

Want Storybook-only? replace buildCommand with pnpm build-storybook and add "outputDirectory": "storybook-static". app/ds can stay for local pnpm dev either way — the Overview story renders the same content.

FAQs

Package last updated on 29 Aug 2026

Related posts