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

antdv-style

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antdv-style

CSS-in-JS solution for antdv-next

latest
Source
npmnpm
Version
0.1.0-alpha.1
Version published
Maintainers
2
Created
Source

antdv-style

CSS-in-JS solution for antdv-next, based on Emotion.

简体中文

  • Token System: Auto-integrates with antdv-next's 500+ design tokens from ConfigProvider
  • Dark Mode: light / dark / auto with system preference detection
  • Custom Theme: Extend tokens and stylish presets via ThemeProvider
  • CSS Variables: cssVar.colorPrimaryvar(--ant-color-primary)
  • Responsive: Token-driven breakpoints with callable utility and device aliases
  • Multi-instance: createInstance() for micro-frontend isolation
  • SSR Safe: No DOM access at import time, Emotion-based style extraction
  • TypeScript: Module augmentation for custom token IntelliSense

Quick Start

Installation

pnpm add antdv-style antdv-next

Create Styles

<script setup>
import { ConfigProvider } from 'antdv-next'
import { ThemeProvider, createStyles } from 'antdv-style'

const useStyles = createStyles(({ token, css }) => ({
  // CSS object syntax
  container: {
    backgroundColor: token.colorBgLayout,
    borderRadius: token.borderRadiusLG,
    maxWidth: 400,
    width: '100%',
    padding: `${token.paddingLG}px`,
  },
  // CSS template literal syntax
  card: css`
    box-shadow: ${token.boxShadow};
    padding: ${token.padding}px;
    border-radius: ${token.borderRadius}px;
    background: ${token.colorBgContainer};
    cursor: pointer;

    &:hover {
      box-shadow: ${token.boxShadowSecondary};
    }
  `,
}))

const s = useStyles()
</script>

<template>
  <ConfigProvider>
    <ThemeProvider>
      <div :class="s.styles.container">
        <div :class="s.styles.card">createStyles Demo</div>
        <div>Current theme: {{ s.theme.appearance }}</div>
      </div>
    </ThemeProvider>
  </ConfigProvider>
</template>

License

MIT

Keywords

antdv-next

FAQs

Package last updated on 18 Mar 2026

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