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

better-tmux

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-tmux - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

5

CHANGELOG.md

@@ -8,2 +8,7 @@ # Changelog

## [0.0.13] - 2024-07-15
### Fixes 🐛
- Add option to override globals by @fdaciuk in https://github.com/bettervim/better-tmux/pull/15
## [0.0.12] - 2024-07-13

@@ -10,0 +15,0 @@

46

dist/hooks/use-theme.d.ts

@@ -0,1 +1,2 @@

import { Theme } from "../types.js";
type ThemePalette = {

@@ -7,41 +8,10 @@ background: string;

};
export declare const themes: {
nord: {
foreground: string;
background: string;
primary: string;
secondary: string;
};
dracula: {
foreground: string;
background: string;
primary: string;
secondary: string;
};
"catppuccin-latte": {
foreground: string;
background: string;
primary: string;
secondary: string;
};
"catppuccin-mocha": {
foreground: string;
background: string;
primary: string;
secondary: string;
};
"catppuccin-macchiato": {
foreground: string;
background: string;
primary: string;
secondary: string;
};
"catppuccin-frappe": {
foreground: string;
background: string;
primary: string;
secondary: string;
};
export declare const catppuccinMocha: {
foreground: string;
background: string;
primary: string;
secondary: string;
};
export declare function useTheme(): ThemePalette;
export declare function getTheme(theme?: Theme): ThemePalette;
export declare const useTheme: typeof getTheme;
export {};

@@ -13,3 +13,3 @@ const nord = {

};
const catppuccinMocha = {
export const catppuccinMocha = {
foreground: "#cdd6f4",

@@ -38,13 +38,69 @@ background: "#282a36",

};
export const themes = {
"nord": nord,
"dracula": dracula,
"catppuccin-latte": catppuccinLatte,
"catppuccin-mocha": catppuccinMocha,
"catppuccin-macchiato": catppuccinMacchiato,
"catppuccin-frappe": catppuccinFrappe
const onedark = {
foreground: "#abb2bf",
background: "#282c34",
primary: "#98c379",
secondary: "#d19a66",
};
export function useTheme() {
const theme = process.env.BETTER_TMUX_THEME;
switch (theme) {
const onedarkDark = {
foreground: "#abb2bf",
background: "#000000",
primary: "#89ca78",
secondary: "#d19a66",
};
const onelight = {
foreground: "#6a6a6a",
background: "#fafafa",
primary: "#1da912",
secondary: "#ee9025",
};
const onedarkVivid = {
foreground: "#abb2bf",
background: "#282c34",
primary: "#89ca78",
secondary: "#d19a66",
};
const tokyonightStorm = {
foreground: "#c0caf5",
background: "#24283b",
primary: "#7aa2f7",
secondary: "#9ece6a",
};
const tokyonightMoon = {
foreground: "#c8d3f5",
background: "#222436",
primary: "#82aaff",
secondary: "#c3e88d",
};
const tokyonightDay = {
foreground: "#222436",
background: "#c8d3f5",
primary: "#82aaff",
secondary: "#c3e88d",
};
const tokyonight = {
...tokyonightStorm,
background: "#1a1b26",
};
const ayu = {
foreground: "#cfcebe",
background: "#212733",
primary: "#e59448",
secondary: "#b7cb52",
};
const ayuDark = {
foreground: "#cfcebe",
background: "#0f141a",
primary: "#ff7734",
secondary: "#b7cb52",
};
const ayuLight = {
foreground: "#616772",
background: "#fafafa",
primary: "#ff7734",
secondary: "#b7cb52",
};
export function getTheme(theme) {
const selectedTheme = theme || process.env.BETTER_TMUX_THEME || 'catppuccin-mocha';
switch (selectedTheme) {
case 'catppuccin-mocha': return catppuccinMocha;

@@ -56,3 +112,15 @@ case 'catppuccin-macchiato': return catppuccinMacchiato;

case 'dracula': return dracula;
case 'onedark': return onedark;
case 'onelight': return onelight;
case 'onedark-vivid': return onedarkVivid;
case 'onedark-dark': return onedarkDark;
case 'tokyonight': return tokyonight;
case 'tokyonight-storm': return tokyonightStorm;
case 'tokyonight-moon': return tokyonightMoon;
case 'tokyonight-day': return tokyonightDay;
case 'ayu': return ayu;
case 'ayu-dark': return ayuDark;
case 'ayu-light': return ayuLight;
}
}
export const useTheme = getTheme;

@@ -6,3 +6,3 @@ export type WindowConfig = {

};
export type Theme = "catppuccin-mocha" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-frappe" | "nord" | "dracula";
export type Theme = "catppuccin-mocha" | "catppuccin-latte" | "catppuccin-macchiato" | "catppuccin-frappe" | "nord" | "dracula" | "onedark" | "onelight" | "onedark-dark" | "onedark-vivid" | "tokyonight" | "tokyonight-moon" | "tokyonight-day" | "tokyonight-storm" | "ayu" | "ayu-dark" | "ayu-light";
export type Status = {

@@ -9,0 +9,0 @@ fg?: string;

{
"name": "better-tmux",
"version": "0.0.12",
"version": "0.0.13",
"exports": {

@@ -5,0 +5,0 @@ ".": {

@@ -0,1 +1,3 @@

import { Theme } from "../types.js"
type ThemePalette = {

@@ -8,3 +10,2 @@ background: string,

const nord = {

@@ -24,3 +25,3 @@ foreground: "#D8DEE9",

const catppuccinMocha = {
export const catppuccinMocha = {
foreground: "#cdd6f4",

@@ -53,16 +54,81 @@ background: "#282a36",

const onedark = {
foreground: "#abb2bf",
background: "#282c34",
primary: "#98c379",
secondary: "#d19a66",
}
export const themes = {
"nord": nord,
"dracula": dracula,
"catppuccin-latte": catppuccinLatte,
"catppuccin-mocha": catppuccinMocha,
"catppuccin-macchiato": catppuccinMacchiato,
"catppuccin-frappe": catppuccinFrappe
const onedarkDark = {
foreground: "#abb2bf",
background: "#000000",
primary: "#89ca78",
secondary: "#d19a66",
}
export function useTheme(): ThemePalette {
const theme = process.env.BETTER_TMUX_THEME
const onelight = {
foreground: "#6a6a6a",
background: "#fafafa",
primary: "#1da912",
secondary: "#ee9025",
}
switch (theme) {
const onedarkVivid = {
foreground: "#abb2bf",
background: "#282c34",
primary: "#89ca78",
secondary: "#d19a66",
}
const tokyonightStorm = {
foreground: "#c0caf5",
background: "#24283b",
primary: "#7aa2f7",
secondary: "#9ece6a",
}
const tokyonightMoon = {
foreground: "#c8d3f5",
background: "#222436",
primary: "#82aaff",
secondary: "#c3e88d",
}
const tokyonightDay = {
foreground: "#222436",
background: "#c8d3f5",
primary: "#82aaff",
secondary: "#c3e88d",
}
const tokyonight = {
...tokyonightStorm,
background: "#1a1b26",
}
const ayu = {
foreground: "#cfcebe",
background: "#212733",
primary: "#e59448",
secondary: "#b7cb52",
}
const ayuDark = {
foreground: "#cfcebe",
background: "#0f141a",
primary: "#ff7734",
secondary: "#b7cb52",
}
const ayuLight = {
foreground: "#616772",
background: "#fafafa",
primary: "#ff7734",
secondary: "#b7cb52",
}
export function getTheme(theme?: Theme): ThemePalette {
const selectedTheme = theme || process.env.BETTER_TMUX_THEME || 'catppuccin-mocha'
switch (selectedTheme) {
case 'catppuccin-mocha': return catppuccinMocha

@@ -74,3 +140,16 @@ case 'catppuccin-macchiato': return catppuccinMacchiato

case 'dracula': return dracula
case 'onedark': return onedark
case 'onelight': return onelight
case 'onedark-vivid': return onedarkVivid
case 'onedark-dark': return onedarkDark
case 'tokyonight': return tokyonight
case 'tokyonight-storm': return tokyonightStorm
case 'tokyonight-moon': return tokyonightMoon
case 'tokyonight-day': return tokyonightDay
case 'ayu': return ayu
case 'ayu-dark': return ayuDark
case 'ayu-light': return ayuLight
}
}
export const useTheme = getTheme

@@ -14,2 +14,13 @@ export type WindowConfig = {

| "dracula"
| "onedark"
| "onelight"
| "onedark-dark"
| "onedark-vivid"
| "tokyonight"
| "tokyonight-moon"
| "tokyonight-day"
| "tokyonight-storm"
| "ayu"
| "ayu-dark"
| "ayu-light"

@@ -16,0 +27,0 @@ export type Status = {

Sorry, the diff of this file is not supported yet

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