Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@transferwise/neptune-tokens
Advanced tools
Design tokens for the Neptune Design System. Includes spacing and colours, and distributes bundles for common formats.
Tokens always start with a base
layer that directly accesses the values, and can be extended with a semantic layer that describes the token's intended purpose, rather than how it looks.
For npm environments, install the package and consume the bundled files described below.
npm i @transferwise/neptune-tokens
We use a 4-point scale that gives finer control to align elements inside components and optimise space on smaller screens, and from 16 onwards it becomes an 8-point scale where the difference in steps is more visible. There's currently no semantic layer for spacing.
Name | Size |
---|---|
space-4 | 4 |
space-8 | 8 |
space-12 | 12 |
space-16 | 16 |
space-24 | 24 |
space-32 | 32 |
space-40 | 40 |
space-48 | 48 |
// CSS custom properties
@import "@transferwise/neptune-tokens/spacing.css";
.tw-checkable-card {
padding: var(--space-16);
}
// Less variables
@import "@transferwise/neptune-tokens/spacing.less";
.tw-checkable-card {
padding: @space-16;
}
Our current colour palette is built on a main set of 7 base colours with different levels of brightness. From lightest to darkest:
The base set also includes 3 brand colours, currently used exclusively in marketing pages outside product, that don't have brightness variations.
We have 2 themes, light
and dark
, that refer to the colours semantically. This is the recommended way of using our colour tokens, as the base colours have a higher risk of deprecation. There are no dependencies between the imports, the values are flattened on the themes, so base colours don't usually need to be imported.
We currently only have one theme on web, so colors.css
directly references the values from the light
theme.
// CSS custom properties
@import "@transferwise/neptune-tokens/colors.css";
.button {
background-color: var(--color-control-accent);
}
The base colours are currently only bundled in Less.
// Less variables
@import "@transferwise/neptune-tokens/colors-base.less";
.special-brand-element {
background-color: @color-base-brand-purple;
}
We generate 2 asset catalogs for iOS:
BaseColors.xcassets
contains the base coloursColors.xcassets
contains the semantic colours with the light
and dark
themes associated with iOS appearancesTo use them, copy both catalogs on the dist
folder to your iOS project.
To import or update colours on the Figma libraries for Neptune:
FAQs
Design tokens for the Neptune Design System
The npm package @transferwise/neptune-tokens receives a total of 153 weekly downloads. As such, @transferwise/neptune-tokens popularity was classified as not popular.
We found that @transferwise/neptune-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.