@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
84 lines (70 loc) • 1.99 kB
JavaScript
import { css } from "antd-style";
//#region src/ThemeProvider/GlobalStyle/global.ts
var global_default = (token) => css`
:root {
--font-settings: 'cv01', 'tnum', 'kern';
--font-variations: 'opsz' auto, tabular-nums;
/* Real Geist italic for Latin; synthesize style for CJK fallback faces. */
font-synthesis: style;
text-autospace: normal;
}
html {
overscroll-behavior: none;
color-scheme: ${token.isDarkMode ? "dark" : "light"};
}
body {
overflow: hidden auto;
min-height: 100vh;
margin: 0;
padding: 0;
font-family: ${token.fontFamily};
font-size: ${token.fontSize}px;
font-feature-settings: var(--font-settings);
font-variation-settings: var(--font-variations);
font-optical-sizing: auto;
font-kerning: normal;
font-variant-ligatures: common-ligatures contextual;
font-variant-numeric: tabular-nums;
font-size-adjust: from-font;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
line-height: 1;
color: ${token.colorTextBase};
text-wrap: pretty;
text-size-adjust: 100%;
text-rendering: optimizelegibility;
overflow-wrap: anywhere;
vertical-align: baseline;
background-color: ${token.colorBgLayout};
font-synthesis: style;
-webkit-overflow-scrolling: touch;
-webkit-tap-highlight-color: transparent;
}
code,
kbd,
samp,
pre {
font-family: ${token.fontFamilyCode} ;
font-feature-settings:
'liga' 0,
'calt' 0;
font-variant-ligatures: none;
span {
font-family: ${token.fontFamilyCode} ;
}
}
::selection {
color: #000;
background: ${token.yellow9};
-webkit-text-fill-color: unset ;
}
* {
scrollbar-color: ${token.colorFill} transparent;
scrollbar-width: thin;
box-sizing: border-box;
vertical-align: baseline;
}
`;
//#endregion
export { global_default as default };
//# sourceMappingURL=global.mjs.map