UNPKG

antd-color-editor

Version:

An open-source color editor for designing color system

74 lines (60 loc) 1.81 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/ThemeProvider/GlobalStyle.ts var GlobalStyle_exports = {}; __export(GlobalStyle_exports, { default: () => GlobalStyle_default }); module.exports = __toCommonJS(GlobalStyle_exports); var import_antd_style = require("antd-style"); var GlobalStyle = import_antd_style.createGlobalStyle` body { margin: 0; padding: 0; font-family: ${({ theme }) => theme.fontFamily}; font-size: ${({ theme }) => theme.fontSize}px; line-height: 1; color: ${({ theme }) => theme.colorTextBase}; background-color: ${(p) => p.theme.colorBgLayout}; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { line-height: 1; } * { box-sizing: border-box; } #root { min-height: 100vh; } ::-webkit-scrollbar { width: 4px; height: 4px; margin-right: 4px; background-color: transparent; &-thumb { background-color: ${({ theme }) => theme.colorFill}; border-radius: 4px; } &-corner { display: none; } } `; var GlobalStyle_default = GlobalStyle;