🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@hon2a/antd-theme

Package Overview
Dependencies
Maintainers
1
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hon2a/antd-theme

Variables from Ant Design theme (Less) provided as JavaScript object

latest
Source
npmnpm
Version
4.16.13
Version published
Weekly downloads
68
28.3%
Maintainers
1
Weekly downloads
 
Created
Source

antd-theme

Variables from Ant Design theme (Less) provided as JavaScript object

Use

Simply import the package to get the theme variables.

import antdTheme from '@hon2a/antd-theme'
import { camelCase, mapKeys } from 'lodash/mapKeys'

// might be a good idea to camel-case the variable names to easily access them as properties
export const myTheme = {
  ...mapKeys(antdTheme, (value, key) => camelCase(key)),
  primaryColor: 'green',
  // ...
}

Development

Just don't. New version should only ever be published when a new version of antd is released and the published version of this package should reflect antd version.

FAQs

Package last updated on 27 Oct 2021

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