New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

xthemes

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xthemes

xThemes is module made in `Vanilla JavaScript` without any other modules for fast operations.

latest
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

xThemes

xThemes is module made in Vanilla JavaScript without any other modules for fast operations.

Note: default theme is always default and can't be changed yet.

Note (Usage): Always execute the code in the main code file. (for react it's the main file where the content renders | main.tsx)

Usage

import { setTheme } from 'xthemes' // import xThemes setTheme function
import { colors } from './vars.ts' // import your file with colors

colors // execute colors
setTheme("<theme_name>") // set for your theme | leave empty for default

File with Colors:

import { themeSet } from 'xthemes'

export const colors = themeSet({
    primaryColor: {
        default: '#000',
        <custom_theme>: '#fff',
    },
    primaryBackground: {
        default: '#fff',
        <custom_theme>: '#000',
    }
})

Usage in CSS:

color: var(--primaryColor),
background: var(--primaryBackground)

FAQs

Package last updated on 15 Dec 2023

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