tutu/src/material/theme.css

158 lines
4 KiB
CSS
Raw Normal View History

2024-07-14 12:28:44 +00:00
:root,
2024-08-05 07:33:00 +00:00
[lang^="en"],
[lang="en"] {
2024-07-14 12:28:44 +00:00
--md-typography-type: "regular";
--title-size: 1.25rem;
--title-weight: 500;
--subheading-size: 1.125rem;
--body-size: 1rem;
--body2-weight: 500;
--caption-size: 0.875rem;
--button-size: 1rem;
--button-weight: 500;
--button-text-transform: uppercase;
--body-line-height: 1.375;
--title-line-height: 1.25;
2024-07-14 12:28:44 +00:00
@media (min-width: 1024px) {
& {
--subheading-size: 1.0625rem;
--body-size: 0.9375rem;
}
}
2024-08-13 07:49:36 +00:00
input,
textarea {
/* iOS will zoom in if the font-size is smaller than 16px (or 1rem? i dont know) */
font-size: 1rem;
}
2024-07-14 12:28:44 +00:00
}
2024-08-05 07:33:00 +00:00
[lang^="zh"],
[lang="zh"],
[lang^="kr"],
[lang="kr"],
[lang^="ja"],
[lang="ja"] {
2024-07-14 12:28:44 +00:00
--md-typography-type: "dense";
--title-size: 1.4375rem;
--subheading-size: 1.1875rem;
--body-size: 1.0625rem;
--caption-size: 0.9375rem;
--button-size: 1.0625rem;
--button-text-transform: none;
--body-line-height: 1.425;
--title-line-height: 1.3;
2024-07-14 12:28:44 +00:00
@media (min-width: 1024px) {
& {
--subheading-size: 1.125rem;
--body-size: 1rem;
}
}
}
:root {
--tutu-color-primary: #673ab7;
/* Deep Purple 500 */
--tutu-color-on-primary: white;
--tutu-color-primary-d: #512da8;
/* 700 */
--tutu-color-on-primary-d: white;
--tutu-color-primary-dd: #4527a0;
/* 800 */
--tutu-color-on-primary-dd: white;
--tutu-color-primary-l: #9575cd;
/* 200 */
--tutu-color-on-primary-l: white;
--tutu-color-primary-ll: #b39ddb;
/* 100 */
--tutu-color-on-primary-ll: black;
--tutu-color-secondary: #ffd740;
/* Amber A200 */
--tutu-color-on-secondary: black;
--tutu-color-surface-l: white;
--tutu-color-surface: #fafafa;
--tutu-color-surface-d: #99999928;
--tutu-color-surface-dd: #99999920;
--tutu-color-on-surface: black;
--tutu-color-secondary-text-on-surface: rgba(0, 0, 0, 0.5);
--tutu-color-error-on-surface: #d32f2f;
--tutu-color-inactive-on-surface: #757575;
--tutu-color-shadow: rgba(0, 0, 0, 0.15);
--tutu-shadow-e1: 0px 1px 2px 0px var(--tutu-color-shadow);
2024-07-14 12:28:44 +00:00
/* Switch */
--tutu-shadow-e2: 0px 2px 4px 0px var(--tutu-color-shadow);
2024-07-14 12:28:44 +00:00
/* (Resting) cards, raised button, quick entry / search bar */
--tutu-shadow-e3: 0px 3px 6px 0px var(--tutu-color-shadow);
2024-07-14 12:28:44 +00:00
/* Refresh indicator, quick entry / search bar (scrolled) */
--tutu-shadow-e4: 0px 4px 8px 0px var(--tutu-color-shadow);
2024-07-14 12:28:44 +00:00
/* App bar */
--tutu-shadow-e6: 0px 6px 12px 0px var(--tutu-color-shadow);
2024-07-14 12:28:44 +00:00
/* Snack bar, FAB (resting) */
--tutu-shadow-e8: 0px 8px 16px 0px var(--tutu-color-shadow);
2024-07-14 12:28:44 +00:00
/* Menu, (picked-up) cards, (pressed) raise button */
--tutu-shadow-e9: 0px 9px 18px 0px var(--tutu-color-shadow);
2024-07-14 12:28:44 +00:00
/* Submenu (+1dp for each submenu) */
--tutu-shadow-e12: 0px 12px 24px 0px var(--tutu-color-shadow);
2024-07-14 12:28:44 +00:00
/* (pressed) FAB */
--tutu-shadow-e16: 0px 16px 32px 0px var(--tutu-color-shadow);
2024-07-14 12:28:44 +00:00
/* Nav drawer, right drawer, modal bottom sheet */
--tutu-shadow-e24: 0px 24px 48px 0px var(--tutu-color-shadow);
2024-07-14 12:28:44 +00:00
/* Dialog, picker */
--tutu-anim-curve-std: cubic-bezier(0.4, 0, 0.2, 1);
--tutu-anim-curve-deceleration: cubic-bezier(0, 0, 0.2, 1);
--tutu-anim-curve-aceleration: cubic-bezier(0.4, 0, 1, 1);
--tutu-anim-curve-sharp: cubic-bezier(0.4, 0, 0.6, 1);
@media (max-width: 300px) {
2024-08-13 07:49:36 +00:00
2024-07-14 12:28:44 +00:00
/* XS screen, like wearables */
& {
--tutu-transition-shadow: box-shadow 157.5ms var(--tutu-anim-curve-std);
}
}
@media (max-width: 600px) {
2024-08-13 07:49:36 +00:00
2024-07-14 12:28:44 +00:00
/* Mobile */
& {
--tutu-transition-shadow: box-shadow 225ms var(--tutu-anim-curve-std);
}
}
@media (max-width: 1200px) {
2024-08-13 07:49:36 +00:00
2024-07-14 12:28:44 +00:00
/* Tablet */
& {
--tutu-transition-shadow: box-shadow 292.5ms var(--tutu-anim-curve-std);
}
}
/* Desktop */
--tutu-transition-shadow: box-shadow 175ms var(--tutu-anim-curve-std);
--tutu-zidx-nav: 1100;
}
* {
2024-08-05 07:33:00 +00:00
font-family:
Roboto,
"Noto Sans",
system-ui,
-apple-system,
BlinkMacSystemFont,
sans-serif;
2024-07-14 12:28:44 +00:00
box-sizing: border-box;
margin: 0;
}
body {
font-size: var(--body-size, 1rem);
line-height: var(--body-line-height);
2024-08-13 07:49:36 +00:00
}