Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ant-design/use-emotion-css

A gadget that combines emotion and antd token
https://github.com/ant-design/use-emotion-css

Last synced: about 2 months ago
JSON representation

A gadget that combines emotion and antd token

Awesome Lists containing this project

README

        

# use-emotion-css

A gadget that combines emotion and antd token

```jsx
import { useEmotionCss } from '@ant-design/use-emotion-css';
import React from 'react';

export default () => {
const className = useEmotionCss(({ token }) => {
return {
color: token.colorPrimary,
display: 'flex',
justifyContent: 'center',
gap: 24,
padding: 24,
flexDirection: 'column',
};
});
const blockClassName = useEmotionCss(({ token }) => {
return {
backgroundColor: token.colorPrimary,
width: 12,
height: 12,
borderRadius: 12,
};
});
return (




Hello World


);
};
```