1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

recolor default theme

This commit is contained in:
mrjvs 2023-12-08 18:42:37 +01:00
parent 953abce297
commit 3fa7a5ef27
2 changed files with 212 additions and 119 deletions

View file

@ -24,7 +24,7 @@ export function OverlayMobilePosition(props: MobilePositionProps) {
{/* Close button */} {/* Close button */}
<button <button
className="w-full text-video-context-type-main bg-video-context-background z-10 relative hover:bg-video-context-border active:scale-95 rounded-2xl pointer-events-auto transition-all duration-100 flex justify-center items-center py-3 mt-3 font-bold border border-video-context-border hover:text-white" className="w-full text-video-context-type-main bg-video-context-background z-10 relative hover:bg-video-context-closeHover active:scale-95 rounded-2xl pointer-events-auto transition-all duration-100 flex justify-center items-center py-3 mt-3 font-bold border border-video-context-border hover:text-white"
type="button" type="button"
onClick={() => router.close()} onClick={() => router.close()}
> >

View file

@ -1,227 +1,320 @@
const tokens = {
black: "#000000",
white: "#FFFFFF",
semantic: {
red: {
c100: "#F46E6E",
c200: "#E44F4F",
c300: "#D74747",
c400: "#B43434",
},
green: {
c100: "#60D26A",
c200: "#40B44B",
c300: "#31A33C",
c400: "#237A2B",
},
silver: {
c100: "#DEDEDE",
c200: "#B6CAD7",
c300: "#8EA3B0",
c400: "#617A8A",
},
yellow: {
c100: "#FFF599",
c200: "#FCEC61",
c300: "#D8C947",
c400: "#AFA349",
},
rose: {
c100: "#DB3D61",
c200: "#8A293B",
c300: "#812435",
c400: "#701B2B",
}
},
blue: {
c50: "#ADADF5",
c100: "#7979CC",
c200: "#5D5DAE",
c300: "#3B3B8C",
c400: "#2A2A71",
c500: "#1F1F50",
c600: "#1B1B41",
c700: "#171736",
c800: "#101020",
c900: "#0B0B13"
},
purple: {
c50: "#D5AAFF",
c100: "#C082FF",
c200: "#A359EC",
c300: "#8D44D6",
c400: "#7831BF",
c500: "#572887",
c600: "#411F64",
c700: "#31184A",
c800: "#221134",
c900: "#160B22"
},
ash: {
c50: "#86869A",
c100: "#616174",
c200: "#4A4A5B",
c300: "#3B3B4B",
c400: "#2E2E3D",
c500: "#252533",
c600: "#21212F",
c700: "#151D29",
c800: "#0F1720",
c900: "#0C1216"
},
shade: {
c50: "#676790",
c100: "#52527A",
c200: "#3F3F60",
c300: "#32324F",
c400: "#272741",
c500: "#1E1E32",
c600: "#171728",
c700: "#131322",
c800: "#0F0F1B",
c900: "#0A0A12"
}
}
/*
flare of media cards is very desatured (also on context menu)
app information labels are too purple
save bar needs more distinction from background
all ash colors need repicking
*/
export const defaultTheme = { export const defaultTheme = {
extend: { extend: {
colors: { colors: {
themePreview: { themePreview: {
primary: "#505DBD", primary: tokens.blue.c200,
secondary: "#73739D", secondary: tokens.shade.c50,
ghost: "white", ghost: tokens.white,
}, },
// Branding // Branding
pill: { pill: {
background: "#2e2e4d", background: tokens.shade.c300,
backgroundHover: "#3d3d61", backgroundHover: tokens.shade.c200,
highlight: "#714C97", highlight: tokens.blue.c200,
}, },
// meta data for the theme itself // meta data for the theme itself
global: { global: {
accentA: "#505DBD", accentA: tokens.blue.c200,
accentB: "#3440A1", accentB: tokens.blue.c300,
}, },
// light bar // light bar
lightBar: { lightBar: {
light: "#2A2A71", light: tokens.blue.c400,
}, },
// Buttons // Buttons
buttons: { buttons: {
toggle: "#8D44D6", toggle: tokens.purple.c300,
toggleDisabled: "#202836", toggleDisabled: tokens.ash.c500,
danger: "#792131", danger: tokens.semantic.rose.c300,
dangerHover: "#8a293b", dangerHover: tokens.semantic.rose.c200,
secondary: "#161F25", secondary: tokens.ash.c700,
secondaryText: "#8EA3B0", secondaryText: tokens.semantic.silver.c300,
secondaryHover: "#1B262E", secondaryHover: tokens.ash.c700,
primary: "#fff", primary: tokens.white,
primaryText: "#000", primaryText: tokens.black,
primaryHover: "#dedede", primaryHover: tokens.semantic.silver.c100,
purple: "#6b298a", purple: tokens.purple.c500,
purpleHover: "#7f35a1", purpleHover: tokens.purple.c400,
cancel: "#252533", cancel: tokens.ash.c500,
cancelHover: "#3C3C4A", cancelHover: tokens.ash.c300,
}, },
// only used for body colors/textures // only used for body colors/textures
background: { background: {
main: "#0A0A10", main: tokens.shade.c900,
secondary: "#151529", secondary: tokens.shade.c600,
secondaryHover: "#252542", secondaryHover: tokens.shade.c400,
accentA: "#6E3B80", accentA: tokens.purple.c500,
accentB: "#1F1F50", accentB: tokens.blue.c500,
}, },
// typography // typography
type: { type: {
logo: "#A87FD1", logo: tokens.purple.c100,
emphasis: "#FFFFFF", emphasis: tokens.white,
text: "#73739D", text: tokens.shade.c50,
dimmed: "#926CAD", dimmed: tokens.blue.c100,
divider: "#262632", divider: tokens.ash.c500,
secondary: "#64647B", secondary: tokens.ash.c100,
danger: "#F46E6E", danger: tokens.semantic.red.c100,
link: "#A87FD1", link: tokens.purple.c100,
linkHover: "#ba8fe6", linkHover: tokens.purple.c100, // TODO
}, },
// search bar // search bar
search: { search: {
background: "#1E1E33", background: tokens.shade.c500,
focused: "#24243C", focused: tokens.shade.c400,
placeholder: "#4A4A71", placeholder: tokens.shade.c100,
icon: "#545476", icon: tokens.shade.c100,
text: "#FFFFFF", text: tokens.white,
}, },
// media cards // media cards
mediaCard: { mediaCard: {
hoverBackground: "#161622", hoverBackground: tokens.shade.c700,
hoverAccent: "#4D79A8", hoverAccent: tokens.semantic.silver.c400,
hoverShadow: "#0A0A10", hoverShadow: tokens.shade.c900,
shadow: "#161622", shadow: tokens.shade.c700,
barColor: "#4B4B63", barColor: tokens.ash.c200,
barFillColor: "#BA7FD6", barFillColor: tokens.purple.c100,
badge: "#151522", badge: tokens.shade.c700,
badgeText: "#5F5F7A", badgeText: tokens.ash.c100,
}, },
// Large card // Large card
largeCard: { largeCard: {
background: "#171728", background: tokens.shade.c600,
icon: "#6741A5", icon: tokens.purple.c400,
}, },
// Dropdown // Dropdown
dropdown: { dropdown: {
background: "#171728", background: tokens.shade.c600,
altBackground: "#151525", altBackground: tokens.shade.c700,
hoverBackground: "#202036", hoverBackground: tokens.shade.c500,
highlight: "#afa349", highlight: tokens.semantic.yellow.c400,
highlightHover: "#FCEC61", highlightHover: tokens.semantic.yellow.c200,
text: "#846D95", text: tokens.shade.c50,
secondary: "#73739D", secondary: tokens.shade.c50, // TODO
border: "#272742", border: tokens.shade.c400,
contentBackground: "#232337", contentBackground: tokens.shade.c500,
}, },
// Passphrase // Passphrase
authentication: { authentication: {
border: "#393954", border: tokens.shade.c300,
inputBg: "#171728", inputBg: tokens.shade.c600,
inputBgHover: "#171726", inputBgHover: tokens.shade.c600, // TODO
wordBackground: "#171728", wordBackground: tokens.shade.c600, // TODO
copyText: "#58587A", copyText: tokens.shade.c100,
copyTextHover: "#8888AA", copyTextHover: tokens.ash.c50,
errorText: "#DB3D62", errorText: tokens.semantic.rose.c100,
}, },
// Settings page // Settings page
settings: { settings: {
sidebar: { sidebar: {
activeLink: "#171728", activeLink: tokens.shade.c600,
badge: "#0A0A12", badge: tokens.shade.c900,
type: { type: {
secondary: "#4B395F", secondary: tokens.shade.c200,
inactive: "#8D68A9", inactive: tokens.blue.c100,
icon: "#926CAD", icon: tokens.blue.c100, // TODO
iconActivated: "#6942A8", iconActivated: tokens.purple.c400,
activated: "#CBA1E8", activated: tokens.purple.c50,
}, },
}, },
card: { card: {
border: "#2A243E", border: tokens.shade.c400, // TODO
background: "#29243D", background: tokens.shade.c400,
altBackground: "#29243D", altBackground: tokens.shade.c400,
}, },
saveBar: { saveBar: {
background: "#0F0E17" background: tokens.blue.c900
} }
}, },
utils: { utils: {
divider: "#353549", divider: tokens.ash.c300,
}, },
// Error page // Error page
errors: { errors: {
card: "#12121B", card: tokens.shade.c800,
border: "#252534", border: tokens.ash.c500,
type: { type: {
secondary: "#62627D", secondary: tokens.ash.c100,
}, },
}, },
// About page // About page
about: { about: {
circle: "#262632", circle: tokens.ash.c500,
circleText: "#9A9AC3", circleText: tokens.ash.c50,
}, },
// About page // About page
editBadge: { editBadge: {
bg: "#262632", bg: tokens.ash.c500,
bgHover: "#343443", bgHover: tokens.ash.c400,
text: "#9A9AC3", text: tokens.ash.c50,
}, },
progress: { progress: {
background: "#8787A8", background: tokens.ash.c50, // TODO
preloaded: "#8787A8", preloaded: tokens.ash.c50,
filled: "#A75FC9", filled: tokens.purple.c200,
}, },
// video player // video player
video: { video: {
buttonBackground: "#444B5C", buttonBackground: tokens.ash.c200,
autoPlay: { autoPlay: {
background: "#161C26", background: tokens.ash.c700,
hover: "#252533" hover: tokens.ash.c500
}, },
scraping: { scraping: {
card: "#161620", card: tokens.shade.c700,
error: "#E44F4F", error: tokens.semantic.red.c200,
success: "#40B44B", success: tokens.semantic.green.c200,
loading: "#B759D8", loading: tokens.purple.c200,
noresult: "#64647B", noresult: tokens.ash.c100,
}, },
audio: { audio: {
set: "#A75FC9", set: tokens.purple.c200,
}, },
context: { context: {
background: "#0C1216", background: tokens.ash.c900,
light: "#4D79A8", light: tokens.semantic.silver.c400,
border: "#1d252b", border: tokens.ash.c600,
hoverColor: "#1E2A32", hoverColor: tokens.ash.c500,
buttonFocus: "#202836", buttonFocus: tokens.ash.c500,
flagBg: "#202836", flagBg: tokens.ash.c500, // TODO
inputBg: "#202836", inputBg: tokens.ash.c700,
buttonOverInputHover: "#283040", buttonOverInputHover: tokens.ash.c500,
inputPlaceholder: "#374A56", inputPlaceholder: tokens.ash.c200,
cardBorder: "#1B262E", cardBorder: tokens.ash.c700,
slider: "#8787A8", slider: tokens.ash.c50,
sliderFilled: "#A75FC9", sliderFilled: tokens.purple.c200,
error: "#E44F4F", error: tokens.semantic.red.c200,
buttons: { buttons: {
list: "#161C26", list: tokens.ash.c700,
active: "#0D1317", active: tokens.ash.c900,
}, },
closeHover: tokens.ash.c800,
type: { type: {
main: "#617A8A", main: tokens.semantic.silver.c400,
secondary: "#374A56", secondary: tokens.ash.c200,
accent: "#A570FA", accent: tokens.purple.c200,
}, },
}, },
}, },