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

@mskcc/theme-antd

Package Overview
Dependencies
Maintainers
0
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mskcc/theme-antd

Ant Design theme configuration package

latest
npmnpm
Version
1.0.5
Version published
Maintainers
0
Created
Source

Ant Design Theme Package

Custom theme configuration for Ant Design components.

Installation

npm install @mskcc/theme-antd @mskc/tokens

Usage

import { ConfigProvider } from 'antd';
import { getDsmTheme } from '@mskcc/theme-antd';

// Configure theme
const theme = getDsmAntdTheme(); // optional: 'light' or 'dark' or leave blank for default
// Use with ConfigProvider
<ConfigProvider theme={theme, 'consumer'}>
  <App />
</ConfigProvider>;
/* Main css file */
@import '@mskcc/tokens/css/consumer.css';
@import '@mskcc/theme-antd/dist/styles/theme.css';

References

Theme Functions

FunctionDescriptionPropertytypedefault
getDsmTheme(role, theme)CSS variables version of DSM themerole'consumer' or 'pro''consumer'
theme'light' or 'dark''light'
getDsmThemeComponent(role, theme)CSS-in-JS version of DSM themerole'consumer' or 'pro''consumer'
theme'light' or 'dark''light'

Stylesheets

ImportDescription
@import '@mskcc/theme-antd/dist/styles/theme.css'Main theme stylesheet to be paired with @mskcc/tokens

Keywords

antd

FAQs

Package last updated on 05 Aug 2025

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