@use 'sass:map';
/* -------------------------------------------------------------------------- */
// 컬러 맵(Map) 변수
$colors: (
light: (
bg: #efefef,
fg: #010101,
shadow: #8f8f8f,
),
dark: (
bg: #111,
fg: #fff,
shadow: #737373,
),
);
// 중단점 맵 변수
$breakpoints: (
sm: 480px,
md: 768px,
lg: 960px,
xl: 1024px,
2xl: 1280px,
3xl: 1440px,
4xl: 1980px,
);
/* -------------------------------------------------------------------------- */
// 중단점 값 가져오기 함수
@function getBreakpoint($keyword) {
@return map.get($breakpoints, $keyword);
}
// 컬러 값 가져오기 함수
@function getColor($color-name, $theme: light) {
$theme: map.get($colors, $theme);
@return map.get($theme, $color-name);
}
/* -------------------------------------------------------------------------- */
// 테마 설정 믹스인
@mixin setTheme($theme) {
$theme: $theme !global;
}
/* -------------------------------------------------------------------------- */
// 기본 테마 변수
$theme: light !default;