Maeng Design

Colors

Maeng Design의 기본 색상 팔레트는 12가지 기본 색상과 그레이 색상을 포함하여 총 133가지 색상입니다.
🎨 색상을 클릭하여 HEX 코드를 복사할 수 있습니다.

red

red1#fff1f0
red2#ffccc7
red3#ffa39e
red4#ff7875
red5#ff4d4f
red6#f5222d
red7#cf1322
red8#a8071a
red9#820014
red10#5c0011

volcano

volcano1#fff2e8
volcano2#ffd8bf
volcano3#ffbb96
volcano4#ff9c6e
volcano5#ff7a45
volcano6#fa541c
volcano7#d4380d
volcano8#ad2102
volcano9#871400
volcano10#610b00

orange

orange1#fff7e6
orange2#ffe7ba
orange3#ffd591
orange4#ffc069
orange5#ffa940
orange6#fa8c16
orange7#d46b08
orange8#ad4e00
orange9#873800
orange10#612500

gold

gold1#fffbe6
gold2#fff1b8
gold3#ffe58f
gold4#ffd666
gold5#ffc53d
gold6#faad14
gold7#d48806
gold8#ad6800
gold9#874d00
gold10#613400

yellow

yellow1#feffe6
yellow2#ffffb8
yellow3#fffb8f
yellow4#fff566
yellow5#ffec3d
yellow6#fadb14
yellow7#d4b106
yellow8#ad8b00
yellow9#876800
yellow10#614700

lime

lime1#fcffe6
lime2#f4ffb8
lime3#eaff8f
lime4#d3f261
lime5#bae637
lime6#a0d911
lime7#7cb305
lime8#5b8c00
lime9#3f6600
lime10#254000

green

green1#f6ffed
green2#d9f7be
green3#b7eb8f
green4#95de64
green5#73d13d
green6#52c41a
green7#389e0d
green8#237804
green9#135200
green10#092b00

cyan

cyan1#e6fffb
cyan2#b5f5ec
cyan3#87e8de
cyan4#5cdbd3
cyan5#36cfc9
cyan6#13c2c2
cyan7#08979c
cyan8#006d75
cyan9#00474f
cyan10#002329

blue

blue1#e6f7ff
blue2#bae7ff
blue3#91d5ff
blue4#69c0ff
blue5#40a9ff
blue6#1890ff
blue7#096dd9
blue8#0050b3
blue9#003a8c
blue10#002766

geekblue

geekblue1#f0f5ff
geekblue2#d6e4ff
geekblue3#adc6ff
geekblue4#85a5ff
geekblue5#597ef7
geekblue6#2f54eb
geekblue7#1d39c4
geekblue8#10239e
geekblue9#061178
geekblue10#030852

purple

purple1#f9f0ff
purple2#efdbff
purple3#d3adf7
purple4#b37feb
purple5#9254de
purple6#722ed1
purple7#531dab
purple8#391085
purple9#22075e
purple10#120338

magenta

magenta1#fff0f6
magenta2#ffd6e7
magenta3#ffadd2
magenta4#ff85c0
magenta5#f759ab
magenta6#eb2f96
magenta7#c41d7f
magenta8#9e1068
magenta9#780650
magenta10#520339

gray

gray1#ffffff
gray2#fafafa
gray3#f5f5f5
gray4#f0f0f0
gray5#d9d9d9
gray6#bfbfbf
gray7#8c8c8c
gray8#595959
gray9#434343
gray10#262626
gray11#1f1f1f
gray12#141414
gray13#000000

Usage

내장된 getColor 함수를 통해 원하는 색상코드를 가져올 수 있습니다.
import React from 'react';
import { getColor } from 'maeng-design';
import { useTheme } from '@emotion/react';

const Content = () => {
  const theme = useTheme();
  return (
    <div style={{ color: getColor(theme, 'blue6') }}>Blue Color</div>
  );
};

export default Content;
import { css, Interpolation, Theme } from '@emotion/react';
import { getColor, ThemeMode } from 'maeng-design';

const style = (theme: Theme = { mode: ThemeMode.LIGHT }): Interpolation<Theme> => css`
    background: ${getColor(theme, 'gray1')};
  `;

Dark Mode

ThemeProvider 컴포넌트를 통해 다크모드를 손쉽게 설정할 수 있습니다.
import React from 'react';
import ReactDOM from 'react-dom';
import App from 'components/App';
import { ThemeMode, ThemeProvider, Typography } from 'maeng-design';

ReactDOM.render(
  <ThemeProvider theme={{ mode: ThemeMode.DARK }}>
    <App />
  </ThemeProvider>,
  document.getElementById('root')
);
Made by Maeng