
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@linkurious/ogma-styles
Advanced tools
This is a repositiory of style presets for Ogma graph visualisation library. You can use them in your prototypes and applications.
npm install -S @linkurious/ogma-styles
# or
yarn add @linkurious/ogma-styles
Alternatively, you can use the CDN-hosted version
<script src="https://cdn.jsdelivr.net/npm/@linkurious/ogma-styles@0.0.4/dist/index.min.js"></script>
...
<script>
// themes are globally exposed as `ogmaStyles`
const themes = ogmaStyles;
</script>
import Ogma from '@linkurious/ogma';
import { midsummerNight as theme } from '@linkurious/ogma-styles'
const ogma = new Ogma({ ... });
ogma.styles.setTheme(theme);

import Ogma from '@linkurious/ogma';
import { midsummerNight as theme } from '@linkurious/ogma-styles'
const ogma = new Ogma({
...
});
ogma.styles.setTheme(theme);
// you can also use the theme's colors for your UI
console.log(theme.colors.red); // '#df162e'
midsummer-night exports several constants for you to apply when you need conditional styling.
edgeOutlineWidth: 2,
edgeHaloWidth: 8,
nodeHaloWidth: 20,
// you can also use different colors for the nodes and edges
colors: {}

You can follow the examples in src to create your own theme.
The repositiory uses TypeScript for checking the types of attributes, so you will not get lost. You can always try out your theme in Ogma playground
If you want to share it, send us a pull request and we will check and publish it.

import Ogma from '@linkurious/ogma';
import { afternoonNap as theme } from '@linkurious/ogma-styles'
const ogma = new Ogma({
...
});
ogma.styles.setTheme(theme);
// you can also use the theme's constants for your UI
console.log(theme.colors.nodeHaloWidth); // 40

import Ogma from '@linkurious/ogma';
import { morningBreeze as theme } from '@linkurious/ogma-styles'
const ogma = new Ogma({
...
});
ogma.styles.setTheme(theme);
// you can also use the theme's constants for your UI
console.log(theme.colors.nodeHaloWidth); // 40
The package includes a collection of carefully selected color palettes for data visualization, including Paul Tol's scientifically designed color schemes and custom categorical palettes.
categorical - 9 distinct accessible colors for basic categorical data#44AA99 #FFCB2F #FF7523 #FF9AAC #80E5CA #0099FF #1450DD #9386CE
#617083
categorical16 - 16 colors for larger categorical datasets#44AA99 #FFCB2F #FF7523 #FF9AAC #80E5CA #0099FF #1450DD #9386CE
#617083 #E74C3C #2ECC71 #F39C12 #8E44AD #34495E #16A085 #D35400
categorical24 - 24 colors for extensive categorical data#44AA99 #FFCB2F #FF7523 #FF9AAC #80E5CA #0099FF #1450DD #9386CE
#617083 #E74C3C #2ECC71 #F39C12 #8E44AD #34495E #16A085 #D35400
#27AE60 #E67E22 #9B59B6 #3498DB #F1C40F #E91E63 #00BCD4 #795548
contrastLight - Paul Tol's bright color scheme (7 colors)#4477AA #66CCEE #228833 #CCBB44 #EE6677 #AA3377 #BBBBBB
highContrast - Paul Tol's high-contrast scheme (4 colors)#DDAA33 #BB5566 #004488 #000000
vibrant - Paul Tol's vibrant color scheme (7 colors)#0077BB #33BBEE #009988 #EE7733 #CC3311 #EE3377 #BBBBBB
muted - Paul Tol's muted color scheme (9 colors)#332288 #88CCEE #44AA99 #117733 #999933 #DDCC77 #CC6677 #882255
#AA4499
mediumContrast - Paul Tol's medium contrast scheme (7 colors)#EECC66 #EE99AA #6699CC #997700 #994455 #004488 #000000
pale - Paul Tol's pale color scheme (6 colors)#BBCCEE #CCEEFF #CCDDAA #EEEEBB #FFCCCC #DDDDDD
wong - Wong color scheme (8 colors)#000000 #E69F00 #56B4E9 #009E73 #F0E442 #0072B2 #D55E00 #CC79A7
import {
categorical,
categorical16,
categorical24,
contrastLight,
vibrant,
muted
} from '@linkurious/ogma-styles/colors';
// Use with Ogma node styling
ogma.styles.addNodeStyle({
color: (node, index) => categorical[index % categorical.length]
});
// Use for custom color mapping
const nodeColors = categorical16.slice(0, myCategories.length);
ogma.styles.addNodeStyle({
color: node => nodeColors[node.getData('category') % nodeColors.length]
});
// Access individual colors
console.log(vibrant[0]); // '#0077BB'
console.log(categorical24.length); // 24
Linkurious SAS © 2025
FAQs
Ogma styling themes
The npm package @linkurious/ogma-styles receives a total of 1 weekly downloads. As such, @linkurious/ogma-styles popularity was classified as not popular.
We found that @linkurious/ogma-styles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.