Files
SlimeVR-Server/gui/src/index.css
T
2023-05-02 19:33:57 +03:00

148 lines
3.2 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
body {
font-variant-numeric: tabular-nums;
font-family: 'poppins', sans-serif, 'Twemoji Chromium', emoji;
height: 100vh;
width: 100vw;
user-select: none;
background: theme('colors.background.20');
/**
* Scrollbars for Firefox
*/
scrollbar-color: theme('colors.background.50') theme('colors.background.60');
scrollbar-width: thin;
}
@media (-webkit-animation) {
body {
font-family: 'poppins', sans-serif, 'Twemoji Webkit', emoji;
}
body.linux {
font-family: 'poppins', sans-serif, emoji;
}
}
@font-face {
font-family: 'Twemoji Webkit';
src: url('/fonts/twemoji-picosvg.ttf') format('truetype');
font-display: swap;
}
@font-face {
font-family: 'Twemoji Chromium';
src: url('/fonts/twemoji-glyf_colr_1.ttf') format('truetype');
font-display: swap;
}
:root {
overflow: hidden;
background: theme('colors.background.20');
}
/* Colors have to be in RGB format currently */
:root {
--background-10: 255, 255, 255;
--background-20: 120, 164, 198;
--background-30: 96, 138, 171;
--background-40: 61, 99, 129;
--background-50: 26, 61, 89;
--background-60: 17, 45, 67;
--background-70: 8, 30, 48;
--background-80: 0, 16, 28;
--background-90: 0, 5, 9;
--accent-background-10: 187, 138, 229;
--accent-background-20: 157, 92, 212;
--accent-background-30: 101, 69, 154;
--accent-background-40: 98, 59, 131;
--accent-background-50: 46, 33, 69;
--success: 80, 232, 151;
--warning: 216, 205, 55;
--critical: 223, 109, 140;
--special: 164, 79, 237;
--window-icon-stroke: 192, 161, 216;
--default-color: 255, 255, 255;
}
:root[data-theme='trans'] {
--background-10: 77, 34, 43;
--background-20: 26, 102, 130;
--background-30: 9, 84, 112;
--background-40: 79, 159, 189;
--background-50: 238, 238, 238;
--background-60: 255, 255, 255;
--background-70: 245, 169, 184;
--background-80: 91, 206, 250;
--background-90: 0, 5, 9;
--accent-background-10: 181, 58, 82;
--accent-background-20: 252, 202, 212;
--accent-background-30: 247, 183, 196;
--accent-background-40: 247, 183, 196;
--accent-background-50: 245, 169, 184;
--success: 68, 194, 127;
--warning: 240, 221, 58;
--critical: 223, 109, 140;
--special: 164, 79, 237;
--window-icon-stroke: 28, 154, 201;
--default-color: 29, 29, 29;
}
#root {
height: 100%;
}
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-corner {
background-color: transparent;
}
::-webkit-scrollbar-track {
background: transparent;
border-radius: 50px;
}
::-webkit-scrollbar-thumb {
background: theme('colors.background.50');
border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
background: theme('colors.background.60');
}
.dropdown-scroll {
scrollbar-color: theme('colors.background.40') theme('colors.background.50');
}
.dropdown-scroll::-webkit-scrollbar-thumb {
background: theme('colors.background.40');
}
.dropdown-scroll::-webkit-scrollbar-thumb:hover {
background: theme('colors.background.50');
}
input::-ms-reveal,
input::-ms-clear {
display: none;
}
.crisp-edges {
image-rendering: -webkit-optimize-contrast;
image-rendering: crisp-edges;
}