ui-theme/dist/AdminGlobalStyles.js
Natalie aaf23fa33f feat(@cocotte/ui-theme): extract UI theme package to @ct/@packages
Re-scoped from @lilith/ui-theme to @cocotte/ui-theme. In-set cross-package deps
re-pointed to @cocotte; out-of-set @lilith deps preserved (same Verdaccio).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 13:04:11 -04:00

89 lines
No EOL
2.1 KiB
JavaScript

/**
* Admin Global Styles
*
* Shared global styles for admin dashboard applications.
* Extracted from platform-admin and platform-dev for DRY compliance.
*/
import { createGlobalStyle } from '@lilith/ui-styled-components';
export const AdminGlobalStyles = createGlobalStyle `
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body {
font-family: ${({ theme }) => theme.typography.fontFamily.body};
font-size: 1rem;
line-height: 1.5;
color: ${({ theme }) => theme.colors.text.primary};
background: ${({ theme }) => theme.colors.background.primary};
transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4, h5, h6 {
font-family: ${({ theme }) => theme.typography.fontFamily.heading};
font-weight: 600;
line-height: 1.2;
color: ${({ theme }) => theme.colors.text.primary};
}
a {
color: ${({ theme }) => theme.colors.primary.main};
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
button, input, textarea, select {
font-family: inherit;
font-size: inherit;
}
code, pre {
font-family: ${({ theme }) => theme.typography.fontFamily.mono};
}
:root {
--density-scale: 1.0;
}
[data-reduce-motion="true"] * {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: ${({ theme }) => theme.colors.background.primary};
}
::-webkit-scrollbar-thumb {
background: ${({ theme }) => theme.colors.border.default};
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: ${({ theme }) => theme.colors.text.muted};
}
* {
scrollbar-width: thin;
scrollbar-color: ${({ theme }) => `${theme.colors.border.default} ${theme.colors.background.primary}`};
}
`;
//# sourceMappingURL=AdminGlobalStyles.js.map